Monday, 27 November 2017

Linux command to check disk space

Hi,

You can use below command to check disk space on a linux server:-

# df -h

Here, the -h option is to see output in human readable format. You will see the device size in terabytes or gigabytes or megabytes!

Additionally, you can use the below command:

# du

to see the amount of disk space used by the specified files and for each sub-directory.

No comments:

Post a Comment