tldr一个精简的man手册替代品
生活随笔
收集整理的這篇文章主要介紹了
tldr一个精简的man手册替代品
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
文章目錄
- tldr
- 安裝
- 常用參數(shù)
- 使用示例
tldr
假如你是一個(gè)對(duì)man手冊(cè)那又臭又長的命令感覺到厭倦的人,你可以去了解一下tldr命令
安裝
確保你的系統(tǒng)已經(jīng)安裝了npm
使用一下命令對(duì)tldr進(jìn)行安裝
tldr - Too Long; Didn't Readgithub地址
常用參數(shù)
-V, --version 查看版本-l, --list 從緩存中列出平臺(tái)支持的所有命令-a, --list-all 從緩存中列出所有命令-1, --single-column 單列列出所有支持的命令和 -l 和 -a一起使用-r, --random 隨機(jī)顯示支持的命令-e, --random-example 隨機(jī)顯示一個(gè)使用示例-f, --render [file] 顯示 markdown [file] 中的特定字符行-m, --markdown 按照markdown格式進(jìn)行輸出# 這幾個(gè)設(shè)置了沒有用的命令-o, --os [type] Override the operating system [linux, osx, sunos]--linux Override the operating system with Linux--osx Override the operating system with OSX--sunos Override the operating system with SunOS# -t, --theme [theme] 顏色主題 (simple, base16, ocean)-s, --search [keywords] 使用關(guān)鍵字搜索頁-u, --update 更新本地緩存-c, --clear-cache 清理本地緩存-h, --help 輸出幫助信息使用示例
andrew@andrew-Thurley:~$ tldr tartarArchiving 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" andrew@andrew-Thurley:~$ tldr -r PAGE git-checkoutgit checkoutCheckout a branch or paths to the working tree.More information: https://git-scm.com/docs/git-checkout.- Create and switch to a new branch:git checkout -b branch_name- Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):git checkout -b branch_name reference- Switch to an existing local branch:git checkout branch_name- Switch to the previously checked out branch:git checkout -- Switch to an existing remote branch:git checkout --track remote_name/branch_name- Discard all unstaged changes in the current directory (see git reset for more undo-like commands):git checkout .- Discard unstaged changes to a given file:git checkout file_name- Replace a file in the current directory with the version of it committed in a given branch:git checkout branch_name -- file_name andrew@andrew-Thurley:~$ tldr -r PAGE muttmuttCommand-line email client.More information: http://mutt.org.- Open the specified mailbox:mutt -f mailbox- Send an email and specify a subject and a cc recipient:mutt -s subject -c cc@example.com recipient@example.com- Send an email with files attached:mutt -a file1 file2 -- recipient@example.com- Specify a file to include as the message body:mutt -i file recipient@example.com- Specify a draft file containing the header and the body of the message, in RFC 5322 format:mutt -H file recipient@example.com關(guān)注公眾號(hào),免費(fèi)送資料
總結(jié)
以上是生活随笔為你收集整理的tldr一个精简的man手册替代品的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 作者:周涛(1979-),男,博士,启明
- 下一篇: 作者:孙忠富(1957-),男,中国农业