Linux Show Disk Space

RegisterLogin
Linux Show Disk Space
Post Description: 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
Tags: Linux, Show, Disk, Space
This Post Was Posted On Mar 30, 2010 By Webune Tutorials #2995
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

Leave Your Comments
webune
#3803 1
here's a man page for du
DESCRIPTION
       Change the effective user id and group id to that of USER.

       -, -l, --login
              make the shell a login shell

       -c, --command=COMMAND
              pass a single COMMAND to the shell with -c

       --session-command=COMMAND
              pass a single COMMAND to the shell with -c and do not create a new session

       -f, --fast
              pass -f to the shell (for csh or tcsh)

       -m, --preserve-environment
              do not reset environment variables

       -p     same as -m

       -s, --shell=SHELL
              run SHELL if /etc/shells allows it

       --help display this help and exit

       --version
              output version information and exit

       A mere - implies -l.   If USER not given, assume root.
May 10, 2010 Reply Report abuse
hostman
#3802 2
The du (disk usage) command with the -c option will display the total used space in the specified directory.

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.
Apr 19, 2010 Reply Report abuse
©2011 Webune Forums - Wed Dec 21, 2011 11:50 pm
Powered by: Webune Forums V3