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 06-22-2005, 09:06 AM   #1
Registered: Feb 2004
Location: MD
Distribution: Fedora 9
Posts: 129

Rep: Reputation: 15
Simple Question - How much space is a dir taking up?

Its a simple request... but df only seems to tell me the entire hard drive... I just want to know what /home/username/subfolder/folder is taking up. Simple thing I just never realized I didnt know how to do

Old 06-22-2005, 09:13 AM   #2
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
du -h /home/username/subfolder/folder
Old 06-22-2005, 09:14 AM   #3
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Run du command.

cd /home/me/you
du -ch
Old 06-22-2005, 09:16 AM   #4
Registered: Feb 2004
Location: MD
Distribution: Fedora 9
Posts: 129

Original Poster
Rep: Reputation: 15
Excellant... thank both of you very much
Old 06-22-2005, 09:17 AM   #5
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 250Reputation: 250Reputation: 250
It will usually report whatever size you set your inode block size to be during the initall format and partitioning..

Standard is 4096 size inodes and blocks.. so it'll probably report 4k being used..


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
best way to find out what is taking up the bulk of your hard drive space? dr_zayus69 Linux - Software 2 06-30-2005 07:51 AM
Preinstalled Win XP Pro: Keep or Delete? Needed or just taking up space? hanzj Linux - Newbie 11 04-20-2005 06:35 PM
simple bash question -- changing dir towlie Programming 3 05-28-2004 11:55 AM
/root/.xsession-errors is taking up the entire free space on disk! Freeek Linux - General 5 10-06-2003 01:02 PM
Symbolic Links taking up space?! N2technology Linux - General 7 01-02-2002 01:37 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:18 AM.

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