LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-03-2010, 09:37 PM   #1
sidneyluo
LQ Newbie
 
Registered: May 2010
Posts: 5

Rep: Reputation: 0
Unhappy question about whereis command


hi

i use whereis command to find some file. but it seems not work.
for example: i have a file named abc.v and it's in ~/main/ directory. i'm now in ~/ , and i input the command and get the result as below:


$whereis abc.v
abc:

what happened? nothing can i know from the message. am i right in using this command.

ps:
1/the abc.v is created on the linux server for months. so it should be updated to the database, if it has a such database.
2/i also use the command "locate". and the result is:

$locate abc.v
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
warning: You need to run the 'updatedb' command (as root) to create the database.
Please have a look at /etc/updatedb.conf to enable the daily cron job.

i'm not root user. so i can't use locate or whereis commands forever on this server?

thanks for the person can help me
 
Old 05-03-2010, 09:43 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

whereis is there to locate system packages, not user files.

If locate isn't working talk to the root user. Alternatively use find.



Cheers,
Tink
 
Old 05-03-2010, 09:54 PM   #3
sidneyluo
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
thanks Tink! thank you for your quick response
 
  


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
Whereis yogaboy2 Linux - Newbie 6 09-07-2009 09:01 PM
'Whereis' output Ander Linux - Newbie 3 05-05-2006 06:18 AM
'whereis' finds a command but I can't execute it brunnopessoa Linux - Newbie 9 10-18-2004 02:05 AM
whereis Realplayer? mohapi Fedora 8 06-12-2004 03:00 PM
diffenerce between whereis an which??????? iamthewind Linux - Software 3 10-10-2003 03:01 AM


All times are GMT -5. The time now is 02:16 AM.

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