diff --git a/content/en/docs/concepts/overview/working-with-objects/namespaces.md b/content/en/docs/concepts/overview/working-with-objects/namespaces.md index 539ad212ca..4a3e2761f7 100644 --- a/content/en/docs/concepts/overview/working-with-objects/namespaces.md +++ b/content/en/docs/concepts/overview/working-with-objects/namespaces.md @@ -80,7 +80,7 @@ You can permanently save the namespace for all subsequent kubectl commands in th context. ```shell -kubectl config set-context $(kubectl config current-context) --namespace= +kubectl config set-context --current --namespace= # Validate it kubectl config view | grep namespace: ```