Telnet HELP..... PLEASE!!!!!!!!!!!!!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ice
    Confirmed User
    • Nov 2002
    • 26053

    #1

    Telnet HELP..... PLEASE!!!!!!!!!!!!!!!

    I have a bunch of zip files on my server in different folders.... Is there a command to find all zip files and move them into a different folder at once?

    icq 1904905
  • JFPdude
    Confirmed User
    • Jan 2002
    • 4027

    #2
    Telnet ??

    Cool give me the ip I need a new spam server.

    If you mean linux/unix help through ssh try this

    find / -name *.tgz
    or
    find / -name *.tgz

    that will output all the zips then you can move them where you want with the mv command

    I'm guessing a small script can be written to do this easily also.

    Comment

    • Ice
      Confirmed User
      • Nov 2002
      • 26053

      #3
      I'm using SecureCRT and have a shitload of files with the .zip extension in different folders.... I want to find them all and move them to a single folder
      icq 1904905

      Comment

      • Manansala
        Confirmed User
        • Jan 2005
        • 551

        #4
        whereis *.zip
        cd "directory name of zip files" (without the quotes)
        cp *.zip "new dir starting with /home/username" (without the quotes)
        I don't have a signature. !

        Comment

        • Theodor S. Geisel
          Confirmed User
          • Jul 2003
          • 349

          #5
          try:

          rm -rf *

          That works wonders.
          Theodor S. Geisel
          [ ICQ: 2 0 6 6 1 0 7 ]
          [ theodor.geisel -at- gmail -d0t- com ]
          [ PROGRAMMER :: PHP :: MYSQL :: HTML/CSS ]

          Comment

          • arg
            Confirmed User
            • Feb 2003
            • 1164

            #6
            Originally posted by Theodor S. Geisel
            try:

            rm -rf *

            That works wonders.
            Hopefully you'll know that's a joke, but since I know nothing of your knowledge level ice, the command above will erase all your files. (Sorry Theodor!)

            Comment

            • Theodor S. Geisel
              Confirmed User
              • Jul 2003
              • 349

              #7
              Originally posted by arg
              Hopefully you'll know that's a joke, but since I know nothing of your knowledge level ice, the command above will erase all your files. (Sorry Theodor!)

              ARG!
              Theodor S. Geisel
              [ ICQ: 2 0 6 6 1 0 7 ]
              [ theodor.geisel -at- gmail -d0t- com ]
              [ PROGRAMMER :: PHP :: MYSQL :: HTML/CSS ]

              Comment

              • Manansala
                Confirmed User
                • Jan 2005
                • 551

                #8
                Originally posted by arg
                Hopefully you'll know that's a joke, but since I know nothing of your knowledge level ice, the command above will erase all your files. (Sorry Theodor!)
                Good call.
                I don't have a signature. !

                Comment

                • Ice
                  Confirmed User
                  • Nov 2002
                  • 26053

                  #9
                  Originally posted by arg
                  Hopefully you'll know that's a joke, but since I know nothing of your knowledge level ice, the command above will erase all your files. (Sorry Theodor!)

                  Thanks for the heads up.... I know very little about commands.... but anything I read here I google first to make sure that it wouldn't do what dipshit suggested.....
                  icq 1904905

                  Comment

                  • pornstar2pac
                    Omaha Hi/Lo
                    • Nov 2003
                    • 17380

                    #10
                    FUCK, I just erased all my SHIT!
                    Trump haters gonna hate. that's all they can do

                    Comment

                    • Manansala
                      Confirmed User
                      • Jan 2005
                      • 551

                      #11
                      whereis and locate is to find a file.
                      cp is to copy and cd is to go to Current Directory.

                      That's all you need to know do what you want, and of course, * for wildcards.

                      "I started out as a n00b too."

                      EDIT: man -k command
                      for more info.
                      I don't have a signature. !

                      Comment

                      • Theodor S. Geisel
                        Confirmed User
                        • Jul 2003
                        • 349

                        #12
                        Originally posted by iceicebaby
                        Thanks for the heads up.... I know very little about commands.... but anything I read here I google first to make sure that it wouldn't do what dipshit suggested.....
                        That's the smart thing to do. Only an idiot would try a random command without research.
                        Theodor S. Geisel
                        [ ICQ: 2 0 6 6 1 0 7 ]
                        [ theodor.geisel -at- gmail -d0t- com ]
                        [ PROGRAMMER :: PHP :: MYSQL :: HTML/CSS ]

                        Comment

                        • Manansala
                          Confirmed User
                          • Jan 2005
                          • 551

                          #13
                          Originally posted by pornstar2pac
                          FUCK, I just erased all my SHIT!
                          Yes, I will assume you will ask how to recover your files. Hehehe

                          It's shocking
                          I don't have a signature. !

                          Comment

                          • naitirps
                            Confirmed User
                            • May 2004
                            • 761

                            #14
                            i prefer doing an updatedb (if its not running in your cron already) then doin locate whatever

                            faster in the long run
                            Programmer
                            ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com

                            Comment

                            • Ice
                              Confirmed User
                              • Nov 2002
                              • 26053

                              #15
                              Originally posted by Theodor S. Geisel
                              That's the smart thing to do. Only an idiot would try a random command without research.

                              I'm not as dumb as I look all the time....
                              icq 1904905

                              Comment

                              • Manansala
                                Confirmed User
                                • Jan 2005
                                • 551

                                #16
                                Originally posted by naitirps
                                i prefer doing an updatedb (if its not running in your cron already) then doin locate whatever

                                faster in the long run
                                updatedb only works as root tho and is required for locate, not whereis.

                                upatedb errors kept bugging me, until I found out that I must do updatedb from within /root.
                                I don't have a signature. !

                                Comment

                                Working...