Linked Questions

16 votes
2 answers
27k views

I'm using this command to determine which directory is eating my disk. du -sk * | sort -n How can I get human readable result form du for file sizes? I've checked man and all it have is -k flag ...
Mohsen's user avatar
  • 2,735
2 votes
1 answer
4k views

Possible Duplicate: how do you sort du output by size? I have a text file generated from the output of du --max-depth 1 -h > sizeOfHomeFolder.txt It's contents are in this format: $ cat ...
mtk's user avatar
  • 28.6k
1 vote
1 answer
7k views

On a Mac, using Bash, I tend to do du -sh * to tell the sizes of files and folders in the current directory, in MB and GB. But if I want to sort them by the sizes, I might do du -sh * | sort -g and ...
nonopolarity's user avatar
  • 3,319
-1 votes
1 answer
1k views

I want to check the disk usage with a readable size (option -h) [root@iz2ze9wve43n2nyuvmsfx5z /]# du -sh ./* 2>/dev/null | sort -nr 914M ./var 568K ./tmp 523M ./root 496K ./run 156M ...
Wizard's user avatar
  • 2,573
-2 votes
1 answer
1k views

Few things to be achieved 1. Recursively get top 20 largest folders/files 2. Get their sizes in bytes as well as human readable format
Rohan Ghige's user avatar
0 votes
1 answer
71 views

I typically run the command below to check size on each directory. du -sBM /* | sort -nr | head -n20 However, specifying a block size of "M" here will give everything a value in "M". The problem ...
user53029's user avatar
  • 2,973
831 votes
40 answers
1.0m views

When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time ...
user avatar
184 votes
20 answers
96k views

Is there a standard tool which converts an integer count of Bytes into a human-readable count of the largest possible unit-size, while keeping the numeric value between 1.00 and 1023.99 ? I have my ...
Peter.O's user avatar
  • 33.8k
11 votes
4 answers
16k views

I am writing a simple helper function to show a specific folder in the format I want: find . -maxdepth 1 -not -name "." -printf '[%TY-%Tm-%Td]\t%s\t%f\n' | sort -n However I want to show the ...
LeonardChallis's user avatar
2 votes
2 answers
10k views

With GNU ls one can get "human readable" file sizes (this means suffixes like K, M, G, ... for Kilo-, Mega- and Gigabyte etc. are appended and the number is kept below 1024) with the option -h even if ...
viuser's user avatar
  • 2,754
3 votes
2 answers
593 views

I have a directory (e.g. /home/various/) with many subdirectories (e.g. /home/various/foo/, /home/various/ber/, /home/various/kol/ and /home/various/whatever/). Is there a command I can run, which ...
Topper Wey's user avatar