Skip to content

Commit 906b521

Browse files
committed
issue #51 - thanks @kmmon
1 parent 381efc8 commit 906b521

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/16.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
As a system administrator, you need to be able to confidently work with compressed “archives” of files. In particular two of your key responsibilities; installing new software, and managing backups, often require this.
88

9+
## YOUR TASKS TODAY
10+
11+
* Create a tarball
12+
* Create a compressed tarball and compare sizes
13+
* Extract files from a tarball
14+
915
## CREATING ARCHIVES
1016

1117
On other operating systems, applications like WinZip, and pkzip before it, have long been used to gather a series of files and folders into one compressed file - with a .zip extension. Linux takes a slightly different approach, with the "gathering" of files and folders done in one step, and the compression in another.
@@ -16,8 +22,8 @@ So, you could create a "snapshot" of the current files in your _/etc/init.d_ fol
1622

1723
This creates _myinits.tar_ in your current directory.
1824

19-
Note 1: The `-v` switch (verbose) is included to give some feedback - traditionally many utilities provide no feedback unless they fail.
20-
Note 2: The `-f` switch specifies that _“the output should go to the filename which follows”_ - so in this case the order of the switches is important.
25+
Note 1: The `-f` switch specifies that _“the output should go to the filename which follows”_ - so in this case the order of the switches is important. **VERY IMPORTANT**: `tar` considers anything after `-f` as the name of the archive that needs to be created. So, we should always use `-f` as the last flag while creating an archive.
26+
Note 2: The `-v` switch (verbose) is included to give some feedback - traditionally many utilities provide no feedback unless they fail.
2127

2228
(The cryptic “tar” name? - originally short for "tape archive")
2329

0 commit comments

Comments
 (0)