所有关于less命令 (24)

less命令可以显示rpm包及其内容的详细信息

linux命令:less openssl-devel-0.9.7a-43.16.i386.rpm openssl-devel-0.9.7a-43.16.i386.rpm less less openssl-devel-0.9.7a-43.16.i386.rpmrootopen.com
linux命令:less openssl-devel-0.9.7a-43.16.i386.rpm openssl-devel-0.9.7a-43.16.i386.rpm less less openssl-devel-0.9.7a-43.16.i386.rpmrootopen.com
2018-08-15 20:41:19

当您打开Debian文件时,它会显示有关该软件包的信息以及该软件包中可用文件的“ls -l”,如下所示。

linux命令:less lshw_02.08.01-1_i386.deb lshw_02.08.01-1_i386.deb less less lshw_02.08.01-1_i386.debrootopen.com
linux命令:less lshw_02.08.01-1_i386.deb lshw_02.08.01-1_i386.deb less less lshw_02.08.01-1_i386.debrootopen.com
2018-08-15 20:40:35

打开iso文件时,它会显示有关iso文件的信息,然后显示该文件的内容。

linux命令:less knoppix_5.1.1.iso knoppix_5.1.1.iso less less knoppix_5.1.1.isorootopen.com
linux命令:less knoppix_5.1.1.iso knoppix_5.1.1.iso less less knoppix_5.1.1.isorootopen.com
2018-08-15 20:39:43

linux命令:less bash-support.zip bash-support.zip less less bash-support.ziprootopen.com
linux命令:less bash-support.zip bash-support.zip less less bash-support.ziprootopen.com
2018-08-15 20:38:48

对于存档和压缩文件,less命令以“ls -l”格式显示输出。

linux命令:less XML-Parser-2.36.tar.gz XML-Parser-2.36.tar.gz less less XML-Parser-2.36.tar.gzrootopen.com
linux命令:less XML-Parser-2.36.tar.gz XML-Parser-2.36.tar.gz less less XML-Parser-2.36.tar.gzrootopen.com
2018-08-15 20:37:04

打开存档文件时,它会显示存档中可用文件的“ls -l”,因此您可以查看文件大小,文件大小和所有者,组的权限

linux命令:less autocorrect.tar autocorrect.tar less less autocorrect.tarrootopen.com
linux命令:less autocorrect.tar autocorrect.tar less less autocorrect.tarrootopen.com
2018-08-15 20:36:19

打开图像文件(jpeg,jpg和png)时,less命令显示以下信息:

linux命令:less testfile.jpeg testfile.jpeg less less testfile.jpegrootopen.com
linux命令:less testfile.jpeg testfile.jpeg less less testfile.jpegrootopen.com
2018-08-15 20:34:32

linux命令:less pdb.doc pdb.doc less less pdb.docrootopen.com
linux命令:less pdb.doc pdb.doc less less pdb.docrootopen.com
2018-08-15 20:31:45

它清楚地显示了pdf文件中的所有文本,但忽略了图像。输出可能在这里和那里有一些特殊字符,但它绝对可读

linux命令:less test.pdf test.pdf less less test.pdfrootopen.com
linux命令:less test.pdf test.pdf less less test.pdfrootopen.com
2018-08-15 20:30:40

使用+ F会减少跟随模式。这与'tail -f'类似。要停止滚动,请使用中断。那么你会得到更少的正常好处(滚动等)。按SHIFT-F将恢复'tailling'。

linux命令:less +F somelogfile somelogfile +F less less +F somelogfilerootopen.com
linux命令:less +F somelogfile somelogfile +F less less +F somelogfilerootopen.com
2018-02-18 05:09:48

这相当于:少了`which rcsyslog`

linux命令:less =rcsyslog =rcsyslog less less =rcsyslogrootopen.com
linux命令:less =rcsyslog =rcsyslog less less =rcsyslogrootopen.com
2018-04-04 04:57:48

它允许通过管道进行自定义。你需要编写一个〜/ .lessfilter脚本并把它放到你的〜/ .bashrc中:eval $(lesspipe)export LESS = -r

linux命令:less -r <some file> file> <some -r less less -r <some file>rootopen.com
linux命令:less -r <some file> file> <some -r less less -r <some file>rootopen.com
2018-02-10 13:44:48

与输入'less filename','G'或'>'或END键相同。与shell脚本或别名一起使用:别名weblog ='less + G / var / log / httpd / access_log'alias errlog ='less + G / var / log / httpd / error_log'

linux命令:less +G <filename> <filename> +G less less +G <filename>rootopen.com
linux命令:less +G <filename> <filename> +G less less +G <filename>rootopen.com
2018-05-21 03:29:48

这将打印出gzip压缩包中的文件和目录。

linux命令:less file.tar.gz file.tar.gz less less file.tar.gzrootopen.com
linux命令:less file.tar.gz file.tar.gz less less file.tar.gzrootopen.com
2018-03-03 01:06:48

没有必要'zcat textfile.gz |更少“与更新的发行版。这对读取归档日志文件非常有用,而无需在完成时提取,读取和压缩。

linux命令:less textfile.gz textfile.gz less less textfile.gzrootopen.com
linux命令:less textfile.gz textfile.gz less less textfile.gzrootopen.com
2018-01-18 02:38:48

要首先对隐藏文件进行排序,只需切换两个内部`ls`命令。我将这个别名替换为`dira``dir`的别名,而不是隐藏文件的简单版本:ls -l --color = always |减去-R

linux命令:less -Rf <( cat <(ls -l --color=always) <(ls -ld --color=always .*) ) ) .*) --color=always -ld <(ls --color=always) -l <(ls cat <( -Rf less less -Rf <( cat <(ls -l --color=always) <(ls -ld --color=always .*) )rootopen.com
linux命令:less -Rf <( cat <(ls -l --color=always) <(ls -ld --color=always .*) ) ) .*) --color=always -ld <(ls --color=always) -l <(ls cat <( -Rf less less -Rf <( cat <(ls -l --color=always) <(ls -ld --color=always .*) )rootopen.com
2018-06-09 16:30:48

将大型单词列表切成更小的块

linux命令:less file.lst | head -n 50000 > output.txt output.txt > 50000 -n head | file.lst less less file.lst | head -n 50000 > output.txtrootopen.com
linux命令:less file.lst | head -n 50000 > output.txt output.txt > 50000 -n head | file.lst less less file.lst | head -n 50000 > output.txtrootopen.com
2018-04-15 09:58:48

'less'搜索字符串的公共键绑定

linux命令:less file.ext file.ext less less file.extrootopen.com
linux命令:less file.ext file.ext less less file.extrootopen.com
2018-05-08 01:11:48

kpsewhich是用于路径和文件查找的工具。它是kpathsea图书馆的前端。对于一个或多个给定的包或文件名,它将返回TeX安装中的完整路径,即编译器实际使用的路径。通过反引号,我们可以将它用作更少,更多或任何编辑的参数。例如:gedit`kpsewhich hyperref.sty`

linux命令:less `kpsewhich scrartcl.cls` scrartcl.cls` `kpsewhich less less `kpsewhich scrartcl.cls`rootopen.com
linux命令:less `kpsewhich scrartcl.cls` scrartcl.cls` `kpsewhich less less `kpsewhich scrartcl.cls`rootopen.com
2018-05-11 04:58:48

打开一个较少的文件,并进入模式的第一个匹配

linux命令:less -p pattern file.txt file.txt pattern -p less less -p pattern file.txtrootopen.com
linux命令:less -p pattern file.txt file.txt pattern -p less less -p pattern file.txtrootopen.com
2018-03-22 08:10:48
  • 1
  • 2
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令