Mémo find

De UnixWiki
Aller à : navigation, rechercher

Recherche du setuid et setgid bit

Solaris

 find / -local -type f \( -perm -4000 -o -perm -2000 \) -print 

AIX

 find / -type f \( -perm -4000 -o -perm -2000 \) -print

Linux

 find / -local -type f \( -perm -4000 -o -perm -2000 \) -print

HP-UX

 find / -local -type f \( -perm -4000 -o -perm -2000 \) -print

Lister les fichiers quit ont étés modifier dans les dernières 24 h

 find . -mtime -1

Fichiers modifier de plus de 24 h

 find . -mtime +1

-atime n accès au fichier.

-mtime n modification du fichier

-ctime n si l'inode a changer