Last active
September 6, 2017 15:11
-
-
Save UBarney/4f52f7986383e250628107746ec88510 to your computer and use it in GitHub Desktop.
linux_command_line_cheatsheet
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 the size of all the directories in the current directory and sort them by size. | |
du -h --max-depth=1 | sort -hr | |
# Find Out Which Process Is Listening Upon a Port | |
netstat -tulpn | |
# find all files containing specific text on Linux | |
grep -rnw '/path/to/somewhere/' -e 'pattern' | |
# log CPU load | |
while true; do uptime >> uptime.log; sleep 1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment