| 
                         tldr 
- [root@VM_0_14_centos ~]# npm install -g tldr 
 - /usr/local/n/versions/node/11.4.0/bin/tldr -> /usr/local/n/versions/node/11.4.0/lib/node_modules/tldr/bin/tldr 
 - + tldr@3.2.7 
 - added 113 packages from 103 contributors in 60.759s 
 -  
 -  
 -    ╭───────────────────────────────────────────────────────────────╮ 
 -    │                                                               │ 
 -    │       New minor version of npm available! 6.4.1 → 6.9.0       │ 
 -    │   Changelog: https://github.com/npm/cli/releases/tag/v6.9.0   │ 
 -    │               Run npm install -g npm to update!               │ 
 -    │                                                               │ 
 -    ╰───────────────────────────────────────────────────────────────╯ 
 
  
安装完后先看看 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" 
 
                          (编辑:52站长网) 
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! 
                     |