Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-20-2009, 04:08 AM   #1
LQ Newbie
Registered: Dec 2008
Posts: 11

Rep: Reputation: 0
Disk usage

Hi All,
How can we check the disk usage in LINUX?

Thanks in advance.
Old 02-20-2009, 04:17 AM   #2
Registered: May 2006
Distribution: Debian
Posts: 609

Rep: Reputation: 98
Look at
Old 02-20-2009, 05:31 AM   #3
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
'du -h'

if you just want to see current level directory usage, add '--max-depth=1'
Old 02-20-2009, 06:31 AM   #4
Registered: Jan 2009
Posts: 165

Rep: Reputation: 44
'du -h' will give you the directory usage.
'df -h' will tell you how much disk free space you have.
Old 02-20-2009, 05:11 PM   #5
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up disk usage

du is the command for disk usage.

du -a gives usage information of all files and directories.

du -b gives the information in bytes

du -a -b is the perfect answer i guess.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
disk usage ?? sachinh Linux - General 3 11-16-2007 02:03 PM
disk usage? crofty13 Linux - Software 1 10-18-2007 07:42 AM
disk usage mouncifb Linux - Software 4 07-05-2007 04:04 PM
AS 2.1 disk usage buck2bcr Red Hat 4 03-23-2004 10:50 AM
101% disk usage on an empty disk tsiuser Linux - Software 3 01-28-2004 07:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration