Tagged Questions
0
votes
2answers
60 views
'df' command doesn't list /home directory
In the book I am reading, the output of df command is shown like this:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 15115452 5012392 9949716 34% /
/dev/sda5 59631908 ...
3
votes
4answers
325 views
Find largest files recursively
There seem to be a lot of entries about how to use du to recursively find the largest dir and files at the same time, but none on how to only recursively find the largest files in a set of ...
2
votes
1answer
3k views
Using --exclude with the du command
This is probably something basic but I'm not able to make it work. I'm trying to use DU to get a total size of files minus certain directories. I need to exclude one specific directory called uploads ...
4
votes
2answers
1k views
How to list ALL directories according to their size? [without including the parent directory]
I have a bunch of random folders, some of them are hidden (beginning with a period). I want to list all of them, sorted by their sizes.
I have something on the lines of this in mind:
ls -d -1 -a */ ...
1
vote
4answers
125 views
How much disk space does a list of files use
How can I find how much disk does a list of files uses? I'm looking for a variation of
du -s *.sql
I want to see only the grand total, and with the command above, it always shows a line for each ...
24
votes
8answers
3k views
how do you sort du output by size?
How do you sort du -sh /dir/* by size? I read one site that said use | sort -n but that's obviously not right. Here's an example that is wrong.
[~]# du -sh /var/* | sort -n
0 /var/mail
1.2M ...
17
votes
6answers
2k views
How to understand what's taking up space?
I'm looking for a linux alternative to WinDirStat. I would like to know what is taking up space on my hard drives.
A program that works on console and doesn't require a UI is preferred .