1752767 Members
5271 Online
108789 Solutions
New Discussion юеВ

Re: searching of file

 
mohit khandelwal
New Member

searching of file

i want to search a file then how could i search.
please tell me the command
5 REPLIES 5
prasadb
Super Advisor

Re: searching of file

hi mohit,

user find command.

e.g., if you want to find a file named xyz at the root ..

then

#find / -name xyz -print

do man find , for more details.
Steven Schweda
Honored Contributor

Re: searching of file

> i want to search a file [...]

Do you want to search _for_ a file, or do you
want to search for something _in_ a file?

"man find" or "man grep", depending.
Md. Farhan A Azam
Trusted Contributor

Re: searching of file

hi,

#find / -name {File Name}
sujit kumar singh
Honored Contributor

Re: searching of file

Hi


finding a file starting the search from the /

#find / -name


finding a file starting the search from the any other directory say /tmp


#find /tmp -name


Regards


Sujit
Md. Farhan A Azam
Trusted Contributor

Re: searching of file