Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2010
    Location
    Close 2 U
    Posts
    549

    * Remove Files from multiple Directories ..

    Hi guys ..
    How may I remove about 100 files from multiple directories via SSH


    advise

    Not as that Much Expert
    I'm just a "LostEagle"
    _-_-_-_-_-_-_-_-_-_-_-_-_

  2. #2
    Join Date
    Jan 2011
    Location
    Varna, Bulgaria
    Posts
    1,270
    Be more specific, please. Are the files with the same name? Do they have something else in common? If both answers are "no" - you remove them with the rm command, one by one...

  3. #3
    Join Date
    Jul 2010
    Location
    Close 2 U
    Posts
    549
    I found it:
    rm -f /dir/file1 /dir/file2 ..............

    THANKX

    Not as that Much Expert
    I'm just a "LostEagle"
    _-_-_-_-_-_-_-_-_-_-_-_-_

  4. #4
    Join Date
    Jan 2003
    Location
    U.S.A.
    Posts
    3,911
    If your trying to remove everything under 1 directory type rm -rf /dir

  5. #5
    Join Date
    Jul 2010
    Location
    Close 2 U
    Posts
    549
    Ya ... U are right if they are under one dir ... but they are spreaded .. any way... its done ... THANKS "PogiWeb"

    Not as that Much Expert
    I'm just a "LostEagle"
    _-_-_-_-_-_-_-_-_-_-_-_-_

  6. #6
    Join Date
    Aug 2010
    Location
    Prague, Czech Republic
    Posts
    403
    You may also use 'find'.
    Supportex.Net server management, full range of services. EU-based outsourced company. Since 1998.
    Outstanding quality for high performance projects; clustering and high-availability solutions, DDoS protection.
    Cisco/Juniper network management & deployment assistance. Network design and monitoring.

Similar Threads

  1. Replies: 2
    Last Post: 03-11-2011, 03:39 AM
  2. Remove string from multiple files
    By oozypal in forum Hosting Security and Technology
    Replies: 14
    Last Post: 10-14-2010, 01:41 PM
  3. linux: Remove all files except directories
    By Igotit in forum Hosting Security and Technology
    Replies: 2
    Last Post: 10-29-2006, 11:00 PM
  4. Uploading files to multiple directories at once
    By JezJacko in forum Web Hosting
    Replies: 4
    Last Post: 03-07-2006, 10:43 AM
  5. Remove Directories + files
    By Fremont Servers in forum Hosting Security and Technology
    Replies: 3
    Last Post: 07-29-2001, 02:03 PM

Posting Permissions

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