LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
::Linux Guide
::Tips
::Connections
::Alternatives
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: New Users :: Beginners Linux Guide :: Finding out how much space a dir takes up

If you do an ls -l in any directory, the subdirectories give a zero byte value. This is a little bit offputting, as for example in the root directory /. all the directories show up a zero usage. A command exists for us to find out how much space these directories actually use, but it has nothing to do with ls.

From the command line, try typing du -c , that will give you the usage on that particular directory. Du stands for Disk Usage, and -c is not the only switch that the program can accept. Try typin 'man du', and come up with the various options that are available. An interesting one to try is du -ch, which gives the space, and lists the space in human interpretable sizes, such as K, and Megs, rather than bytes.


You may find the following helpful:
Basic Shell Commands


About the author, Owen Kelly.

USERS COMMENTS


                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell