打印一个手册页

man -t manpagename给出了该手册页的附加版本。然后,您将其输入到ls,并假设您设置了杯子,它将打印在您的默认打印机中。
.

0

linux命令:man -t man | lp lp | man -t man man -t man | lprootopen.com
linux命令:man -t man | lp lp | man -t man man -t man | lprootopen.com
ibln 2018-03-03 11:35:48
输出
linux命令:man 详解

评论

相关推荐

将手册页转储到文本通常会保留某些格式,例如 foo^H^H^H___ fo,包括下划线和其他特殊字符,col -bx删除了这些

linux命令:man2txt() { man "$@" | col -bx ;} ;} -bx col | "$@" man { man2txt() man2txt() { man "$@" | col -bx ;}rootopen.com
linux命令:man2txt() { man "$@" | col -bx ;} ;} -bx col | "$@" man { man2txt() man2txt() { man "$@" | col -bx ;}rootopen.com
.

linux命令:man command-name command-name man man command-namerootopen.com
linux命令:man command-name command-name man man command-namerootopen.com
.

搜索关键字的联机帮助页。当你不知道在哪里可以找到信息时非常有用。

linux命令:man -k <keyword> <keyword> -k man man -k <keyword>rootopen.com
linux命令:man -k <keyword> <keyword> -k man man -k <keyword>rootopen.com
.

linux命令:man -t UNIX_COMMAND | open -f -a preview preview -a -f open | UNIX_COMMAND -t man man -t UNIX_COMMAND | open -f -a previewrootopen.com
linux命令:man -t UNIX_COMMAND | open -f -a preview preview -a -f open | UNIX_COMMAND -t man man -t UNIX_COMMAND | open -f -a previewrootopen.com
.

manview在互联网上搜索man页面,以防man命令出于某种原因无法正常工作,或者如果您认为Cornell的Solaris版本的手册页可能与您的不同。它将lynx的联机帮助信息转储到更少,因此它看起来非常像真正的联机帮助页。把它放在.bash_profile或.bashrc中,然后你可以像普通命令一样使用它:输入“manview ssh”会给你ssh的手册页。

linux命令:manview() { lynx -dump -accept_all_cookies 'http://www.csuglab.cornell.edu/cgi-bin/adm/man.cgi?section=all&topic='"$1" | less; } } less; | 'http://www.csuglab.cornell.edu/cgi-bin/adm/man.cgi?section=all&topic='"$1" -accept_all_cookies -dump lynx { manview() manview() { lynx -dump -accept_all_cookies 'http://www.csuglab.cornell.edu/cgi-bin/adm/man.cgi?section=all&topic='"$1" | less; }rootopen.com
linux命令:manview() { lynx -dump -accept_all_cookies 'http://www.csuglab.cornell.edu/cgi-bin/adm/man.cgi?section=all&topic='"$1" | less; } } less; | 'http://www.csuglab.cornell.edu/cgi-bin/adm/man.cgi?section=all&topic='"$1" -accept_all_cookies -dump lynx { manview() manview() { lynx -dump -accept_all_cookies 'http://www.csuglab.cornell.edu/cgi-bin/adm/man.cgi?section=all&topic='"$1" | less; }rootopen.com
.

linux命令:man ascii ascii man man asciirootopen.com
linux命令:man ascii ascii man man asciirootopen.com
.

是否有可以使用嘟嘟声和外壳创建的创意音乐作品?我很乐意听到它!

linux命令:man beep | sed -e '1,/Note/d; /BUGS/,$d' | awk '{print $2}' | xargs -IX sudo beep -f X -l 500 500 -l X -f beep sudo -IX xargs | $2}' '{print awk | /BUGS/,$d' '1,/Note/d; -e sed | beep man man beep | sed -e '1,/Note/d; /BUGS/,$d' | awk '{print $2}' | xargs -IX sudo beep -f X -l 500rootopen.com
linux命令:man beep | sed -e '1,/Note/d; /BUGS/,$d' | awk '{print $2}' | xargs -IX sudo beep -f X -l 500 500 -l X -f beep sudo -IX xargs | $2}' '{print awk | /BUGS/,$d' '1,/Note/d; -e sed | beep man man beep | sed -e '1,/Note/d; /BUGS/,$d' | awk '{print $2}' | xargs -IX sudo beep -f X -l 500rootopen.com
.

您可以将任何UNIX手册页转换为.txt

linux命令:man ls | col -b > ~/Desktop/man_ls.txt ~/Desktop/man_ls.txt > -b col | ls man man ls | col -b > ~/Desktop/man_ls.txtrootopen.com
linux命令:man ls | col -b > ~/Desktop/man_ls.txt ~/Desktop/man_ls.txt > -b col | ls man man ls | col -b > ~/Desktop/man_ls.txtrootopen.com
.

使用perl,在这里,我们grep fetchmail的man页面来查找以'-k |开头的段落--keep“并在以'-K |开头的段落之前结束--nokeep”

linux命令:man fetchmail | perl -ne 'undef $/; print $1 if m/^.*?(-k \| --keep.*)-K \| --nokeep.*$/smg' --nokeep.*$/smg' \| --keep.*)-K \| m/^.*?(-k if $1 print $/; 'undef -ne perl | fetchmail man man fetchmail | perl -ne 'undef $/; print $1 if m/^.*?(-k \| --keep.*)-K \| --nokeep.*$/smg'rootopen.com
linux命令:man fetchmail | perl -ne 'undef $/; print $1 if m/^.*?(-k \| --keep.*)-K \| --nokeep.*$/smg' --nokeep.*$/smg' \| --keep.*)-K \| m/^.*?(-k if $1 print $/; 'undef -ne perl | fetchmail man man fetchmail | perl -ne 'undef $/; print $1 if m/^.*?(-k \| --keep.*)-K \| --nokeep.*$/smg'rootopen.com
.

在任何指定的联机帮助页中创建一个PDF(以ps作为中间格式)。-T开关的其他有用参数是dvi,utf8或latin1。

linux命令:man -Tps ls >> ls_manpage.ps && ps2pdf ls_manpage.ps ls_manpage.ps ps2pdf && ls_manpage.ps >> ls -Tps man man -Tps ls >> ls_manpage.ps && ps2pdf ls_manpage.psrootopen.com
linux命令:man -Tps ls >> ls_manpage.ps && ps2pdf ls_manpage.ps ls_manpage.ps ps2pdf && ls_manpage.ps >> ls -Tps man man -Tps ls >> ls_manpage.ps && ps2pdf ls_manpage.psrootopen.com
.

linux命令:man perlcheat | col -b > perlcheat.txt perlcheat.txt > -b col | perlcheat man man perlcheat | col -b > perlcheat.txtrootopen.com
linux命令:man perlcheat | col -b > perlcheat.txt perlcheat.txt > -b col | perlcheat man man perlcheat | col -b > perlcheat.txtrootopen.com
.

使用cat作为传呼机将manpage输出为明文:man -P cat命令名并将其stdout重定向到一个文件中:man -P cat命令名> textfile.txt示例:man -P cat ls> man_ls.txt

linux命令:man -P cat ls > man_ls.txt man_ls.txt > ls cat -P man man -P cat ls > man_ls.txtrootopen.com
linux命令:man -P cat ls > man_ls.txt man_ls.txt > ls cat -P man man -P cat ls > man_ls.txtrootopen.com
.

linux命令:man -t man | ps2pdf - > man.pdf man.pdf > - ps2pdf | man -t man man -t man | ps2pdf - > man.pdfrootopen.com
linux命令:man -t man | ps2pdf - > man.pdf man.pdf > - ps2pdf | man -t man man -t man | ps2pdf - > man.pdfrootopen.com
.

您可以通过将节号作为参数传递给man命令来查看第5节中的手册页

linux命令:man 5 crontab crontab 5 man man 5 crontabrootopen.com
linux命令:man 5 crontab crontab 5 man man 5 crontabrootopen.com
.

以纯文本显示手册页

linux命令:man bash | col -b -b col | bash man man bash | col -brootopen.com
linux命令:man bash | col -b -b col | bash man man bash | col -brootopen.com
.

对/ bin,/ usr / bin和/ usr / local / bin之间的区别感到好奇? / sbin目录中应该包含什么内容?试试这个命令找出来。对红帽和OS X进行测试

linux命令:man hier hier man man hierrootopen.com
linux命令:man hier hier man man hierrootopen.com
.

例如:LC_ALL = C man less |更少+ /模式

linux命令:man <COMMAND> | less +'/pattern' +'/pattern' less | <COMMAND> man man <COMMAND> | less +'/pattern'rootopen.com
linux命令:man <COMMAND> | less +'/pattern' +'/pattern' less | <COMMAND> man man <COMMAND> | less +'/pattern'rootopen.com
.

一个非常有趣的人页面!

linux命令:man ettercap ettercap man man ettercaprootopen.com
linux命令:man ettercap ettercap man man ettercaprootopen.com
.

在debian和Ubuntu上测试。翻译可能是无用的,所以“LANG = C man intro”是一个更好的选择。

linux命令:man intro intro man man introrootopen.com
linux命令:man intro intro man man introrootopen.com
.

linux命令:man !! !! man man !!rootopen.com
linux命令:man !! !! man man !!rootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令