- Forums
- Linux Hosting
- Linux Show Disk Space
How To Find Much Free Disk Space You Have In You Linux Computer Server It Will Show You What Is The File Space For Each Directory And How Much The Size Of The Folders Are [1323], Last Updated: Mon Jun 24, 2024
Webune Tutorials
Tue Mar 30, 2010
2 Comments
642 Visits
thanks for visiting us at Webune.
We provide Linux Dedicated Servers at affordable prices
if you want to know how to display how much disk space you have in your server you can find out. this linux shell command will give you a list of the sizes for each directory and then it will give you a total of all the disk space you have in your hard drive just send this command. lets say we wan to know what is the size of our www directory so we send this command:
du -hc --max-depth=1 /var/www/
it will show you something like this:
6.9M /var/www/
hope that helps
The -l option is used to count the size of all files, whether or not they have already
appeared (i.e., via a hard link).
The -b option is used to display the size in bytes of all the files in the specified
directory.
The -m option is used to display the size in megabytes of all the files in the specified
directory.