Find the answer to your Linux question:
Results 1 to 7 of 7
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! AceAll's Avatar
    Join Date
    May 2005
    Posts
    67

    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,630
    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. #4
    Just Joined! AceAll's Avatar
    Join Date
    May 2005
    Posts
    67
    Thanx that was helpful

  5. #5
    Linux User muha's Avatar
    Join Date
    Jan 2006
    Posts
    290
    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/ ~>

  6. #6
    Just Joined! scottro's Avatar
    Join Date
    Feb 2006
    Posts
    57
    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

  7. #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
  •