How Do You List Namespaces in Linux in JSON Format?

Problem scenario
You want to list the namespaces for a given user in Linux. You want the output to be in JSON. What should you do?

Run this command: lsns -J

Leave a comment

Your email address will not be published. Required fields are marked *