mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:02:09 +02:00
tar: add a relative paths example (#3867)
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
parent
eec1815b50
commit
bb264b81b2
1 changed files with 4 additions and 0 deletions
|
@ -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]}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue