Shell Commands

Diagnose Space issues

Check Overall space on VM:

df -h

navigate to a directory and run the below to view the space of the files and directories within:

du -sh /path/to/directory

Alternatively you can use the below and specify how deep you want to the results to look

du -ah --max-depth=2 /path/to/directory

once you know which directory and its content you want to remove you can use

rm -r /path/to/directory

Last updated