LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-26-2014, 01:33 PM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Distribution: Ubuntu_Mate
Posts: 1,221

Rep: Reputation: 159Reputation: 159
Send files to archiver


I use Thunar.

Is there a way to tag files and send them to an archive ?

Thanks.
 
Old 03-26-2014, 04:01 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta3 on Lenovo Thinkpad W520
Posts: 6,785

Rep: Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121
What do you mean by "tag files"? And what is the archive you want to send the files to? A physical media, or a file?
 
Old 03-27-2014, 09:04 AM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Distribution: Ubuntu_Mate
Posts: 1,221

Original Poster
Rep: Reputation: 159Reputation: 159
Tag files by holding down the Ctrl key and picking the files.

Archive means a .zip file that contains compressed files.

Andy
 
Old 03-27-2014, 09:31 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta3 on Lenovo Thinkpad W520
Posts: 6,785

Rep: Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121
Well, this command:
Code:
zip myarchive f1 f2 f3
will create the archive myarchive.zip containing f1 f2 and f3
To add f4 and f5 to the archive just type:
Code:
zip myarchive f4 f5
To do the same and update f2:
Code:
zip myarchive f2 f4 f5
To do the same and update f2 only if newer:
Code:
zip -u myarchive f2 f4 f5
To know more, type "man zip".
 
Old 03-27-2014, 10:15 AM   #5
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,433

Rep: Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353
You could setup a custom action in thunar to do this.
1. Edit->Configure custom actions... and click the + button to add a new custom action.
2. On the Basic tab, in the Name box enter - CreateTGZ
3. On the Basic tab, in the Description box enter - Create a zipped tar archive of selected files
4. On the Basic tab, in the Command box enter - tar -czf archive.tgz %N
5. On the Appearance Conditions tab, select all but Directories
6. Exit the Configure custom actions

Now when you select files, right click and select CreateTGZ, an archive.tgz file will be created.

If you just want a zipped file, then change the command at step 4 as suggested by Didier Spaier.

Last edited by allend; 03-27-2014 at 10:24 AM.
 
Old 03-27-2014, 11:06 AM   #6
Fixit7
Senior Member
 
Registered: Mar 2014
Distribution: Ubuntu_Mate
Posts: 1,221

Original Poster
Rep: Reputation: 159Reputation: 159
Thanks.

Andy
 
Old 03-27-2014, 11:07 AM   #7
Fixit7
Senior Member
 
Registered: Mar 2014
Distribution: Ubuntu_Mate
Posts: 1,221

Original Poster
Rep: Reputation: 159Reputation: 159
Quote:
Originally Posted by Didier Spaier View Post
Well, this command:
Code:
zip myarchive f1 f2 f3
will create the archive myarchive.zip containing f1 f2 and f3
T
Thanks

It's a shame that zip does not let you zip up a variable number of files.

Andy
 
Old 03-27-2014, 11:18 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by Fixit7 View Post
Thanks

It's a shame that zip does not let you zip up a variable number of files.

Andy
How do you come to that conclusion? The man page for zip does not mention such a restriction, so you should be able to use any number of files you want.
 
Old 03-27-2014, 04:29 PM   #9
Fixit7
Senior Member
 
Registered: Mar 2014
Distribution: Ubuntu_Mate
Posts: 1,221

Original Poster
Rep: Reputation: 159Reputation: 159
Sorry, my mistake.

zip archive.zip %N
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to run a single program on consecutive files and send output to new files. WeiYi Linux - Newbie 7 06-30-2012 12:29 AM
archiver bug ? elishac Linux - Newbie 3 02-07-2010 08:29 AM
Is there a way to send files to a friend, similar to MSN send file protocol? pablom Linux - Networking 1 05-07-2007 11:16 PM
No ark archiver!! dmcbeing Slackware 2 09-03-2006 05:53 AM
Need A Rar Archiver.... br00tal Linux - Software 3 04-21-2005 09:43 AM


All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration