unix command question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zester
    Confirmed User
    • Jul 2003
    • 5344

    #1

    unix command question

    how do you delete a certain folder and it's subfolders and its files without a prompt confirmation? something like deltree in dos

    this is what I konw:
    rm -r myfolder
    * Mainstream ? $65 per sale
    * new male contraception
  • jayme_
    Confirmed User
    • Jan 2005
    • 158

    #2
    rm -rf folder/

    Comment

    • Zester
      Confirmed User
      • Jul 2003
      • 5344

      #3
      Originally posted by jayme_
      rm -rf folder/
      its the same as the one i'm using
      it prompts
      * Mainstream ? $65 per sale
      * new male contraception

      Comment

      • roly
        Confirmed User
        • Aug 2002
        • 1844

        #4
        Originally posted by Zester
        its the same as the one i'm using
        it prompts
        it shouldn't do, the "f" switch is force and "rm -rf folder" should delete the folders recursively without promting.

        Comment

        • KorayIsSexy
          So Fucking Banned
          • Feb 2005
          • 146

          #5
          rm -rf should work without a prompt. As roly said, the f switch should suppress the prompts. If anything, try rm -rif, f will overwrite i. Linux can be quirky like that.

          Comment

          • naitirps
            Confirmed User
            • May 2004
            • 761

            #6
            rm /folder/* -rf
            Programmer
            ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com

            Comment

            Working...