A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-bash: whoami: command not found #Debian apt-get install coreutils #Ubuntu apt-get install coreutils #Alpine apk add coreutils #Arch Linux pacman -S coreutils #Kali Linux apt-get install coreutils #CentOS yum install coreutils #Fedora dnf install coreutils #OS X brew install coreutils #Raspbian apt-get install coreutils #Docker docker run cmd.cat/whoami whoami
whoami 命令用于打印当前有效的用户名称,相当于执行 id -un
命令。
whoami [OPTION]
--help:在线帮助; --version:显示版本信息。
[root@TestMaster /Data/tools/sphinx-3.1.1/bin] $ whoami root [root@TestMaster /Data/tools/sphinx-3.1.1/bin] $ id -un root