Find: Difference between revisions

From DISI
Jump to navigation Jump to search
(Created page with "The find command is used to locate files within a given directory that contains several characteristics you desire. Usage: find [symbolic link option] <list of paths to sea...")
 
No edit summary
Line 13: Line 13:
-user user_name: files that are owned by user user_name
-user user_name: files that are owned by user user_name
-xdev: skips networked or mounted filesystems
-xdev: skips networked or mounted filesystems
 
Use option -print 2>/dev/null to skip find error messages






[[Category:Sysadmin]]
[[Category:Sysadmin]]

Revision as of 01:58, 28 July 2016

The find command is used to locate files within a given directory that contains several characteristics you desire.

Usage: find [symbolic link option] <list of paths to search> [find options]

The symbolic link options are as follows: -P: Do not follow symbolic links. This is the default option. (Remember P for Prohibited from following symlinks) -L: Always follow symbolic links. This will cause the find command to examine whatever the symlink points to. (L for Loves to follow symlinks) -H: Only follows if symlink is in the list of paths to search (H for

find options

-size [n]<mkg>: using n units of space in conjunction with a + or - and unit type, can search for files of certain size -user user_name: files that are owned by user user_name -xdev: skips networked or mounted filesystems

Use option -print 2>/dev/null to skip find error messages