To check disk space in linux operating system through command line use the following command.
df -h //show all the media and the total amount of space available and total space used.
du -h --max-depth=1 //foldername (for eg var, html, data)
This command shows you the space occupied by the folder till level 1.
If you want to see more deep than you can replace the depth=1 by any number for nth level.
df -h //show all the media and the total amount of space available and total space used.
du -h --max-depth=1 //foldername (for eg var, html, data)
This command shows you the space occupied by the folder till level 1.
If you want to see more deep than you can replace the depth=1 by any number for nth level.
No comments:
Post a Comment