Search related commands





Search commands will help you to search files/directories and file content.

Command GREP
            Grand regular expression, it is used to search the file name and content of the file

 Command FIND
            It is command to find files with different options.
# find / -iname <file name>           - to search files with file name
# find / -perm 770                            - to search files with their permissions
# find / -user <user name>            - to search files with user ownership
# find / -size 10M                             - to search files with their size
find Command Output

Command LOCATE
            Locate command can be used to searching for the file based on the string name from / onwards.
locate Command Output

No comments:

Post a Comment