On a Linux system for a system administrator it is necessary to check disk usage on the server and make sure that the disk space does not get 100% and cause problem for the users, so as a routine you should always check for disk space.
The command to check disk space on the complete server is:
root@server# df –h
If a particular partition is consuming too much disk space and you need to find which folder under that partition is using it, for example the partition is /var you can use the command:
root@server# cd /var
root@server# du –sh *
This will display the size of each directory under the /var partition.
So, be proactive and keep your server always healthy.
No comments:
Post a Comment