NettetLIst all installed packages in size order Also remember that the installed size is just part of the space taken up by packages. The compressed version is probably still in the cache, and that takes up some space too. You can remove those with apt-get clean. Share Improve this answer Follow edited Oct 24, 2024 at 14:06 user-id-14900042 105 4 NettetTypically, for all but the simplest find commands, you will want to filter only files or only directories. To filter only directories use -type d. find . -type f -name "*.tif" -size -160k -delete ^ the dot (.) stands for the current directory. you can also search another directory in the current directory
How Linux Sort by Size Command works Examples - EduCBA
Nettet29. okt. 2024 · Include the -1 option to list one file per line, the -h option to put the sizes in human-readable format, the -S option to sort the files by their size, and the -s option to show each file’s size. $ ls -1hSs total 16G 7.5G centos.iso 2.6G ubuntu.iso 2.4G manjaro.iso 1.9G fedora.iso 671M archlinux.iso 349M debian.iso Nettet3. aug. 2010 · Building on the accepted answer, this command will show you the sizes of the folders in the directory, and will also list them by size for you to interpret easier: $ du -sh */ sort -rn Share Improve this answer Follow answered Mar 2, 2024 at 22:17 Ethan 180 1 5 Add a comment 4 trewyn wrap around center
linux - How to list files recursively and sort them by modification ...
Nettet28. nov. 2024 · This config will list few examples on how to search files using find command based on the file size. Example 1. Let’s start by searching for all files in our current working directory with file size of 6MB: $ find . -size 6M The suffix M denotes Megabytes that is 1048576 bytes. The other available suffixes to our disposal are: Nettet3. sep. 2024 · Note that sizes are listed in bytes (B), megabytes (MB), gigabytes (GB), or terabytes (TB) when the file or directory's size is larger than 1024 bytes. List files … Nettet10. jan. 2024 · The ls command is used to list files in Linux distributions like Ubuntu, Mint, Debian, Kali, CentOS, etc. The ls command provides a lot of features where one of them is listing or sorting files according to their sizes. In this tutorial, we will learn different use cases to list files by their sizes. Sort Files By Name (Alphabetically) trewythen care home