2013-08-22 03:34:11 +02:00
|
|
|
# To find files by extension (ex: .jpg):
|
2013-08-11 21:37:11 +02:00
|
|
|
find . -iname "*.jpg"
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To find directories:
|
2013-08-11 21:37:11 +02:00
|
|
|
find . -type d
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To find files:
|
2013-08-11 21:37:11 +02:00
|
|
|
find . -type f
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To find files by octal permission:
|
2013-08-11 21:37:11 +02:00
|
|
|
find . -type f -perm 777
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To find files with setuid bit set:
|
2013-08-11 21:37:11 +02:00
|
|
|
find . -xdev \( -perm -4000 \) -type f -print0 | xargs -0 ls -l
|