您能否告诉我如何在不知道确切名称的情况下在终端中找到程序?
据我记得,有一个命令行工具可以帮助用户找到与某些关键字相关的其他程序/命令行工具。例如,我登录到一个未知的系统,我想打开一个pdf,我不知道安装了什么pdf阅读器,因此无法从命令行打开pdf。我以为有一个命令行工具,我可以用一些关键字调用,例如“pdf”,它向我显示了例如 7 个以某种方式与“pdf”相关的程序,例如 mupdf 等。
或者,当您不知道正在使用的系统或忘记安装了什么时该怎么办?
我在谷歌上搜索但总是找到类似的东西如何从命令行查找应用程序的路径? 这不是我要问的。
谢谢
答案1
我认为:
来自男人:
apropos - 搜索手册页名称和描述
例子:
$ apropos pdf
dvipdf (1) - Convert TeX DVI file to PDF using ghostscript and dvips
evince-thumbnailer (1) - create png thumbnails from PostScript and PDF documents
fix-qdf (1) - repair PDF files in QDF form after editing
ghostscript (1) - Ghostscript (PostScript and PDF language interpreter and previewer)
gs (1) - Ghostscript (PostScript and PDF language interpreter and previewer)
gsnd (1) - Run ghostscript (PostScript and PDF engine) without display
pdf2dsc (1) - generate a PostScript page list of a PDF document
pdf2ps (1) - Ghostscript PDF to PostScript translator
pdfdetach (1) - Portable Document Format (PDF) document embedded file extractor (version 3.03)
pdffonts (1) - Portable Document Format (PDF) font analyzer (version 3.03)
pdfimages (1) - Portable Document Format (PDF) image extractor (version 3.03)
pdfinfo (1) - Portable Document Format (PDF) document information extractor (version 3.03)
pdfseparate (1) - Portable Document Format (PDF) page extractor
pdftocairo (1) - Portable Document Format (PDF) to PNG/JPEG/TIFF/PDF/PS/EPS/SVG using cairo
pdftohtml (1) - program to convert PDF files into HTML, XML and PNG images
pdftoppm (1) - Portable Document Format (PDF) to Portable Pixmap (PPM) converter (version 3.03)
pdftops (1) - Portable Document Format (PDF) to PostScript converter (version 3.03)
pdftotext (1) - Portable Document Format (PDF) to text converter (version 3.03)
pdfunite (1) - Portable Document Format (PDF) page merger
ps2ascii (1) - Ghostscript translator from PostScript or PDF to ASCII
ps2pdf (1) - Convert PostScript to PDF using ghostscript
ps2pdf12 (1) - Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible) using ghostscript
ps2pdf13 (1) - Convert PostScript to PDF 1.3 (Acrobat 4-and-later compatible) using ghostscript
ps2pdf14 (1) - Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible) using ghostscript
ps2pdfwr (1) - Convert PostScript to PDF without specifying CompatibilityLevel, using ghostscript
qpdf (1) - PDF transformation software
snmpdf (1) - display disk space usage on a network entity via SNMP