Linux/Ubuntu: How to find large files and directories via SSH

Using the terminal, you can easily search for files that have a minimum size that you define yourself. The following call searches the entire hard disk for files larger than 10MB and displays them with the path in the terminal.

find / -size +10M -ls

Alternatively, you can specify a directory that you want to search. You only have to specify the path to the directory.

find /var/www/vhosts -size +10M -ls

Or you can abbreviate the whole thing with a dot to search the current directory you are in.

find . -size +10M -ls

If you want to find all files that are between 10MB and 15MB, you can use the following call:

find / -size +10M -size -15M -ls
Hier klicken, um den Beitrag zu bewerten
[Gesamt: 0 Durchschnitt: 0]

Leave A Comment

Title