Commands in my 2024 history
I checked my laptop’s command history using a quick script written by ChatGPT o1.
pikaur easily tops the list, which makes sense considering 1) it’s
how I manage packages, and 2) I run updates fairly compulsively. The
gap would be even more damning if my desktop’s history was included.
Similar to pikaur, Python packaging is also highly
represented. Graphed over time, it’d show an evolution from pipenv to
poetry to hatch to uv.
I’d like to use z more over the next year – it’s typically way
quicker than cd when traversing the filesystem, but here I only used
it 9 times compared to cd’s 80.
Here is the script for collecting the 2024 results:
awk -F';' '{
if ($1 ~ /^: [0-9]+:/) {
ts = substr($1, 3, length($1) - 3);
if (ts >= 1704067200 && ts <= 1735689599)
print $2;
}
}' $HISTFILE | awk '{print $1}' | sort | uniq -c | sort -nr | head -n 25
And here’s the output of the script, whoing the top 25 results:
| Rank | Calls | Command |
|---|---|---|
| 1 | 202 | pikaur |
| 2 | 80 | cd |
| 3 | 74 | ls |
| 4 | 52 | sudo |
| 5 | 50 | poetry |
| 6 | 46 | rm |
| 7 | 38 | ollama |
| 8 | 36 | hatch |
| 9 | 34 | fd |
| 10 | 29 | cat |
| 11 | 26 | ssh |
| 12 | 26 | git |
| 13 | 21 | nvim |
| 14 | 19 | mkdir |
| 15 | 17 | pdftk |
| 16 | 17 | mv |
| 17 | 16 | systemctl |
| 18 | 16 | less |
| 19 | 13 | uv |
| 20 | 13 | nmcli |
| 21 | 11 | mosh |
| 22 | 11 | gpg |
| 23 | 10 | scp |
| 24 | 10 | python |
| 25 | 9 | z |