LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 09: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, 09: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, 09: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, 09: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, 09:17 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:11 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
Open Source Consulting | Domain Registration