Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-23-2006, 09:42 PM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 492

Rep: Reputation: 30
Cool Need Command to see free spaces

Dear Friends ,

I want to know ,

1) Is there any command to see a particular folder size in Redhat Linux . Suppose I want to know /etc directory contains which amount of space in my HDD then which command I need to use .

2) Again If I want to see which service (Like samba service , proxy service, DHCP service etc) takes which amount of spaces
into my HDD partition then which command I use for this purpose.

Waiting for ur reply...........Thx .. ..
Old 11-23-2006, 09:46 PM   #2
Registered: Nov 2006
Location: hawaii, usa
Distribution: slackware 14
Posts: 80

Rep: Reputation: 16
Originally Posted by shipon_97
1) Is there any command to see a particular folder size in Redhat Linux . Suppose I want to know /etc directory contains which amount of space in my HDD then which command I need to use .
run the command:

du /etc

for more info:

man du
Old 11-24-2006, 02:05 AM   #3
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
1) Especially check out the -k, -h, -s and -c options of "du".
2) is more tricky, since the services can have files in any location on your disk (ie config files in /etc, programs in /sbin, ...). Why do you need this information exactly?
The only way I can think of is an approach like this:
* first get your package manager to list all files in the package of the service you're investigating.
* Then write a little script or something to get the file sizes and to display the total size.

More likely, though, it's not the services that are taking up all your disk space. Rather, it'll be all the software packages and multimedia files (pictures, movies, music) you put on the disk...
Old 11-24-2006, 04:48 AM   #4
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
xdiskusage is graphical
Old 11-24-2006, 08:50 AM   #5
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
If you're running KDE, open the folder in konqueror and use the "file size view", which will show you exactly where your disk space is going. It's superb.


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
how to get free spaces in home directory hammam12 Linux - Software 7 08-06-2006 11:25 AM
Use spaces in command line? Geminias Linux - Newbie 2 01-03-2006 07:37 PM
free up spaces in slackware? csvke Slackware 10 01-20-2005 04:37 AM
how to make the Read command handles spaces Kilahchris Linux - Newbie 7 11-06-2004 12:10 PM
Spaces on command line odd Linux - Software 2 05-22-2004 08:17 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 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