mirror of https://github.com/CrimsonTome/tldr.git
tar: add a relative paths example (#3867)
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>client-spec/clarity
parent
eec1815b50
commit
bb264b81b2
|
@ -12,6 +12,10 @@
|
||||||
|
|
||||||
`tar czf {{target.tar.gz}} {{file1}} {{file2}} {{file3}}`
|
`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:
|
- Extract a (compressed) archive into the current directory:
|
||||||
|
|
||||||
`tar xf {{source.tar[.gz|.bz2|.xz]}}`
|
`tar xf {{source.tar[.gz|.bz2|.xz]}}`
|
||||||
|
|
Loading…
Reference in New Issue