Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 .
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.