Skip to main content

Linux command: find - search for files in a directory hierarchy

seek and you shall find

find - search for files in a directory hierarchy

Hint:

find WHERE WHAT

Find files larger than 1GB

$ find . -type f -size +1G

Find files smaller than 1GB

$ find . -type f -size -1G

Find ALL files larger than 100MB and sort by size

$ find / -type f -size +100M 2>/dev/null -exec ls -sh {} \; | sort -h

For ethical hacking

Find files with SUID

find / -perm -u=s -type f 2>/dev/null
find / -perm -4000 -type f 2>/dev/null
On Windows, use dir to search for files/directories:
dir filename /s

Popular posts from this blog

HTML5: Complete Table Structure

Photo Credit: Gerald - pixabay.com   <table> <caption style="caption-side:bottom;" >Caption here</caption> <thead> <tr> <th>Header1</th> <th>Header2</th> ... </tr> </thead> <tbody> <tr> <td>Column1</td> <td>Column2</td> ... </tr> ... </tbody> <tfoot>Footer here</tfoot> </table>

VMware Workstation: vmrun.exe

Using vmrun.exe to manage VMs on VMware Workstation

Chrome: Common Keyboard Shortcuts

Get more productive by learning and using shortcuts in Chrome browser.