tealdeer/tests/tar-markdown.expected
Isak Johansson 6719acb4f2 Add -m / --markdown option for raw rendering
New option to render as markdown, not with ANSI escape codes.
This is useful for when you want to open it up in a pager which doesn't
support ANSI escape codes by default. In my use case it allows me to
open it inside vim without having to use an addon to convert ANSI escape
codes to colours.
2020-01-22 22:54:11 +01:00

33 lines
815 B
Text

# tar
> Archiving utility.
> Often combined with a compression method, such as gzip or bzip.
> More information: <https://www.gnu.org/software/tar>.
- Create an archive from files:
`tar cf {{target.tar}} {{file1}} {{file2}} {{file3}}`
- Create a gzipped archive:
`tar czf {{target.tar.gz}} {{file1}} {{file2}} {{file3}}`
- Extract a (compressed) archive into the current directory:
`tar xf {{source.tar[.gz|.bz2|.xz]}}`
- Extract an archive into a target directory:
`tar xf {{source.tar}} -C {{directory}}`
- Create a compressed archive, using archive suffix to determine the compression program:
`tar caf {{target.tar.xz}} {{file1}} {{file2}} {{file3}}`
- List the contents of a tar file:
`tar tvf {{source.tar}}`
- Extract files matching a pattern:
`tar xf {{source.tar}} --wildcards {{"*.html"}}`