logname
Shows the user's login name. More information: <https://www.gnu.org/software/coreutils/logname>.
Install
- All systems
-
curl cmd.cat/logname.sh
- 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
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install coreutils
- OS X
-
brew install coreutils
- Raspbian
-
apt-get install coreutils
- Dockerfile
- dockerfile.run/logname
- Docker
-
docker run cmd.cat/logname logname
powered by Commando
Shows the user's login name. More information: <https://www.gnu.org/software/coreutils/logname>.
-
Display the currently logged in user's name:
logname
© tl;dr; authors and contributors