When I write kubec then when I use tab does it show kubectl or not?

amir choubani:
when I write kubec then when I use tab does it show kubectl or not ?

Trung Tran:
you should use alias k=‘kubectl’ for this

Shwetha Shenoy V:
autocomplete is not enabled by default. You can enable it by yourself at the start of the exam.

Igor Roháľ:
@Trung Tran when using the alias, autocompletion doesn’t work… or does it? how to go about it? thanks

Igor Roháľ:
i mean… how can one make the auto-completion work with the alias? it doesn’t work by default.

unnivkn:
autocomplete works with alias.
alias k=‘kubectl’
eg:
k -n my-ns get dep+TABKEY

Shwetha Shenoy V:
@Igor Roháľ I’ve used alias + autocomplete. It works!

Igor Roháľ:
@unnivkn & @Shwetha Shenoy V thank you both!

Sunil Krishna Ghanta:
@Shwetha Shenoy V from your message above I see that auto-complete is not enabled by default but from the message @unnivkn posted above I am seeing auto-complete is pre-configured. I am a little confused.

unnivkn:
@Sunil Krishna Ghanta what I posted is the recent change

Sunil Krishna Ghanta:
thanks @unnivkn

unnivkn:
https://docs.linuxfoundation.org/tc-docs/certification/tips-cka-and-ckad

Shwetha Shenoy V:
alias and autocomplete enabled + tmux preinstalled. Wow!! :tada: