Helpful Freebsd Unix CLI commands

FIND BIGGEST FILES
du -a /var | sort -n -r | head -n 10
This will list the largest files in a directory – in this case the var directory

SHOW THE LAST ENTRIES FOR A FILE
tail /var/log/nginx-error.log
In this case this will show the last bit of the nginx-error.log

SHOW HOW MUCH SPACE IS LEFT ON THE DRIVE
df -h

SHOW WHAT PROCESSES ARE RUNNING
top