Last active
December 29, 2015 20:59
-
-
Save ibogun/7727717 to your computer and use it in GitHub Desktop.
Ubuntu cheat-sheet
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
# show 10 largest subdirectories | |
du -sk * | sort -nr | head -10 | |
# Make cursor visible (13.10 bug) | |
gsettings set org.gnome.settings-daemon.plugins.cursor active false | |
# list all make targets | |
make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}' | |
# equivalent of ./configure --prefix=/usr | |
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr | |
# kill all processes from a user | |
pkill -U flylehe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment