概述Blog:博客园 个人
github:https://github.com/tldr-pages/tldr
tldr(Too Long; DIDn't Read)命令会自动显示命令常用样例,什么--help和man都弱爆了。
安装首先需要安装Node.js client,然后通过npm命令安装即可
npm install -g tldrsudo ln -s ~/.npm-global/lib/node_modules/tldr/bin/tldr /bin/tldr# 更新本地库tldr -u
语法tldr command [options]
Options:
Options: -V, --version output the version number -l, --List List all commands for the chosen platform in the cache -a, --List-all List all commands in the cache -1, --single-column List single command per line (use with options -l or -a) -r, --random Show a random command -e, --random-example Show a random example -f, --render [file] Render a specific markdown [file] -m, --markdown Output in markdown format -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] color theme (simple, base16, ocean) -s, --search [keywords] Search pages using keywords -u, --update Update the local cache -c, --clear-cache Clear the local cache -h, --help output usage information示例
[rohn@WhiteQueen ~]$ tldr grep grep Matches patterns in input text. Supports simple patterns and regular Expressions. - Search for a pattern within a file: grep search_pattern path/to/file - Search for an exact string: grep -F exact_string path/to/file - Search for a pattern recursively in the current directory, ignoring non-text files: grep -RI search_pattern . - Use extended regular Expressions (supporting ?, +, {}, () and |), in case-insensitive mode: grep -Ei search_pattern path/to/file - Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match: grep -C|B|A 3 search_pattern path/to/file - Print file name with the corresponding line number for each match: grep -Hn search_pattern path/to/file - Use the standard input instead of a file: cat path/to/file | grep search_pattern - Invert match for excluding specific strings: grep -v search_pattern
总结 以上是内存溢出为你收集整理的Linux命令学习神器:tldr命令全部内容,希望文章能够帮你解决Linux命令学习神器:tldr命令所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)