lsns
List information about all namespaces or about the specified namespace. More information: <https://man7.org/linux/man-pages/man8/lsns.8.html>.
Install
- All systems
-
curl cmd.cat/lsns.sh
- Debian
-
apt-get install util-linux
- Ubuntu
-
apt-get install util-linux
- Alpine
-
apk add util-linux
- Arch Linux
-
pacman -S util-linux
- Kali Linux
-
apt-get install util-linux
- CentOS
-
yum install util-linux
- Fedora
-
dnf install util-linux
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install util-linux
- OS X
-
brew install util-linux
- Raspbian
-
apt-get install util-linux
- Dockerfile
- dockerfile.run/lsns
- Docker
-
docker run cmd.cat/lsns lsns
powered by Commando
List information about all namespaces or about the specified namespace. More information: <https://man7.org/linux/man-pages/man8/lsns.8.html>.
-
List all namespaces:
lsns
-
List namespaces in JSON format:
lsns --json
-
List namespaces associated with the specified process:
lsns --task pid
-
List the specified type of namespaces only:
lsns --type mnt|net|ipc|user|pid|uts|cgroup|time
-
List namespaces, only showing the namespace ID, type, PID, and command:
lsns --output NS,TYPE,PID,COMMAND
© tl;dr; authors and contributors