Find the answer to your Linux question:
Results 1 to 6 of 6
how to searching file named contain "xmms"? i just write xmms in the "Find Files" but no results...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Location
    Malang, Indonesia
    Posts
    53

    how to searching file


    how to searching file named contain "xmms"?
    i just write xmms in the "Find Files"
    but no results

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    u could try:

    Code:
    updatedb
    then:
    Code:
    locate xmms | less
    (might be slocate instead of locate)
    piped to less since there will possibly be a LOT of results

    or try:

    Code:
    find / -iname '*xmms*'
    will find any file containing xmms in the dilename or extension
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  3. #3
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    If youare looking to find the word xmms in a file try this -
    Code:
    grep -i xmms filename
    Or to search a directory and it's subdirectories for the phrase xmms try -
    Code:
    grep -ri xmms direcotryname
    The i switch makes the search case insensitive, the r switch makes the search recursive, that is processing throughot subdirectories. If you are just looking to find files whose filenames contain the phrase xmms try this -
    Code:
    sudo updatedb
    ##insert root password when prompted - this part may take a few minutes ##
    locate xmms
    This will find everything that has xmms as part of the filename. Good luck -

  4. #4
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    Oops...sorry sdousley...post collision. Ireally need to spend less time typing these replies

  5. #5
    Just Joined!
    Join Date
    Jul 2005
    Location
    Malang, Indonesia
    Posts
    53

    thnx

    nice.....

  6. #6
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Quote Originally Posted by bigtomrodney
    Oops...sorry sdousley...post collision. Ireally need to spend less time typing these replies
    hehe no problems, we were probably writing them both at the same time anyhow hehe
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

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