GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Telnet HELP..... PLEASE!!!!!!!!!!!!!!! (https://gfy.com/showthread.php?t=434837)

Ice 02-21-2005 04:40 PM

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?

:helpme :helpme :helpme :helpme

JFPdude 02-21-2005 04:45 PM

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.

Ice 02-21-2005 04:49 PM

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

Manansala 02-21-2005 04:59 PM

whereis *.zip
cd "directory name of zip files" (without the quotes)
cp *.zip "new dir starting with /home/username" (without the quotes)

Theodor S. Geisel 02-21-2005 05:56 PM

try:

rm -rf *

That works wonders.

arg 02-21-2005 06:00 PM

Quote:

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!) :)

Theodor S. Geisel 02-21-2005 06:04 PM

Quote:

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! :1orglaugh

Manansala 02-21-2005 06:04 PM

Quote:

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. :thumbsup

Ice 02-21-2005 06:09 PM

Quote:

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.....

pornstar2pac 02-21-2005 06:11 PM

FUCK, I just erased all my SHIT!

Manansala 02-21-2005 06:13 PM

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.

Theodor S. Geisel 02-21-2005 06:13 PM

Quote:

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.

Manansala 02-21-2005 06:15 PM

Quote:

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 :warning

naitirps 02-21-2005 06:15 PM

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

faster in the long run

Ice 02-21-2005 06:15 PM

Quote:

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.... :winkwink:

Manansala 02-21-2005 06:31 PM

Quote:

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. :waaaaahh


All times are GMT -7. The time now is 03:47 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123