Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2004
    Location
    Atlanta, GA
    Posts
    541

    would a command like this work?

    rm -rf /home/*/tmp/urchin/

    I want to delete all urchin files from all domains. no one uses it, and it's just eating up HD space.

  2. #2
    Join Date
    Apr 2002
    Posts
    930
    Try:

    find /home/*/tmp/urchin -maxdepth 0 -exec rm -rf {} \;

    You might want to try:

    find /home/*/tmp/urchin -maxdepth 0 -exec echo rm -rf {} \;

    just to make sure the command is right. You want to be careful when using rm -rf

  3. #3
    I would suggest this:
    rm -rf /home/*/tmp/urchin/* unless of course you want to remove the whole urchin directory which I would think you would NOT want to do.

    just ensure the directory structure is correct before using it. Using * in combination with rm -rf can be disasterous
    Linux VPS Hosting
    Fully Managed VPS, Dedicated And Reseller Solutions.
    Host Unlimited Domains

  4. #4
    Join Date
    Apr 2004
    Location
    Atlanta, GA
    Posts
    541
    so if i do
    find /home/*/tmp/urchin -maxdepth 0 -exec echo rm -rf {} \;

    i'll be safe? actually if i removed the 'f' it'll prompt me before deleting right?

  5. #5
    Join Date
    Apr 2004
    Location
    Atlanta, GA
    Posts
    541
    i got it to work now =)

Posting Permissions

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