Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-05-2011, 10:15 AM   #16
Senior Member
Registered: Jan 2010
Posts: 1,620

Rep: Reputation: 450Reputation: 450Reputation: 450Reputation: 450Reputation: 450

Glad I could help. And to prevent bash from doing any unwanted globbing in the future just put your pattern in 'single-quotes' like
sudo find / -name 'links_to_*'

This way it doesn't matter if there are several files in the current working directory that begin with 'links_to_'.
Also read the man-page of find and search for something like 'glob' or 'pattern match'. I am not sure if find's globbing works exactly the same way as bash's does.
1 members found this post helpful.
Old 01-07-2011, 05:05 PM   #17
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Arrow Don't forget locate

Originally Posted by mark_alfred View Post
... Anyway, I feel the find command is quite tedious. Instead, run "updatedb" as root/sudo, and then use the "locate" command.
Sometimes you have no choice -- you must use find; but I always try locate 1st. Furthermore, on MEPIS, updatedb is a nightly cron job.

Last edited by archtoad6; 01-07-2011 at 05:06 PM.


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
strange behavior of find tkmsr Debian 8 05-12-2010 09:31 AM
strange behavior of find or grep alenD Programming 4 09-21-2007 07:35 AM
Very Strange Behavior raysr Mandriva 4 08-31-2004 03:06 PM
Strange Behavior andrewb758 Linux - Hardware 5 08-31-2003 03:42 PM
strange behavior abhijit Linux - General 3 07-10-2003 12:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:49 AM.

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