Options (4)
-J, --jsonbooleanList namespaces in JSON format
Example:
lsns {{[-J|--json]}}-p, --taskbooleanList namespaces associated with the specified process
Example:
lsns {{[-p|--task]}} {{pid}}-t, --typebooleanList the specified type of namespaces only
Example:
lsns {{[-t|--type]}} {{mnt|net|ipc|user|pid|uts|cgroup|time}}-o, --outputbooleanList namespaces, only showing the namespace ID, type, PID, and command
Example:
lsns {{[-o|--output]}} {{NS,TYPE,PID,COMMAND}}Examples (5)
List all namespaces
List namespaces in JSON format
lsns [-J|--json]List namespaces associated with the specified process
lsns [-p|--task] pidList the specified type of namespaces only
lsns [-t|--type] mnt|net|ipc|user|pid|uts|cgroup|timeList namespaces, only showing the namespace ID, type, PID, and command
lsns [-o|--output] NS,TYPE,PID,COMMANDmade by @shridhargupta | data from tldr-pages