Give me Linux command to locate files larger than 500MB in a directory structure. #Linx #DFIR #CommandLine #Trivia

Nov 17, 2022 · 2:15 PM UTC

6
1
8
Lots of folks chimed in with the correct answer to yesterday's Linux DFIR command line trivia, but 🐘xuf@geraffel.social was quickest off the mark. find /path/to/dir -type f -size +500M This answer demonstrates a couple of "find" conventions. "+" and… infosec.exchange/@hal_pomera…
1
1
3
Replying to @hal_pomeranz
"Hal, I command you to find files larger than 500MB in a directory structure" I'm sure you were going for find -size +500MB, but the first option seems more fun
2
7
You didn’t say “sudo”
1
5
Replying to @hal_pomeranz
Linux can't do it. You need a superior OS like Windows to find files larger than 500MB in a directory
Replying to @hal_pomeranz
find /path/to/structure -size +500M
3
Replying to @hal_pomeranz
Ask Hal. Watch him do the Hal dance. See Hal ask this question years later.... answer with sudo find <path> -type f -size +500M 2>/dev/null