"find" command examples

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: * Find group-writable or world-writable files: $ '''find . -type f -perm -022''' * Find only group-writable files: $ '''find . -type f -perm -020 ! -perm -022''')
Line 1: Line 1:
-
* Find group-writable or world-writable files:
+
* Find group-writable or other-writable files:
$ '''find . -type f -perm -022'''
$ '''find . -type f -perm -022'''
* Find only group-writable files:
* Find only group-writable files:
$ '''find . -type f -perm -020 ! -perm -022'''
$ '''find . -type f -perm -020 ! -perm -022'''

Revision as of 15:35, 28 September 2007

  • Find group-writable or other-writable files:
$ find . -type f -perm -022
  • Find only group-writable files:
$ find . -type f -perm -020 ! -perm -022
Personal tools