Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
351
rated 0 times [  351] [ 0]  / answers: 1 / hits: 215247  / 2 Years ago, thu, july 7, 2022, 11:50:32

I was looking through my system with du -sch ./* to find the big useless files I may have stockpiled with no reason, when I found this:



$ du -sch ./*
du: cannot read directory ‘./drbunsen/.gvfs’: Permission denied
du: cannot read directory ‘./drbunsen/.cache/dconf’: Permission denied
18G ./drbunsen
18G total

$ cd drbunsen/
$ du -sch ./*
601M ./Desktop
20K ./Documents
598M ./Downloads
4.0K ./flash
4.0K ./Music
8.0M ./Pictures
4.0K ./Public
4.0K ./Templates
4.0K ./Ubuntu One
8.0K ./Videos
11G ./VirtualBox VMs
6.9M ./workspace
12G total


How do I make hidden files visible? du -sch ./.* gives the same result as du -sch ./*.


More From » disk-usage

 Answers
0

Use



du -sch .[!.]* * |sort -h


in your home folder.



Alternatively, the command I use most frequently is



ncdu


Easy to install if needed:



sudo apt-get install ncdu

[#29064] Friday, July 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
utilitere

Total Points: 394
Total Questions: 110
Total Answers: 114

Location: Solomon Islands
Member since Wed, Mar 29, 2023
1 Year ago
;