LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-22-2005, 10:06 AM   #1
elitecodex
Member
 
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

Thanks.
Will
 
Old 06-22-2005, 10:13 AM   #2
visaris
Member
 
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
du -h /home/username/subfolder/folder
 
Old 06-22-2005, 10:14 AM   #3
nixcraft
Member
 
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.

Code:
cd /home/me/you
du -ch
 
Old 06-22-2005, 10:16 AM   #4
elitecodex
Member
 
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, 10:17 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
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..
 
  


Reply


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 08:51 AM
Preinstalled Win XP Pro: Keep or Delete? Needed or just taking up space? hanzj Linux - Newbie 11 04-20-2005 07:35 PM
simple bash question -- changing dir towlie Programming 3 05-28-2004 12:55 PM
/root/.xsession-errors is taking up the entire free space on disk! Freeek Linux - General 5 10-06-2003 02:02 PM
Symbolic Links taking up space?! N2technology Linux - General 7 01-02-2002 02:37 AM


All times are GMT -5. The time now is 09:41 PM.

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