linux search for files larger than 1

linux search for files larger than

$ find . -type f -size +4G

Here is what the above code is Doing:
1. find . -type f -size +4G
– find: the command
– .: the directory to search
– -type f: only search for files
– -size +4G: only search for files larger than 4GB
2. -exec ls -lh {} \;
– -exec: execute the following command
– ls -lh: the command to execute
– {}: the file found by find
– \;: end of the command

Similar Posts