{"id":3333,"date":"2022-12-20T17:02:21","date_gmt":"2022-12-20T20:02:21","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/lsns-man8\/"},"modified":"2022-12-20T17:02:21","modified_gmt":"2022-12-20T20:02:21","slug":"lsns-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/lsns-man8\/","title":{"rendered":"LSNS (man8)"},"content":{"rendered":"<h1 align=\"center\">LSNS<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">lsns \u2212 list namespaces<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lsns<\/b> [options] [<i>namespace<\/i>]<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lsns<\/b> lists information about all the currently accessible namespaces or about the given <i>namespace<\/i>. The <i>namespace<\/i> identifier is an inode number.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The default output is subject to change. So whenever possible, you should avoid using default outputs in your scripts. Always explicitly define expected columns by using the <b>\u2212\u2212output<\/b> option together with a columns list in environments where a stable output is required.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>NSFS<\/b> column, printed when <b>net<\/b> is specified for the <b>\u2212\u2212type<\/b> option, is special; it uses multi-line cells. Use the option <b>\u2212\u2212nowrap<\/b> to switch to &#8220;,&#8221;-separated single-line representation.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note that <b>lsns<\/b> reads information directly from the \/proc filesystem and for non-root users it may return incomplete information. The current \/proc filesystem may be unshared and affected by a PID namespace (see <b>unshare \u2212\u2212mount\u2212proc<\/b> for more details). <b>lsns<\/b> is not able to see persistent namespaces without processes where the namespace instance is held by a bind mount to \/proc\/<i>pid<\/i>\/ns\/<i>type<\/i>.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212J<\/b>, <b>\u2212\u2212json<\/b><\/p>\n<p style=\"margin-left:22%;\">Use JSON output format.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212l<\/b>, <b>\u2212\u2212list<\/b><\/p>\n<p style=\"margin-left:22%;\">Use list output format.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212n<\/b>, <b>\u2212\u2212noheadings<\/b><\/p>\n<p style=\"margin-left:22%;\">Do not print a header line.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212o<\/b>, <b>\u2212\u2212output<\/b> <i>list<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify which output columns to print. Use <b>\u2212\u2212help<\/b> to get a list of all supported columns.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The default list of columns may be extended if <i>list<\/i> is specified in the format <b>+<\/b><i>list<\/i> <b>(e.g., lsns \u2212o +PATH).<\/b><\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212output\u2212all<\/b><\/p>\n<p style=\"margin-left:22%;\">Output all available columns.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212p<\/b>, <b>\u2212\u2212task<\/b> <i>pid<\/i><\/p>\n<p style=\"margin-left:22%;\">Display only the namespaces held by the process with this <i>pid<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212r<\/b>, <b>\u2212\u2212raw<\/b><\/p>\n<p style=\"margin-left:22%;\">Use the raw output format.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212t<\/b>, <b>\u2212\u2212type<\/b> <i>type<\/i><\/p>\n<p style=\"margin-left:22%;\">Display the specified <i>type<\/i> of namespaces only. The supported types are <b>mnt<\/b>, <b>net<\/b>, <b>ipc<\/b>, <b>user<\/b>, <b>pid<\/b>, <b>uts<\/b>, <b>cgroup<\/b> and <b>time<\/b>. This option may be given more than once.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212u<\/b>, <b>\u2212\u2212notruncate<\/b><\/p>\n<p style=\"margin-left:22%;\">Do not truncate text in columns.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212W<\/b>, <b>\u2212\u2212nowrap<\/b><\/p>\n<p style=\"margin-left:22%;\">Do not use multi-line text in columns.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212V<\/b>, <b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:22%;\">Display version information and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:22%;\">Display help text and exit.<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Karel Zak <kzak@redhat.com><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nsenter<\/b>(1), <b>unshare<\/b>(1), <b>clone<\/b>(2), <b>namespaces<\/b>(7)<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The lsns command is part of the util-linux package and is available from https:\/\/www.kernel.org\/pub\/linux\/utils\/util-linux\/.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  lsns \u2212 list namespaces <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,461,4],"class_list":["post-3333","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-lsns","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3333"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3333\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}