# Kubectl tricks for the console

**URL:** <https://discuss.kubernetes.io/t/kubectl-tricks-for-the-console/26271>\
**Category:** Italian\
**Created:** [November 30, 2023, 5:53pm UTC](https://discuss.kubernetes.io/t/kubectl-tricks-for-the-console/26271 "2023-11-30T17:53:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thegio](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/thegio/32/13808_2.png) [@thegio](https://discuss.kubernetes.io/u/thegio)\
**Post date:** [November 30, 2023, 5:53pm UTC](https://discuss.kubernetes.io/t/kubectl-tricks-for-the-console/26271/1 "2023-11-30T17:53:19Z")

</div>

What do you thin about this base configuration?

alias k=kubectl # will already be pre-configured  
export do=“–dry-run=client -o yaml” # k create deploy nginx --image=nginx $do  
export now=“–force --grace-period 0” # k delete pod x $now

Vim setup in ~/.vimrc  
set tabstop=2  
set expandtab  
set shiftwidth=2
