Linux Command Cheatsheet

Refresh a command every second

watch n1 "command"

Current directory: 

pwd

Show file contents: 

cat File

List file sizes: 

ls -lah

Log file viewing: 

tail error_log -n 50

List size of all directories in current directory: 

find . -maxdepth 1 -type d | xargs du -m -s

Find files

find . -name '*{part_of_word}*' -print

What's Taking Up All the Space?

cd /
du -ch -d 1 | sort -hr

...or 

ncdu

Free disc space: 

df -h

Directory size: 

du -sh /var

Create Archive

zip -r foo.zip dir_path

Extract Archive

unzip .zip-file-name -d /path/to/extract