Namespace

There are multiple type of namespace. Basically namespace is an isolated environment.

For example user namespace has isolated environment for user, net namespace has an isolated network environment.

Net namespace

Net namespace is an isolated network environment. You can start creating your namespace by

sudo ip netns create my-name-space

This will then mount /run/netns. This is where you can see all of your net namespace

[!important]
For net namespace, only network related command will be execute in the namespace such as ping, ip show link etc.. when run other commands it simply runs as current user.

The namespace doesn't have isolated file system. So if you do sudo ip netns exec touch helloworld it will create the file for the current user.