-C option is for. Use the -C option when unpacking an archive file to specify the directory to unpack it in:Listing 1. Example of good habit #2: Using option
-C to unpack a .tar archive file~ $ tar xvf -C tmp/a/b/c newarc.tar.gz
|
Making a habit of using
-C is preferable to moving the archive file to where you want to unpack it, changing to that directory, and only then extracting its contents -- especially if the archive file belongs somewhere else.
No comments:
Post a Comment