Linux Tips & Tricks
1. You can list files sorted by size using this command:
ls –lSr
2. You can view the amount of free disk space in usable format using this command:
df –h
3. To see how much space /some/dir is consuming:
du -sh /some/dir
4. List all running processes containing the string stuff:
ps aux | grep stuff
5. If you have ever run a command but forgot to sudo, you can use this to rerun the command:
sudo !!