WebDec 9, 2024 · Use the ls Command Generally, the ls command is used to list all of the directories and files in the Linux terminal. However, it can do much more – for instance, classify directory contents and display file sizes. Use the find Command The find command can be used to search any files inside a Linux filesystem. In this case, we can employ it … Websudo find / -type f -size +10M Find Large Unused Files: which have not been modified for more than 30 days and have a file size of at least 10MB. sudo find / -xdev -mtime +30 -type f -size +10M use du command line the du command to estimate file sizes in Linux. And how to find large files in Linux
How to Find Large Files in Linux – TecAdmin
WebThe user can easily access and manage the system using the command line interface. Keeping this in view, this post enlists the possible methods to find large files in Linux using the command line interface with the following outcomes: Method 1: Using the “ls” Command. Method 2: Using the “find” Command. Method 3: Using “du” Command. WebNov 28, 2024 · # find . -size +10M -size -20M Example 5. In this example we use the find command to search for files in /etc directory which are greater than 5MB and we also print its relevant file size: $ find /etc -size +5M -exec ls -sh {} + 6.1M /etc/udev/hwdb.bin Example 6. Find first 3 largest files located in a in a current directory recursively: daytona panther
How to Find the Top 10 Largest Files in Linux 2DayGeek
WebFeb 19, 2024 · 1. Finding largest directories and files in Linux First we are going to look at how we can find the largest directories and files in linux combined, execute the … WebAug 1, 2024 · The find command can list large files that are bigger than the specified size. The -size option is used to specify the size. In the following example, we list large files … WebJul 20, 2024 · To find the biggest files or directories on Linux, use the following command. $ du -Sh sort -rh head -n 15. The above command will sort all files and sub-directories which exist in the current directory in … daytona pearl grey