![]() |
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 |
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. |
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
|
whereis *.zip
cd "directory name of zip files" (without the quotes) cp *.zip "new dir starting with /home/username" (without the quotes) |
try:
rm -rf * That works wonders. |
Quote:
|
Quote:
ARG! :1orglaugh |
Quote:
|
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..... |
FUCK, I just erased all my SHIT!
|
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. |
Quote:
|
Quote:
It's shocking :warning |
i prefer doing an updatedb (if its not running in your cron already) then doin locate whatever
faster in the long run |
Quote:
I'm not as dumb as I look all the time.... :winkwink: |
Quote:
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