# list all files in current folder and subfolders with given pattern
find . -name "pattern"
# list all files that match pattern 1 or pattern2
find . -type d -name pattern1 -or -name pattern2
# list all files that match pattern excluding a path
find . -type d -name 'pattern' -not -path 'excluded_path/*'
# list all files with size > 100k and size < 1M
find . -type f -size +100k -size -1M
# list all files last edited in last 3 days
find . -type f -mtime +3
find . -name "pattern" -print
find . -name "foo*"
find / -name .profile -print
find . -perm 0600 -print
find ./test ./logs -name failed*.* -type f
find . -ctime 1 -print
find . -name ‘*find*’ -print
$ find [where to start searching from]
[expression determines what to find] [-options] [what to find]
$ find ./GFG -name sample.txt
Code Example |
---|
Shell :: check if a command exists |
Shell :: minikube memory size |
Shell :: bash random int |
Shell :: unable to resolve host myhost |
Shell :: send file netcat |
Shell :: ubuntu folder size |
Shell :: xrandr 1366 |
Shell :: how to install nginx on docker |
Shell :: how to install pytorch 0.4.1 |
Shell :: gcloud shell ssh |
Shell :: update composer mac |
Shell :: failed to start openbsd secure shell server |
Shell :: install tmux2 |
Shell :: linux chmod |
Shell :: git lines added and removed by author |
Shell :: pip install algolia |
Shell :: SSH key passphrase reset |
Shell :: store result of command in variable bash |
Shell :: bash path ubuntu |
Shell :: install trading view on linux |
Shell :: find exclude |
Shell :: linux ping a port |
Shell :: brew install node sass |
Shell :: How to create or generate secret key for django |
Shell :: git push remote |
Shell :: if command has output bash |
Shell :: strapi run command |
Shell :: kde 144hz |
Shell :: how to upgrade npm in ubuntu |
Shell :: add user to dialout group |