Blog

Most Used Commands

Aug 09, 2017 | 1 minute read

I sadly forgot where I found this snippet, but it lists your most used commands in the shell.

history | \
  awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | \
  sort | \
  uniq -c | \
  sort -nr | \
  less

Wonder how accurately this could be used to identify users on a shared server…