To set the current namespace to dev , use:
This command updates the current context to use the my-namespace namespace. kubectl change namespace
kubens -: Switches back to the previous namespace (like cd - in Linux). kubens: Lists all available namespaces in the cluster. Temporary Namespace Changes To set the current namespace to dev ,