安装完后先看看 tldr 自己怎么用吧。
- $ tldr tldr
-
- tldr
-
- Simplified man pages.
- More information: .
-
- - Get typical usages of a command (hint: this is how you got here!):
- tldr command
-
- - Show the tar tldr page for linux:
- tldr -p linux tar
-
- - Get help for a git subcommand:
- tldr git checkout
小试牛刀下
- $ tldr -p linux tar
-
- tar
-
- Archiving utility.
- Often combined with a compression method, such as gzip or bzip.
- More information: .
-
- - 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 an archive in a target directory:
- tar -xf source.tar -C directory
-
- - Extract a gzipped archive in the current directory:
- tar -xzf source.tar.gz
-
- - Extract a bzipped archive in the current directory:
- tar -xjf source.tar.bz2
-
- - 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"
(编辑:西安站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|