在Ubuntu18.04系统中,安装tldr

在Ubuntu18.04系统中,tldr的完整安装流程总结:

shunren@shunren-VPCCA16EC:~/test/c++/phread$ sudo apt-get update
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease         
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:3 http://ppa.launchpad.net/apt-fast/stable/ubuntu bionic InRelease
Hit:4 http://cn.archive.ubuntu.com/ubuntu bionic InRelease           
Ign:5 http://archive.canonical.com lucid InRelease                   
Err:6 http://archive.canonical.com lucid Release                     
  404  Not Found [IP: 91.189.88.141 80]
Ign:7 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic InRelease
Get:8 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:9 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu bionic InRelease
Ign:10 http://ppa.launchpad.net/saiarcot895/myppa/ubuntu bionic InRelease
Hit:11 http://ppa.launchpad.net/yktooo/ppa/ubuntu bionic InRelease   
Hit:12 http://packages.microsoft.com/repos/code stable InRelease     
Get:13 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Err:14 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release
  404  Not Found [IP: 91.189.95.85 80]
Err:15 http://ppa.launchpad.net/saiarcot895/myppa/ubuntu bionic Release
  404  Not Found [IP: 91.189.95.85 80]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [55.0 kB]
Get:17 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1434 kB]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [59.5 kB]
Get:19 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2464 kB]
Get:20 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [296 kB]
Get:21 http://cn.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [300 kB]
Get:22 http://cn.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9268 B]
Reading package lists... Done                                        
E: The repository 'http://archive.canonical.com lucid Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/saiarcot895/myppa/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
shunren@shunren-VPCCA16EC:~/test/c++/phread$ sudo apt-get install tldrReading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  tldr
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 860 kB of archives.
After this operation, 4880 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 tldr amd64 0.2.3-3 [860 kB]
Fetched 860 kB in 9s (95.7 kB/s)                                     
Selecting previously unselected package tldr.
(Reading database ... 281894 files and directories currently installed.)
Preparing to unpack .../tldr_0.2.3-3_amd64.deb ...
Unpacking tldr (0.2.3-3) ...
Setting up tldr (0.2.3-3) ...
update-alternatives: using /usr/bin/tldr-hs to provide /usr/bin/tldr (tldr) in auto mode
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
shunren@shunren-VPCCA16EC:~/test/c++/phread$ tldr
tldr - Simplified and community-driven man pages

Usage: tldr [-v|--version] [--update] COMMAND
  tldr Client program

Available options:
  -h,--help                Show this help text
  -v,--version             Show version
  --update                 Update tldr pages
  COMMAND                  name of the command
shunren@shunren-VPCCA16EC:~/test/c++/phread$ tldr sort
sort
Sort lines of text files.
More information: 
https://www.gnu.org/software/coreutils/sort
.

 - Sort a file in ascending order:
   sort {{path/to/file}}

 - Sort a file in descending order:
   sort --reverse {{path/to/file}}

 - Sort a file in case-insensitive way:
   sort --ignore-case {{path/to/file}}

 - Sort a file using numeric rather than alphabetic order:
   sort --numeric-sort {{path/to/file}}

 - Sort 
   /etc/passwd
 by the 3rd field of each line numerically, using ":" as a field separator:
   sort --field-separator={{:}} --key={{3n}} {{/etc/passwd}}

 - Sort a file preserving only unique lines:
   sort --unique {{path/to/file}}

 - Sort a file, printing the output to the specified output file (can be used to sort a file in-place):
   sort --output={{path/to/file}} {{path/to/file}}

 - Sort numbers with exponents:
   sort --general-numeric-sort {{path/to/file}}

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值