Find Command

find command is one of the most important and much used command in linux systems.it is used to search and locate list of files and directories based on conditions you specify for files that match the arguments.find can be used in variety of conditions like you can find files by permission,users,groups,file type,date,size and other possible critearia.

Syntax

$find [option] [file_name/directory_name]

Opetions

Sr.No

Options

Descriptions

01

-name

to find the file by name

02

-iname

to find the file by name with ignoring the case.

03

-type

to specify the file name with type

04

-size

to find the file with size

05

-mtime

to find the file by its modification time

06

-atime

to find the file by its access time

07

-ctime

to find the file by its changing time

08

-perm

to find the file by its permission

09

d

to find directory with name

10

f

to find file name

Example


$find -name file1.txt
						

find file using name in current directory

Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!