You can use it. find Use the following command to search for large files in the Linux file system. Enter the following command into your terminal to find all files larger than 100 MB:
find / -type f -size +100M -exec ls -lh {} \;among, / The root directory to search in. -type f Specifies that only file types (excluding directories) should be queried. -size +100M The file size must be greater than 100 MB.-exec ls -lh {} \; This command lists all files that meet the specified criteria and displays their detailed information. If you wish to save the query results to a file, you can modify the above command as follows:
find / -type f -size +100M -exec ls -lh {} \; > large_files.txtamong, large_files.txt The filename for saving query results.