Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2002
    Fountain Valley, CA

    Question Brain Freeze - need to delete directory & subdirectories

    I got a case of brian freeze, what is the command to delete a directory and its subdirectories with all the files? I thought that it was rm -a directory.
    We're all humanary stew, if we don't pledge allegiance to the Black Widow

  2. #2
    rm -Rf directory

  3. #3
    ...and whatever you do, make sure you type it in right

    It's often a good idea to do:

    rm -Rfvi <dir>

    first to make sure you're doing the right thing, which you can abort if you don't want to reply to each and every prompt and then do the nicely destructive :

    rm -Rf <dir>

Posting Permissions

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