Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
How to use the whereis command
Results 1 to 2 of 2

Thread: How to use the whereis command

  1. #1

    How to use the whereis command

    Hi,

    Can any one please teach me as how to use the whereis command to find files etc. Here is a page that I just came across, but can't really make much of it.

    http://www.oreillynet.com/linux/cmd/...path=w/whereis

    For example if there is a file on my desktop called myfile.txt, how do I search for it? Do I always need to go into the directory first with the cd command and then type the command or is it possible that the command itself will take of it and search through the entire computer automatically? Many thanks.....

  2. #2
    whereis is not a generic file finder. As that link suggests, it finds binaries, source and man pages. eg 'whereis ls'.
    find will do what you want. eg 'find /path/to/desktop -name myfile.txt'. If you don't know where your window manager keeps your desktop, doing it on your home directory will be a good bet.

Similar Threads

  1. TAR command
    By vwgtiturbo in forum Linux - General Topics
    Replies: 2
    Last Post: 01-30-2004, 05:53 PM
  2. the 'dd' command...
    By nusjunkie in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 06-11-2002, 07:01 AM
  3. Help with a command?
    By Rastar in forum Linux - General Topics
    Replies: 4
    Last Post: 05-11-2002, 12:09 AM
  4. What is the command? Or App?
    By TomP in forum Linux - General Topics
    Replies: 10
    Last Post: 02-26-2002, 07:36 PM
  5. Looking for Command
    By jmbrinks in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 02-25-2002, 09:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •