“Commande Linux Find” Réponses codées

Trouver 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

Trouver Linux

find . -name "foo*"
Difficult Dotterel

trouver dans Linux

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

Trouver la commande dans Linux

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

Commande Linux Find

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

Trouver la commande dans Linux

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

Réponses similaires à “Commande Linux Find”

Questions similaires à “Commande Linux Find”

Plus de réponses similaires à “Commande Linux Find” dans Shell/Bash

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code