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

Qubes OS: TemplateVM fedora-29 - Install Powershell Core

Install Powershell Core on fedora-29 TemplateVM in order to practice powershell core right in fedora.

gcloud CLI - Google Cloud Command Line Interface: Notes

"Google Cloud CLI (Command-Line Interface) is a set of tools that you can use to manage resources and applications hosted on Google Cloud. These tools include the gcloud , gsutil , and bq command-line tools."

Bitnami: Notes

"Bitnami makes it easy to get your favorite open source software up and running on any platform, including your laptop, Kubernetes and all the major clouds."