Which commands do you use most frequently?

What commands do you use most frequently at the command prompt?

gpart list. ls -al. df -h, ping 8.8.8.8, ifconfig, service netif restart

are some of my most used commands.
 
Running h 1-|awk '{print $2;}'|sort |uniq -c |sort -nr |head in zsh in different windows typically shows cd, ls, git, less, pushd, popd, dirs, rm, ps, fg etc. in top 10. (Actually my aliases for less, pushd, popd, dirs).
 
startx /usr/local/dt/bin/Xsession :rolleyes:

make
make
make
make
make upload
make
make
make clean all
make
make
[...] o_O

More seriously : I use the common Unix tools like grep, sed, find, sort with pipe | as needed; pkg obliviously and basic shell commands cd, ls, rm, ... Plus some specialised codebase tools: git, cloc, static analyser and formatting. Last is hunspell for spellchecking.
 
ls by far. Must see filenames as minimal orientation. pwd if the prompt is wasted and doesn't show the current directory.
Also I use cal regularly while on the phone to see what day a date falls on.
 
cp, rm, cd, man, openvpn

I use zfs often:
zfs list -t all
zfs rollback [-R] <whatevever>

(The snapshots I do with a script, so I guess that doesn't count as using "zfs snapshot").
 
Besides the webbrowser I do almost everything in the shell.
My history is set to 10k entries. So the list of all is quite long. I also have several aliases set. And I use several key combinations, otherwise xterm was for sure in the top 5 - rather aliases like 'xt1', 'xt2', 'xt3' for to open xterm(s) with tails of options (key combos are better for that.)
After I did a history | cut -f3 | sort > mycommandlist I would estimate in that order:
clearly top 4: ls, rm, cat, mv (keep my station clear)
then: vim, svn, cp, cd, find, man, grep, ffmpeg, mpv, pkg search, zathura, mkdir
not that often, but also not seldom: cc, mount, wc, cut, paste, head, tail, less, lldb, hexyl
and dozens more I neither counted, nor list here, such like zfs, zpool, gpart because maintenance is not my top prio job with my machine.
 
dmesg -ac
tail /var/log/messages
zpool status; zpool iostat -vl; zpool list -v
cd
ls -l sometimes ls -ltr
portversion -vl "<"
nvim or vi
less
zfs list
etc.
 
Having your command history set to store the most commands is very practical.
It can be, I personally don't like using bash because it's command history is kind of stupid, it helps a bit if you typed a long command and had a typo, but having to go back line by line without autocompletion is annoying. Eventually, I realized that I can grep through all the history files for what I'm looking for. It's more annoying than using a shell that has autocompletion from history, but works pretty well. It's even possible to then chain that through sed or awk to switch things up and pipe it off to xargs.
 
  • ls -la (FreeBSD is interesting with syntax; Linux I usually put the -la after like ls file.txt -la but FreeBSD wants the -la after ls)
  • mkdir -p
  • ping -t
  • su -
  • dmesg (less on FreeBSD as less issues seem to randomly show there vs Linux :cool:)
  • Commands with -h (quicker vs man)
  • ee
  • cat file | grep text (apparently grep can be used directly but I like the order :D)
 
Back
Top