Created
July 6, 2017 03:41
-
-
Save openrijal/c9650cab9f05b5c78c3fbfcbbca0f1ff to your computer and use it in GitHub Desktop.
useful oneliners
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
# bash command to uninstall all pip installed packages | |
sudo pip uninstall -y $(pip freeze | sed 's;==.*;;g' | tr '\n' ' ') | |
# bash command to list top 5 large files/directories | |
du -a / | sort -n -r | head -n 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment