The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

delete folder from shell

Discussion in 'General Discussion' started by sphost, Feb 4, 2004.

  1. sphost

    sphost Well-Known Member

    Joined:
    Jan 19, 2004
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    one of the accounts i have was auto suspended because bandwidth exceeded, no after i un-suspended it, all files were removed to a new folder named oldhtml
    how can i completely remove this folder and all the files in this folder from shell ?

    thank you
     
  2. xsenses

    xsenses Well-Known Member

    Joined:
    Aug 29, 2002
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Huntington Beach, Ca
    rm -rf foldername
     
  3. sphost

    sphost Well-Known Member

    Joined:
    Jan 19, 2004
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    thanks :)
    for my future reference, how can i delete a file ?

    thanks
     
  4. xsenses

    xsenses Well-Known Member

    Joined:
    Aug 29, 2002
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Huntington Beach, Ca
    rm to delete file
    rm -r for directories
    rm -rf to force deletions

    When logged in as shell type rm --help
     
    #4 xsenses, Feb 4, 2004
    Last edited: Feb 4, 2004
  5. sphost

    sphost Well-Known Member

    Joined:
    Jan 19, 2004
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    thanks :0)
     
Loading...

Share This Page