Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-21-2005, 04:40 PM   #1
Ice
Confirmed User
 
Ice's Avatar
 
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
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
Ice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 04:45 PM   #2
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
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.
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 04:49 PM   #3
Ice
Confirmed User
 
Ice's Avatar
 
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
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
Ice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 04:59 PM   #4
Manansala
Confirmed User
 
Join Date: Jan 2005
Posts: 551
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. !
Manansala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 05:56 PM   #5
Theodor S. Geisel
Confirmed User
 
Join Date: Jul 2003
Location: United States
Posts: 349
try:

rm -rf *

That works wonders.
Theodor S. Geisel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:00 PM   #6
arg
Confirmed User
 
Join Date: Feb 2003
Posts: 1,164
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!)
arg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:04 PM   #7
Theodor S. Geisel
Confirmed User
 
Join Date: Jul 2003
Location: United States
Posts: 349
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!
Theodor S. Geisel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:04 PM   #8
Manansala
Confirmed User
 
Join Date: Jan 2005
Posts: 551
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.
__________________
I don't have a signature. !
Manansala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:09 PM   #9
Ice
Confirmed User
 
Ice's Avatar
 
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
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.....
__________________
icq 1904905
Ice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:11 PM   #10
pornstar2pac
Omaha Hi/Lo
 
Join Date: Nov 2003
Posts: 17,380
FUCK, I just erased all my SHIT!
__________________
Trump haters gonna hate. that's all they can do
pornstar2pac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:13 PM   #11
Manansala
Confirmed User
 
Join Date: Jan 2005
Posts: 551
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. !
Manansala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:13 PM   #12
Theodor S. Geisel
Confirmed User
 
Join Date: Jul 2003
Location: United States
Posts: 349
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.
Theodor S. Geisel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:15 PM   #13
Manansala
Confirmed User
 
Join Date: Jan 2005
Posts: 551
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
__________________
I don't have a signature. !
Manansala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:15 PM   #14
naitirps
Confirmed User
 
Join Date: May 2004
Location: ...
Posts: 761
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
naitirps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:15 PM   #15
Ice
Confirmed User
 
Ice's Avatar
 
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
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....
__________________
icq 1904905
Ice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2005, 06:31 PM   #16
Manansala
Confirmed User
 
Join Date: Jan 2005
Posts: 551
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.
__________________
I don't have a signature. !
Manansala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.