Find the answer to your Linux question:
Results 1 to 7 of 7

Thread: find command

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    find command


    hi all,
    i am a linux newb. I would like to find a file using the "command line prompt". lets say, "hosts.lpd" on the whole linux system. Kindly let me know how to go about it .let me if there any other command in unix which does the same thing efficiently.

    thanx

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,634
    Should be able to just go:
    Code:
    locate hosts.lpd
    If you get an error about the database not being updated recently run as root:
    Code:
    updatedb
    Then try 'locate' again.
    Linux Mint + IceWM Registered: #371367 New Members: click here

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    You could also do
    Code:
    #find / -name hosts.lpd

  4. $spacer_open
    $spacer_close
  5. #4
    Thanx that was helpful

  6. #5
    Code:
    whereis <command>
    does the trick for any commands or script you need to find ...
    Now what? You have Linux installed and running. The GUI is working fine, but you are getting tired of changing your desktop themes. You keep seeing this "terminal" thing. Don't worry, they'll show you what to do @
    <~ http://www.linuxcommand.org/ ~>

  7. #6
    There's a nice little tutorial on find at

    http://www.hccfl.edu/pollock/Unix/FindCmd.htm
    and another one

    http://www.softpanorama.org/Tools/Fi...tutorial.shtml

    I've found both of them helpful

  8. #7
    Just Joined!
    Join Date
    Sep 2005
    Location
    New delhi
    Posts
    22
    Check out linux best tutorial site with 25+ examples.

    www.amitsharma.linuxbloggers.com/how_to_find.htm

Posting Permissions

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