lahealthy.blogg.se

Print list of files and folders in a drive in foldersizes
Print list of files and folders in a drive in foldersizes







print list of files and folders in a drive in foldersizes

Note: Prefix with sudo to include directories that your account does not have permission to access.Įxample showing top 10 biggest files and directories in /var (including grand total). Leave off more if using a smaller number.2>/dev/null - exclude "permission denied" error messages (thanks arguments:.-BM to output the sizes in megabyte (M) block sizes (B).du -aBM 2>/dev/null | sort -nr | head -n 50 | more My favorite solution uses a mix from several of these good answers. It allows to browse through the directories and show percentages of disk usage with ncurses library. It provides a fast and easy-to-use interface through famous du utility. On the "related packages" section of gt5, I found ncdu. It is possible to navigate and ascend to directories by using cursor-keys with text based browser (links, elinks, lynx etc.) It displays what has happened since last run and displays dir size and the total percentage. This small and effective programs provides more convenient listing than the default du(1). Years have passed and disks have become larger and larger, but even on this incredibly huge harddisk era, the space seems to disappear over time. One application that looks very promising is gt5.

print list of files and folders in a drive in foldersizes

The next command find files between 10MiB and 12MiB: find / -size +10M -size -12M -lsĪpt-cache search 'disk usage' lists some programs available for disk usage analysis. If you want to find files between a certain size, you can combine it with a "size lower than" search. The next command will list all files larger than 10MiB ( not to be confused with 10MB): find / -size +10M -ls If you just need to find large files, you can use find with the -size option.









Print list of files and folders in a drive in foldersizes