Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I have a server with cpanel installed. I ran the cpbackup script last night to do a backup of some sites to my home computer over ftp. when I checked it thismorning, it looked like putty disconnected or something and the backup didn't finish. I'm not sure if there are temp files from that taking up space someplace, but I think my disk usage is higher then it should be.
how can I find where the most space is being used? I know there are a bunch of programs for windows to do graphs of your whole directory structure, but my server is centos (redhat enterprise) without a gui. what can I do to find where the space is being used?
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
The command is 'du -h'
This will recurse into directories and show the file size of every file, and the total of every directory.
Now if you have 3495634756876 files on your machine and 8593048 directories that doesn't help much. To show only the really large files/directories, use:
'du -h | grep ^[0-9][0-9]M*'
to show all files or directories over 10 MB. Adapt the regexp as necessary :-)
thanks. works good. now, next problem. what is the command to double my hard drive size?..
is there a simple way to span raid a partition in linux? like add another drive to the /home partition? I wouldn't want it to have a different name like home2 or something, and not a subdirectory of /home, any way to do that easy?
J.W. You are right about that, but if you have a large directory somewhere buried deep down there you have to descend into it manually.
Yes and No. Note that you can set max-depth to 2 or 3 or whatever.
Don't get me wrong, both your suggestion and mine are basically the same thing, but if you've got a lot of files the output from running "du -h" can be overwhelming. Combining it with the max-depth option can provide a very useful, high-level view of the system
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.