Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

71%
+3 −0
Q&A How to find big files and directories?

If you don't mind installing something I recommend ncdu. It sorts the directories and files by size, you can exclude other mounts, navigate the tree directly and even delete files and folders as yo...

posted 2mo ago by GeraldS‭  ·  edited 2mo ago by GeraldS‭

Answer
#2: Post edited by user avatar GeraldS‭ · 2024-10-02T13:56:41Z (about 2 months ago)
  • If you don't mind installing something I recommend `ncdu`. It sorts the directories by size, you can exclude other mounts, navigate the tree directly and even delete files and folders as you go.
  • ```
  • ncdu 1.19 ~ Use the arrow keys to navigate, press ? for help
  • --- / --------------------------------------------------------------------------
  • 14.4 GiB [###########] /home
  • 8.3 GiB [###### ] /var
  • 5.9 GiB [#### ] /usr
  • 1.6 GiB [# ] /opt
  • 180.6 MiB [ ] /boot
  • 77.8 MiB [ ] /root
  • 12.2 MiB [ ] /etc
  • 6.6 MiB [ ] /tmp
  • 3.6 MiB [ ] core
  • 4.0 KiB [ ] /snap
  • 0.0 B [ ] /media
  • 0.0 B [ ] /mnt
  • @ 0.0 B [ ] initrd.img.old
  • @ 0.0 B [ ] initrd.img
  • @ 0.0 B [ ] vmlinuz.old
  • *Total disk usage: 30.5 GiB Apparent size: 29.2 GiB Items: 667060
  • ```
  • There should be a package for it by default in every distribution.
  • If you don't mind installing something I recommend `ncdu`. It sorts the directories and files by size, you can exclude other mounts, navigate the tree directly and even delete files and folders as you go.
  • ```
  • ncdu 1.19 ~ Use the arrow keys to navigate, press ? for help
  • --- / --------------------------------------------------------------------------
  • 14.4 GiB [###########] /home
  • 8.3 GiB [###### ] /var
  • 5.9 GiB [#### ] /usr
  • 1.6 GiB [# ] /opt
  • 180.6 MiB [ ] /boot
  • 77.8 MiB [ ] /root
  • 12.2 MiB [ ] /etc
  • 6.6 MiB [ ] /tmp
  • 3.6 MiB [ ] core
  • 4.0 KiB [ ] /snap
  • 0.0 B [ ] /media
  • 0.0 B [ ] /mnt
  • @ 0.0 B [ ] initrd.img.old
  • @ 0.0 B [ ] initrd.img
  • @ 0.0 B [ ] vmlinuz.old
  • *Total disk usage: 30.5 GiB Apparent size: 29.2 GiB Items: 667060
  • ```
  • There should be a package for it by default in every distribution.
#1: Initial revision by user avatar GeraldS‭ · 2024-10-02T13:56:21Z (about 2 months ago)
If you don't mind installing something I recommend `ncdu`. It sorts the directories by size, you can exclude other mounts, navigate the tree directly and even delete files and folders as you go.

```
ncdu 1.19 ~ Use the arrow keys to navigate, press ? for help
--- / --------------------------------------------------------------------------
   14.4 GiB [###########] /home
    8.3 GiB [######     ] /var
    5.9 GiB [####       ] /usr
    1.6 GiB [#          ] /opt
  180.6 MiB [           ] /boot
   77.8 MiB [           ] /root
   12.2 MiB [           ] /etc
    6.6 MiB [           ] /tmp
    3.6 MiB [           ]  core
    4.0 KiB [           ] /snap
    0.0   B [           ] /media
    0.0   B [           ] /mnt
@   0.0   B [           ]  initrd.img.old
@   0.0   B [           ]  initrd.img
@   0.0   B [           ]  vmlinuz.old
*Total disk usage:  30.5 GiB   Apparent size:  29.2 GiB   Items: 667060
```

There should be a package for it by default in every distribution.