Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

find command in unix

# 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
Comment

find command in linux

 find . -name tecmint.txt
Comment

find command in linux

find /home/linuxize -type f -name document.pdfCopy
Comment

linux find command

find / -name .profile -print
find . -perm 0600 -print
find ./test ./logs -name failed*.* -type f
find . -ctime 1 -print
find . -name ‘*find*’ -print
Comment

find in linux

$ find [where to start searching from]
 [expression determines what to find] [-options] [what to find]
 
 $ find ./GFG -name sample.txt 
Comment

find command in linux

find /etc/dovecot/conf.d -name "*.conf" -mtime 5Copy
Comment

find command in linux

find /var/log/nginx -type f -name '*.log.gz'Copy
Comment

PREVIOUS NEXT
Code Example
Shell :: how to close an issue with a commit 
Shell :: shutdown command rhel 7 
Shell :: node modules folder not getting ignore in git 
Shell :: kde up maxfps 
Shell :: setting docker as a non root user 
Shell :: ssh for github 
Shell :: install mpdf laravel 
Shell :: revert git add 
Shell :: cypress install npm 
Shell :: powershell env vars 
Shell :: add user to dialout group 
Shell :: uninstall nvidia x server ubuntu 
Shell :: git revert all commits to pervious commit 
Shell :: how to learn cuda version 
Shell :: powershell get arguments 
Shell :: batch color 
Shell :: powershell sharepoint copy file to other site collection 
Shell :: linux source command vs dot 
Shell :: bash how to delete blank lines 
Shell :: change user password on mac terminal 
Shell :: change wallpaper command line linux 
Shell :: brew upgrade 
Shell :: change directory, files and sub-directories owner in linux 
Shell :: github api search 
Shell :: download docker ubuntu 
Shell :: sl in linux 
Shell :: start xampp on mac 
Shell :: rustup uninstall nightly 
Shell :: multiple ssh key 
Shell :: how to compress files using terminal in linux 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =