LinuxQuestions.org
Help answer threads with 0 replies.
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 08-23-2014, 02:43 PM   #1
Peggy L
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Rep: Reputation: Disabled
combining files into one archive file


How do I go about combining a document file, a ppt file, and a log file as one? I have done it before but have forgotten the process. This is for an assignment of mine.
 
Old 08-23-2014, 02:54 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
what about the command tar?
 
1 members found this post helpful.
Old 08-23-2014, 03:18 PM   #3
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 810

Rep: Reputation: 264Reputation: 264Reputation: 264
Have a look at the tar's manpage.
Code:
man tar
Everything you need to know should be in there.

Good luck!
 
Old 08-24-2014, 01:39 AM   #4
solarisguy
Member
 
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64

Rep: Reputation: 17
Here's an example, with an explanation of each flag:

Code:
tar czvf bundle.tgz document.doc powerpoint.ppt logfile.log
c - create tarball
z - gzip (compress; much better than zip)
v - verbose (show everything it adds to the tarball)
f - force (don't confirm adding files; overwrite if file(s) already exist)
 
Old 08-24-2014, 07:10 AM   #5
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
Tar is the 'standard' in *nix land..

Should be fine using something like winrar on windows ( gz bz2 at least)

Another option is pkzip, ( apt-get install zip # assuming debian or derivative of it )


'Out of the box' windows will handle those zip files, no need for third party software.
 
Old 08-24-2014, 11:38 AM   #6
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,164

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
You don't say which distro you're using — I suggest you add this to your profile — but somewhere in your menu you should find an archive manager. That will have a help file and will allow you do the job without messing about in the command line.
 
  


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 archive torrent file + the iso files , like the ova archive of virtual box jheengut Linux - Software 2 12-22-2013 06:04 PM
How do I combining OGV files into one big file MikeyCarter Linux - Software 1 01-02-2011 03:30 PM
[SOLVED] Combining an archive and script file Jeff91 Linux - Software 5 10-30-2010 01:12 PM
Create an archive file which includes files in sub-directories? amaze Linux - General 1 09-26-2003 09:43 AM


All times are GMT -5. The time now is 12:44 AM.

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