<p>I'm new to Kubernetes and wondering, if there's a <code>kubectl</code> command to figure out what namespace I'm currently working in?</p>
<p>Running the <code>kubectl get ns</code> command prints out all the namespaces but doesn't show which one I'm in at present.</p>

Metro
<p>You want to inspect the local config for <code>kubectl</code> and see current context. This shows your current context with namespace.</p>
<pre><code>kubectl config get-contexts 
</code></pre>
<p>Example output - can also be multiple clusters, but only one &quot;current&quot;:</p>
<pre><code>$kubectl config get-contexts   
CURRENT   NAME       CLUSTER    AUTHINFO   NAMESPACE    
*         minikube   minikube   minikube   default
</code></pre>
