hostid
Prints the numeric identifier for the current host (not necessarily the IP address). More information: <https://www.gnu.org/software/coreutils/hostid>.
Install
- All systems
-
curl cmd.cat/hostid.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/hostid
- Docker
-
docker run cmd.cat/hostid hostid
powered by Commando
Prints the numeric identifier for the current host (not necessarily the IP address). More information: <https://www.gnu.org/software/coreutils/hostid>.
-
Display the numeric identifier for the current host in hexadecimal:
hostid
© tl;dr; authors and contributors