![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
|
![]() 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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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. ! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jul 2003
Location: United States
Posts: 349
|
try:
rm -rf * That works wonders. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Feb 2003
Posts: 1,164
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Jul 2003
Location: United States
Posts: 349
|
Quote:
ARG! ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Jan 2005
Posts: 551
|
Quote:
![]()
__________________
I don't have a signature. ! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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. ! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Jul 2003
Location: United States
Posts: 349
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Jan 2005
Posts: 551
|
Quote:
It's shocking ![]()
__________________
I don't have a signature. ! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
|
Quote:
I'm not as dumb as I look all the time.... ![]()
__________________
icq 1904905 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Join Date: Jan 2005
Posts: 551
|
Quote:
upatedb errors kept bugging me, until I found out that I must do updatedb from within /root. ![]()
__________________
I don't have a signature. ! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |