“Linux menemukan perintah” Kode Jawaban

Temukan Linux

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

Temukan Linux

find . -name "foo*"
Difficult Dotterel

Temukan di Linux

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

Temukan Perintah di Linux

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

Linux menemukan perintah

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

Temukan Perintah di Linux

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

Jawaban yang mirip dengan “Linux menemukan perintah”

Pertanyaan yang mirip dengan “Linux menemukan perintah”

Lebih banyak jawaban terkait untuk “Linux menemukan perintah” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya