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/zsh: logname: command not found # Windows (WSL2) sudo apt-get update sudo apt-get install coreutils # 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 # Dockerfile dockerfile.run/logname # Docker docker run cmd.cat/logname logname
logname 命令用来显示用户名称。执行 logname 命令,它会显示目前用户的名称。
logname [OPTION]
--help:在线帮助; --vesion:显示版本信息。
[root@CommandNotFound ~] $ logname root