Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-23-2014, 01: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, 01:54 PM   #2
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,757

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

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

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

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

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, 06:10 AM   #5
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
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, 10:38 AM   #6
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,135

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
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.


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 05:04 PM
How do I combining OGV files into one big file MikeyCarter Linux - Software 1 01-02-2011 02:30 PM
[SOLVED] Combining an archive and script file Jeff91 Linux - Software 5 10-30-2010 12:12 PM
Create an archive file which includes files in sub-directories? amaze Linux - General 1 09-26-2003 08:43 AM > Forums > Linux Forums > Linux - Newbie

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

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