tar: add a relative paths example (#3867)

Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
client-spec/clarity
Paul S 2020-02-25 19:04:41 +00:00 committed by GitHub
parent eec1815b50
commit bb264b81b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@
`tar czf {{target.tar.gz}} {{file1}} {{file2}} {{file3}}`
- Create a gzipped archive from a directory using relative paths:
`tar czf {{target.tar.gz}} -C {{path/to/directory}} .`
- Extract a (compressed) archive into the current directory:
`tar xf {{source.tar[.gz|.bz2|.xz]}}`