LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2008, 01:16 PM   #1
praveenjayak
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Rep: Reputation: 0
Smile I am a newbie to linux !!! Please help to find files on linux box


Hi,

Please help me in finding files in linux, its been hard time to search for files. find is not giving me the proper results at the same time GUI find option is working fine. however i wanted to search from CLI

appreciate it

Praveen.
 
Old 05-30-2008, 01:19 PM   #2
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 381

Rep: Reputation: 31
You can use "locate" or "find". Locate is much faster than find but relies on some sort of database which needs updating in order for locate to find any new files. Some distros update the database automatically through a cron job or everytime you reboot. With others, you have to manually update the database by doing "updatedb" as root.
Originally posted by reddazz
 
Old 05-30-2008, 03:08 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by praveenjayak View Post
Hi,

Please help me in finding files in linux, its been hard time to search for files. find is not giving me the proper results at the same time GUI find option is working fine. however i wanted to search from CLI

appreciate it

Praveen.
Can you tell us the problem with "find"? (There are lots of options)

On brute force method is using grep--either for filenames or content
 
Old 05-30-2008, 03:48 PM   #4
I like pies
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Hi dude.

There's probably not a bigger noob on this site than me, but I've sometimes found the 'whereis' program to be useful when it comes to locating compiled executable files.
 
Old 05-30-2008, 04:53 PM   #5
seraphim172
Member
 
Registered: May 2008
Posts: 101

Rep: Reputation: 15
Both 'whereis' and 'which' can help finding files. But it is certainly better to get used to 'find' and learn the available options - without properly understanding how it works it is difficult to find a file, even if it's on the system.

Linux Archive

Last edited by seraphim172; 06-25-2008 at 05:44 AM.
 
Old 05-30-2008, 07:14 PM   #6
grizly
Member
 
Registered: Nov 2006
Location: Melbourne Australia
Distribution: Centos, RHEL, Debian, Ubuntu, Mint
Posts: 128

Rep: Reputation: 16
http://www.hccfl.edu/pollock/Unix/FindCmd.htm
http://www.computerhope.com/unix/ulocate.htm

Google is your friend.
 
Old 06-07-2008, 07:04 AM   #7
I like pies
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by seraphim172 View Post
Both 'whereis' and 'which' can help finding files. But it is certainly better to get used to 'find' and learn the available options - without properly understanding how it works it is difficult to find a file, even if it's on the system.
Wow dude, that is one totally awesome little program, and, if I'm being honest, I had never heard of it, I had only ever used 'whereis' beforehand. Many thanks, old bean.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux newbie...Q: how to find files and sort by time chucker8 Linux - General 6 05-12-2006 06:01 PM
FTP files from DOS box to LINUX box lobo1 Linux - Software 4 06-02-2005 11:57 AM
Transfairing files from windows xp box to mandrake linux 10.0 box. tyledogg Linux - Newbie 4 07-26-2004 12:24 AM
How do I access files on Win box from Linux box zanew Linux - Networking 5 06-12-2002 12:58 PM


All times are GMT -5. The time now is 02:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration