<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Create a TAR archive of a directory | UNIX | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Wed, 17 Jun 2009 12:36:04 -0000</lastBuildDate><item><title>Re: Create a TAR archive of a directory | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/5/create-a-tar-archive-of-a-directory/#comment-11050089</link><description>Thanks for saving my time with this posting.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dan</dc:creator><pubDate>Wed, 17 Jun 2009 12:36:04 -0000</pubDate></item><item><title>Re: Create a TAR archive of a directory | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/5/create-a-tar-archive-of-a-directory/#comment-2766746</link><description>How to tar a folder which contains list subfolders in unix.Please get back to me immediately&amp;lt;font color="red"&amp;gt;&amp;lt;/font&amp;gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Tue, 03 May 2005 20:45:47 -0000</pubDate></item><item><title>Re: Create a TAR archive of a directory | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/5/create-a-tar-archive-of-a-directory/#comment-2766745</link><description>Yeah, even with GNU tar, the hyphen is optional as indicated by the square brackets around the hyphen like  [ - ] ..  there are so many scripts and old timers like me around who user tar with the old hyphenless syntax that it would be miserable if it didn't work anymore.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">qmchenry</dc:creator><pubDate>Wed, 01 Dec 2004 09:39:25 -0000</pubDate></item><item><title>Re: Create a TAR archive of a directory | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/5/create-a-tar-archive-of-a-directory/#comment-2766744</link><description>NAME&lt;br&gt;       tar - The GNU version of the tar archiving utility&lt;br&gt;&lt;br&gt;SYNOPSIS&lt;br&gt;       tar  [  -  ]  A  --catenate  --concatenate  | c --create | d --diff --compare | r --append | t --list | u&lt;br&gt;       --update | x -extract --get [ --atime-preserve ] [ -b, --block-size N ] [ -B, --read-full-blocks ] [  -C,&lt;br&gt;       --directory DIR ] [ --checkpoint    ] [ -f, --file [HOSTNAME:]F ] [ --force-local   ] [ -F, --info-script&lt;br&gt;       F --new-volume-script F ] [ -G, --incremental ] [ -g, --listed-incremental F ] [ -h,  --dereference  ]  [&lt;br&gt;       -i,  --ignore-zeros ] [ -j, -I, --bzip ] [ --ignore-failed-read ] [ -k, --keep-old-files ] [ -K, --start-&lt;br&gt;       ing-file F ] [ -l, --one-file-system ] [ -L, --tape-length N ] [ -m, --modification-time ] [ -M, --multi-&lt;br&gt;       volume ] [ -N, --after-date DATE, --newer DATE ] [ -o, --old-archive, --portability ] [ -O, --to-stdout ]&lt;br&gt;       [ -p, --same-permissions, --preserve-permissions ] [ -P, --absolute-paths ] [  --preserve       ]  [  -R,&lt;br&gt;       --record-number  ]  [  --remove-files  ]  [  -s,  --same-order, --preserve-order ] [ --same-owner ] [ -S,&lt;br&gt;       --sparse ] [ -T, --files-from=F ] [ --null     ] [ --totals   ] [ -v, --verbose ] [ -V, --label NAME ]  [&lt;br&gt;       --version   ]  [  -w,  --interactive,  --confirmation  ]  [  -W,  --verify     ] [ --exclude FILE ] [ -X,&lt;br&gt;       --exclude-from FILE ] [ -Z, --compress, --uncompress ] [ -z, --gzip, --ungzip       ]  [  --use-compress-&lt;br&gt;       program PROG ] [ --block-compress ] [ -[0-7][lmh]     ]&lt;br&gt;&lt;br&gt;       filename1 [ filename2, ... filenameN ]&lt;br&gt;&lt;br&gt;       directory1 [ directory2, ...directoryN ]</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">coredump</dc:creator><pubDate>Tue, 30 Nov 2004 11:00:04 -0000</pubDate></item><item><title>Re: Create a TAR archive of a directory | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/5/create-a-tar-archive-of-a-directory/#comment-2766743</link><description>It may look funny without it, but the hyphen is optional.  The traditional syntax for tar does not use the hyphen for command line options that we've become used to using.  Likewise, the GNU double hyphen options are a relatively new addition to UNIX.  &lt;br&gt;&lt;br&gt;For example, here is an excerpt from the Solaris 9 man page for tar:&lt;br&gt;     tar  &lt;strong&gt;c&lt;/strong&gt;  [  bBeEfFhiklnopPqvwX@  [0-7]]   [block]   [tarfile]&lt;br&gt;     [exclude-file]  {-I include-file  |  -C directory  |  file |&lt;br&gt;     file} ...&lt;br&gt; &lt;br&gt;I don't know when the hyphen options were implemented in tar, but I suspect that there are still versions of tar that would gag on a -cf.  The hyphenless syntax should work everywhere.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">qmchenry</dc:creator><pubDate>Wed, 14 Jan 2004 12:42:10 -0000</pubDate></item><item><title>Re: Create a TAR archive of a directory | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/5/create-a-tar-archive-of-a-directory/#comment-2766742</link><description>The example should be tar -cf archive.tar *  (note the hyphen)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">grinch</dc:creator><pubDate>Wed, 14 Jan 2004 09:20:22 -0000</pubDate></item></channel></rss>