织梦新手网站建设,装修设计网站哪个好用,公众号软文素材,嘉峪关市网站建设设计我们平时使用命令的时候#xff0c;如果忘记的或者不知道这个命令如何使用#xff0c;然后你就会去百度#xff0c;也会去使用man 或者 -- help 查看#xff0c;但是看到的一般都是长篇大论。如果你看了这篇文章#xff0c;就会知道tldr是怎么样的存在。tldr 的含义TL;DR … 我们平时使用命令的时候如果忘记的或者不知道这个命令如何使用然后你就会去百度也会去使用man 或者 -- help 查看但是看到的一般都是长篇大论。如果你看了这篇文章就会知道tldr是怎么样的存在。tldr 的含义TL;DR stands for Too Long; Didnt Read. It originates in Internet slang, where it is used to indicate that a long text (or parts of it) has been skipped as too lengthy. Read more in Wikipedias TL;DR essay这个是从github上截取的一段解释全称是 Too Long;Didnt Read 翻译成中文的意思就是什么我昨天带我儿子去参加英语培训课程他们老师给我做了一个测试让我把自己的电话号码用中文说出来之后他们又让我把我的电话号码用英语说出来。用中文说出来很简单但是用英文说出来还是比较困难因为我说英文的时候总是先想一下才能说出来这就导致了速度很慢。说中文的时候是这样说英文的时候是这样我说这个是想表达一个观点我们对中文的认知是感觉来的但是对英文的认知是思考来的所以对于Too Long;Didnt Read 这句话的理解如果真翻译了就失去它的味道了。从目前为止我看到的最好的翻译是太长了不看#如何使用?很简单tldr 加上后面需要解释的命令就好了。weiqifabsp-ubuntu1804:~/in10$ tldr ls
✔ Page not found. Updating cache...
✔ Creating index...lsList directory contents.- List files one per line:ls -1- List all files, including hidden files:ls -a- List all files, with trailing / added to directory names:ls -F- Long format list (permissions, ownership, size and modification date) of all files:ls -la- Long format list with size displayed using human readable units (KB, MB, GB):ls -lh- Long format list sorted by size (descending):ls -lS- Long format list of all files, sorted by modification date (oldest first):ls -ltrweiqifabsp-ubuntu1804:~/in10$ tldr --update
✔ Updating...
✔ Creating index...
weiqifabsp-ubuntu1804:~/in10$ tldr zipzipPackage and compress (archive) files into zip file.- Package and compress a directory and its contents, [r]ecursively:zip -r compressed.zip path/to/directory- E[x]clude unwanted files from being added to the compressed archive:zip -r compressed.zip path/to/directory -x path/to/exclude- Archive a directory and its contents with the highest level [9] of compression:zip -r -9 compressed.zip path/to/directory- Package and compress multiple directories and files:zip -r compressed.zip path/to/directory1 path/to/directory2 path/to/file- Create an encrypted archive (user will be prompted for a password):zip -e -r compressed.zip path/to/directory- Add files to an existing zip file:zip compressed.zip path/to/file- Delete files from an existing zip file:zip -d compressed.zip foo/*.tmp- Archive a directory and its contents to a multi-part [s]plit zip file (e.g. 3GB parts):zip -r -s 3g compressed.zip path/to/directoryweiqifabsp-ubuntu1804:~/in10$从上面可以看到我们可以直接看到比较简短的使用介绍如果我们使用man的话是这样的。#如何安装我这里安装是在ubuntu系统里面如果是其他的系统需要自行查找资料。sudo apt-get install nodejssudo apt-get install npmsudo npm install -g tldr执行上面三条指令后需要再执行tldr --update来更新tldr 到最新的状态之后就可以让tldr 带你享受人生了说实话我用了这个命令后觉得自己的时间可以节省下至少 10分钟。weiqifabsp-ubuntu1804:~$ tldr dd ddConvert and copy a file.- Make a bootable usb drive from an isohybrid file (such like archlinux-xxx.iso) and show the progress:dd iffile.iso of/dev/usb_drive statusprogress- Clone a drive to another drive with 4MB block, ignore error and show progress:dd if/dev/source_drive of/dev/dest_drive bs4M convnoerror statusprogress- Generate a file of 100 random bytes by using kernel random driver:dd if/dev/urandom ofrandom_file bs100 count1- Benchmark the write performance of a disk:dd if/dev/zero offile_1GB bs1024 count1000000- Check progress of an ongoing dd operation (Run this command from another shell):kill -USR1 $(pgrep ^dd)#相关链接https://github.com/tldr-pages/tldr#推荐阅读 专辑|Linux文章汇总 专辑|程序人生 专辑|C语言嵌入式Linux微信扫描二维码关注我的公众号