Skip to content

Instantly share code, notes, and snippets.

@UBarney
Last active September 6, 2017 15:11
Show Gist options
  • Save UBarney/4f52f7986383e250628107746ec88510 to your computer and use it in GitHub Desktop.
Save UBarney/4f52f7986383e250628107746ec88510 to your computer and use it in GitHub Desktop.
linux_command_line_cheatsheet
# 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