Write a command to display the current context without the use of kubectl?

Vinit Kumar:
write a command to display the current context without the use of kubectl ?

new_day:
cat ~/.kube/config | grep -i "current-context" | awk '{print $2}'

1 Like

Some people like kubectx:
https://github.com/ahmetb/kubectx