Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default What is the shell command to list all xxx.* file recursively?

    I want to list all files (in all subfolders) with xxx.* file name. How do I do that? I found a few files planted by hackers and want to make sure I have deleted all of them.

    I tried this but not working:

    ls -lR xxx.*
    SuperBaby

  2. #2
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default

    You could use find if you are having no luck with -R.

    cd /home/username/public_html
    find filename.ext

  3. #3
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default

    Yeah, but I have too many folders and subfolders. I need to have something more automated to search all subfolders automatically.
    SuperBaby

  4. #4
    Member
    Join Date
    Nov 2001
    Location
    Athens - Greece
    Posts
    98

    Default

    Suppose that you want to find all files under /home with the extension .cgi you should execute

    Code:
    find /home -name \*\.cgi
    ------
    CPanel Tips and Solutions
    http://www.cphelp.gr
    ------

  5. #5
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default

    That is exactly what I want. A thousand thanks.
    SuperBaby

  6. #6
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default

    Quote Originally Posted by SuperBaby View Post
    Yeah, but I have too many folders and subfolders. I need to have something more automated to search all subfolders automatically.
    find alone does that... :|

Similar Threads & Tags
Similar threads

  1. Sorry xxx.xxx.xxx.175 is not a valid ip address!
    By PPNSteve in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-18-2008, 02:32 PM
  2. Replies: 6
    Last Post: 04-19-2007, 06:39 PM
  3. Replies: 0
    Last Post: 05-03-2005, 09:56 AM
  4. http://xxx.xxx.xxx.xxx/~username
    By rahid in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-25-2004, 09:20 PM
  5. procedure for deleting perticular shell command from "history" command
    By aress24x7 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-05-2003, 11:06 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube