Created
May 10, 2014 16:41
-
-
Save osolmaz/cc5a868f0636c18396e0 to your computer and use it in GitHub Desktop.
Unix command to list top 20 directories you cd into
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
history | grep cd | cut -d' ' -f5 | sort | uniq -c | sort -k1 -n -r | head -n 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment