[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Others  |  Miscellaneous  |  Topic: How to search for a particular file using ls command
Welcome to LinuxCommunity

You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: How to search for a particular file using ls command  (Read 737 times)
0 Members and 1 Guest are viewing this topic.
taraj
Guest
« on: September 17, 2005, 11:40:03 PM »

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
*****
Offline Offline

Posts: 644


View Profile
« Reply #1 on: September 19, 2005, 12: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
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Search the entry for the default web browser Distribution Specific siddharth 0 2111 Last post March 13, 2004, 02:33:46 AM
by siddharth
how to convert wmv file to dat file Linux Video Support christopher_1 1 1744 Last post May 27, 2005, 07:38:20 AM
by taraj
Find Command Os Talk gauravbajaj 12 2747 Last post December 26, 2007, 02:24:47 AM
by dragoncity99
SAM file in to floppy as a text file without using live cd or any softwere Miscellaneous naveenth 2 872 Last post November 28, 2007, 12:26:45 AM
by naveenth
cp command or mv or ? Miscellaneous craig_linuxsolved 3 726 Last post October 29, 2009, 11:13:19 AM
by dragoncity99
Search LS
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 08, 2010, 07:14:46 AM

Login with username, password and session length
Navigation
Recent Discussions
[September 06, 2010, 03:51:09 PM]

[September 06, 2010, 07:59:34 AM]

[September 03, 2010, 11:45:53 AM]

[September 02, 2010, 06:21:15 AM]

[September 02, 2010, 03:14:25 AM]

[August 31, 2010, 08:30:56 AM]

[August 31, 2010, 01:03:31 AM]

[August 31, 2010, 12:53:38 AM]

[August 31, 2010, 12:43:01 AM]

[August 22, 2010, 05:55:23 AM]
Members
Total Members: 7755
Latest: judah_clan
Stats
Total Posts: 9561
Total Topics: 2751
Online Today: 7
Online Ever: 128
(April 10, 2010, 10:24:17 PM)
Users Online
Users: 0
Guests: 12
Total: 12
Privacy Policy| Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Theme & TinyPortal v0.9.8 © Bloc