![]() ![]() 2,117 3 3 gold badges 18 18 silver badges 27 27 bronze badges. Command line method If you want to use or must use the command line, I would suggest the following method with an example corresponding to the same system as inspected with baobab. ![]() ![]() You can also specify date ranges using the -newermt parameter. -type f -size +100M If you want the current dir only: find. Select one of the partitions in the list Wait while baobab is searching Look at the graphics to find where most of the drive space is used. Running the first part of example posted by devnull to find the files modified in the last 24 hours, we can see that awk will sum the whole disk usage of the ~/tmp directory: $ find ~/tmp -mtime 0 -exec du -ks ' 1133 Is there a simple command to display the total aggregate size (disk usage) of all files in a directory (folder) I have tried these, and they don't do what I want: ls -l, which only displays the size of the individual files in a directory, nor df -h, which only displays the free and used space on my disks. The following suffixes can be used: b' for 512-byte blocks (this is the default if no suffix is used) c. The -size switch explained: -size n cwbkMG File uses n units of space. Example usage for your specific case: find rapidlyshrinkingdrive/ -name 'offender1' -mtime -1 -print0 du -files0-from-hc tail -n1 (Previously I wrote du -hs, but on my machine that appears to disregard find 's input and instead summarises the size of the cwd. Notice the + and - difference after the size switch. dir1/dir3/earFile1. The command du tells you about disk usage. dir1/dir3/earFile1.ear I want to 'print' the name and the size to the command line. For example, I have a lot of files in my ~/tmp directory: $ du -sh ~/tmp 163 If I issue the find command as follows: find. Be careful not to take into account the disk usage by the directories. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |