Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Question about making a tarball
Date: Thu, 30 Apr 2009 23:24:10
Message-Id: gtdbtq$t8p$1@ger.gmane.org
In Reply to: [gentoo-user] Re: Question about making a tarball by Nikos Chantziaras
1 Nikos Chantziaras wrote:
2 > 1) Better use -cjvpf ("f") takes an argument (the filename of that tar
3 > to be crated) so it must be at the end.
4
5 That's why I usually use "tar -cjvp -f blabla.tar.bz2". I always
6 seperate options that take an argument from the rest. But -cjvpf works
7 too as long as "f" is at the end. This means that if you combine many
8 options after a single "-", only one one of them is allowed to take an
9 argument; the last one.
10
11 It might also be easier for you to use long options instead of short
12 ones (easier to read). This:
13
14 -cjvpf -C
15
16 Is equivalent to:
17
18 --create --bzip2 --verbose --preserve-permissions --file --directory
19
20 So the original example becomes:
21
22 tar --create --bzip2 --verbose --preserve-permissions --file
23 /data/Gentoo-stuff/stage4-x86-04-2009.tar.bz2 --directory /mnt/gentoo .
24
25 Which might be longer to write but perhaps easier to understand :P

Replies

Subject Author
Re: [gentoo-user] Re: Question about making a tarball Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)