“Linux Znajdź polecenie” Kod odpowiedzi

Znajdź Linuksa

# 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

Znajdź Linuksa

find . -name "foo*"
Difficult Dotterel

Znajdź w Linux

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

Znajdź polecenie w Linux

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

Linux Znajdź polecenie

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

Znajdź polecenie w Linux

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

Odpowiedzi podobne do “Linux Znajdź polecenie”

Pytania podobne do “Linux Znajdź polecenie”

Więcej pokrewnych odpowiedzi na “Linux Znajdź polecenie” w Shell/Bash

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu