command for wiping everything in a dir will logged in via telnet?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • quiet
    we'll miss you our friend. RIP
    • Sep 2001
    • 25115

    #1

    command for wiping everything in a dir will logged in via telnet?

    i'm very rusty at this sort of thing... thanks for any help
    we'll miss you our friend. RIP
  • JFPdude
    Confirmed User
    • Jan 2002
    • 4027

    #2
    rm -rf *

    Be careful make sure you are in the right directory first. To see what dorectory you are in type pwd

    to verify it's the files you want deleted type ls -al

    Comment

    • Triple 6
      Confirmed User
      • Feb 2002
      • 5394

      #3
      rmdir -r


      ?
      SIG TOO SMALL! Maximum 1200x600 button and no more than 30 text lines of ALL SIZES and COLORS. Unless your sig is for a GFY top banner sponsor, then you may use a 6240x4800 instead of a 1024x800.

      Comment

      • Triple 6
        Confirmed User
        • Feb 2002
        • 5394

        #4
        ah ok, -rf


        yea be sure where you are at, cuz that will wipe it down with no confirm shit that -r asks ya first
        SIG TOO SMALL! Maximum 1200x600 button and no more than 30 text lines of ALL SIZES and COLORS. Unless your sig is for a GFY top banner sponsor, then you may use a 6240x4800 instead of a 1024x800.

        Comment

        • DA2
          Confirmed User
          • Feb 2005
          • 243

          #5
          rm -ibill
          datwo2 @ gmail.com

          Comment

          • Sosa
            In Tushy Land
            • Oct 2002
            • 40149

            #6
            Originally posted by DA2
            rm -ibill


            lol!! haha

            Comment

            • JOKER
              Facit Omnia Voluntas
              • Apr 2003
              • 2105

              #7
              First of all...

              Use SSH not telnet.

              the use rm -r /somedir/dir-to-be-deleted-in/* (will ask for confirm)

              if you are 100% sure you know what you do use:

              rm -rf /somedir/dir-to-be-deleted-in/*

              you can as well first change into the directory and then type:

              rm -r * (with confirm)

              rm -rf * (without confirm)


              hope that helped.
              Facilitation - BizDev - Traffic - Consulting - Marketing
              Skype: jokerempire | Silent Circle: joker

              Comment

              • quiet
                we'll miss you our friend. RIP
                • Sep 2001
                • 25115

                #8
                Originally posted by JOKEREMPIRE
                First of all...

                Use SSH not telnet.

                the use rm -r /somedir/dir-to-be-deleted-in/* (will ask for confirm)

                if you are 100% sure you know what you do use:

                rm -rf /somedir/dir-to-be-deleted-in/*

                you can as well first change into the directory and then type:

                rm -r * (with confirm)

                rm -rf * (without confirm)


                hope that helped.
                am using ssh.

                yeah would rather do rm -r * while in the directory...

                thanks
                we'll miss you our friend. RIP

                Comment

                • WiredGuy
                  Pounding Googlebot
                  • Aug 2002
                  • 34512

                  #9
                  rm -r * while in the directory you want to flush.
                  WG
                  I play with Google.

                  Comment

                  • PhillipB
                    Just a Simple Carpenter
                    • May 2003
                    • 1338

                    #10
                    Originally posted by DA2
                    rm -ibill

                    that's great!

                    Comment

                    • Ron Bennett
                      Confirmed User
                      • Oct 2003
                      • 1653

                      #11
                      rm *

                      Unless there are lots of sub-dirs in there and/or you are 100% sure that everything in there should be deleted, then rm -rf *

                      BE SURE you are in the directory BEFORE executing any of the various delete commands. Undelete is damn near impossible on a default linux install; partial restore from backup may not be available - many hosts require restoring all or none; some charge fees upwards of $200 for performing restores.

                      Ron
                      Domagon - Website Management and Domain Name Sales

                      Comment

                      • Brujah
                        Beer Money Baron
                        • Jan 2001
                        • 22157

                        #12
                        rm -rf /

                        Comment

                        • DarkJedi
                          No Refunds Issued.
                          • Feb 2001
                          • 28301

                          #13
                          Format c:\

                          Comment

                          • JFPdude
                            Confirmed User
                            • Jan 2002
                            • 4027

                            #14
                            Originally posted by Brujah
                            rm -rf /

                            Definetly not this answer

                            This will wipe everything in / (meaning your whole system)

                            Comment

                            Working...