Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Q: What is the option in zip command, which zip all updated or new picture files (*.jpg) from the source path to the destination + don't keep the origional files -zipping while moving- ?
Also there is --update option for tar for archive updating, but I don't think an option for deleting source files exits in tar. For more in formations : man tar
Last edited by goodhombre; 02-09-2011 at 05:35 AM.
Q: What is the option in zip command, which zip all updated or new picture files (*.jpg) from the source path to the destination + don't keep the origional files -zipping while moving- ?
Thanks in advanced.
Interested Linux Beginner
You have been posting homework style questions lately.
You do need to make some effort towards learning and not expecting LQ members to just be your help desk.
Quote:
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.
As stated from the LQ Rules above, it would benefit you to do the work. We will aid you but not do the work for you!
"Knowledge is of two kinds. We Know a subject ourselves, or we know where we can find information upon it."- Samuel Johnson
You can find a lot of useful information to aid you to gaining some understanding here at LQ via Search.
Below you will find links that will help, sure some may seem beyond a newbie skill level but you must start somewhere;
onebuck,
I am in The Engineering Graduation Year, not student need to find someone solving homework.In addaition to need help, I perform search to find what I need myself.
You can check my posts. It's my style presenting questions.
Thanks for your comment.Useful links and I need it.
Linux Interested Beginner
onebuck,
I am in The Engineering Graduation Year, not student need to find someone solving homework.In addaition to need help, I perform search to find what I need myself.
You can check my posts. It's my style presenting questions.
Thanks for your comment.Useful links and I need it.
Linux Interested Beginner
Glad to hear your graduating. It's good to clarify and present your position(s). Your style does come across as verbatim homework. I have been reading across the forum(s) and your post(s) came across as homework.
Yes, the links that were provided will answer a lot of your questions. Read and learn but when something is not clear then present your queries.
Don't forget the LQ Search since it is likely that your question or problem has already been covered.
"You must look into people as well as at them."-Chesterfield
That cmd does the zipping operation during the transformation period to acheive something like security + transperance + minimize the delay.But that commend doesn't reach the targects into destination in the zip format!?
That cmd does the zipping operation during the transformation period to acheive something like security + transperance + minimize the delay.But that commend doesn't reach the targects into destination in the zip format!?
It compress data only to speed up transfer. If you use rsync to sync data on the same computer -z ( --compress ) option is useless .
Hi goodhombre,
You mean at the same computer zipping with synchronization would be acheived !??Can't I reach the pictures zipped in the destination directory ?
Q: Can this operation be done using mv + zip command ?
zip has an -u option for updating (as suggested by appilu) as well as a -m option that moves the source files to the zip archive (and hence deletes the source after archiving). Combination of these might help.
I want compression command to recursive compression images but each image individual as a (compressed file) with out I give a name (command do that itself ) to them and arrive to the destination not as a folder.zip but each one .zip .
need help, please.
.zip commands I tried collect pictures to a one zip file. that's I don't want
I want compression command to recursive compression images but each image individual as a (compressed file) with out I give a name (command do that itself ) to them and arrive to the destination not as a folder.zip but each one .zip .
need help, please.
.zip commands I tried collect pictures to a one zip file. that's I don't want
I don't think I understand your requirement clearly! Can you give an example?
Is it like that you have some jpeg pictures in your source directory (src) and you want to zip every jpeg files separately and store them in destination directory (dest) deleting the original jpeg files? I do not know of any single command to do that, you may have to write a small script like this:
Code:
cd /path-to-src/
JPG=`ls *.jpg`
for file in $JPG; do
base=`basename $file .jpg`
zip -m /path-to-dest/$base.zip $file
done;
Also, just an aside, I believe "zipping" a jpeg image doesn't really reduce the storage size much. JPEG is an already compressed file type. But I maybe wrong.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.