Linux 下如何使用命令

文章目录

            • ENV
            • `which` 查看命令的路径
            • `whereis` 查看命令所在二进制、源码、手册所在的位置
            • `whatis` 查看命令的功能
            • `man` 查看命令的手册
            • `tab` 键盘操作

ENV

fedora 29 workstation x86_64

which 查看命令的路径

which

$ whatis which
which (1)            - shows the full path of (shell) commands.
whereis 查看命令所在二进制、源码、手册所在的位置

whereis

$ whatis whereis
whereis (1)          - locate the binary, source, and manual page files for a command
whatis 查看命令的功能

whatis

$ whatis whatis
whatis (1)           - display one-line manual page descriptions
man 查看命令的手册

man

$ whatis man
man (1)              - an interface to the on-line reference manuals
man (1p)             - display system documentation
man (7)              - macros to format man pages
tab 键盘操作

当命令太长记不清时, 使用 tab 键进行自动补全或提示.

你可能感兴趣的:(Fedora专栏,fedora)