Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
November 22, 2024, 03:33:40 PM
News
: LinuxSolved.com Linux Help Community Forum..
Home
Search
Login
Register
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
»
Others
»
Miscellaneous
»
How to search for a particular file using ls command
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to search for a particular file using ls command (Read 5591 times)
taraj
Guest
How to search for a particular file using ls command
«
on:
September 18, 2005, 03:40:03 AM »
I saw the man page for ls but got now idea that how I can search for a file in whole system using "ls" .
Say I want to find that where is the file name "xys" in my system then how can I find it .
Logged
gauravbajaj
LST CareTaker
Experienced
Posts: 658
How to search for a particular file using ls command
«
Reply #1 on:
September 19, 2005, 04:37:48 AM »
U can do this by find command
#find / -name xys
where / is the dir name where u want to search the file (here / symbol means u want to search it in root)
If u want to find the file only in /usr dir then command become:-
#find /usr -name xys
Cheers
Gaurav
Logged
Print
Pages: [
1
]
« previous
next »
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
»
Others
»
Miscellaneous
»
How to search for a particular file using ls command