Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: CLI - finding files

  1. #1
    Join Date
    May 2008
    Location
    on the road
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    CLI - finding files

    I don't know where anything is. most specifically downloads, and anything specific. I can use cd proficientlly and ls. But What I want is to be able to find anything fast and easy. For example, I downloaded gnaural the otherday. But where 'd it go? I'm not really even sure to begin. I just want to know I can find something when I want to.

  2. #2
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: CLI - finding files

    Quote Originally Posted by adamogardner View Post
    I don't know where anything is. most specifically downloads, and anything specific. I can use cd proficientlly and ls. But What I want is to be able to find anything fast and easy. For example, I downloaded gnaural the otherday. But where 'd it go? I'm not really even sure to begin. I just want to know I can find something when I want to.
    To search for filesname:

    Code:
    locate file_name
    To search for a specific command:

    Code:
    which command_name
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  3. #3
    Join Date
    Sep 2007
    Location
    Kuala Lumpur, Malaysia
    Beans
    70
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: CLI - finding files

    The command line to find files is:

    Code:
    locate <your-file-name>
    for example if you wanna find gnaural, just type in:

    Code:
    locate gnaural

    However, if it is not found, maybe you should update your locate database by doing:

    Code:
    sudo updatedb
    then try again:

    Code:
    locate gnaural
    feel free to visit my Coder's Talk Blog

  4. #4
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: CLI - finding files

    Try:
    Code:
    find / -name searchterm
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  5. #5
    Join Date
    Mar 2008
    Beans
    4,715
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: CLI - finding files

    Suggestion for firefox: Click Edit>Preferences. Click Main tab. Enable "Always ask me where to save files".

  6. #6
    Join Date
    May 2008
    Location
    on the road
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: CLI - finding files

    Apogees, I followed your directions and nothing really happened as you can see:

    adamogardner@CRONUS:~$ locate gnaural
    adamogardner@CRONUS:~$ sudo updatedb
    sudo: unable to resolve host CRONUS
    [sudo] password for adamogardner:
    adamogardner@CRONUS:~$ locate gnaural
    adamogardner@CRONUS:~$

    unutbu, thanks for that. never new it was there. now I customized my webpages!

    dr.small, your wording is confusing. " find / " i understand, but " -name " and "searchterm" i don't understand.
    Last edited by adamogardner; July 24th, 2008 at 11:35 PM.

  7. #7
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Beans
    10,279
    Distro
    Ubuntu

    Re: CLI - finding files

    do you have gnaural installed?

  8. #8
    Join Date
    Oct 2007
    Location
    ISS
    Beans
    1,429

    Re: CLI - finding files

    Code:
    sudo: unable to resolve host CRONUS
    adamogardner, you're getting an error there. Do you have

    Code:
    127.0.0.1	localhost
    127.0.1.1	CRONUS
    lines in your /etc/hosts file?

  9. #9
    Join Date
    May 2008
    Location
    on the road
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: CLI - finding files

    it always says that about host not found. here's what it says:

    127.0.0.1 localhost
    127.0.1.1 CRONOS

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

  10. #10
    Join Date
    Oct 2007
    Location
    ISS
    Beans
    1,429

    Re: CLI - finding files

    Quote Originally Posted by adamogardner View Post
    it always says that about host not found. here's what it says:

    127.0.0.1 localhost
    127.0.1.1 CRONOS

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    That looks fine to me. Weird. Don't know why you get that error.

    Other than getting that error does everything work OK?

Page 1 of 2 12 LastLast

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
  •