Setting up Environments with Autocompletion and Shortcuts
In most Linux environments, you can set up autocompletion for kubectl commands before you start working with the instructions mentioned in this chapter. Learning how autocompletion and shortcuts work in Linux environments will be significantly helpful for those who are interested in getting certifications such as Certified Kubernetes Administrator (CKA) and Certified Kubernetes Application Developer (CKAD), which are conferred by the Linux Foundation. We'll learn how to set up autocompletion in the following exercise.
Exercise 3.01: Setting up Autocompletion
In this exercise, we will show you how to set up autocompletion and an alias for kubectl commands in Bash. This is a useful feature that will help you save time and avoid typos. Perform the following steps to complete this exercise:
- We will need the
bash-completion
package, so install it if it is not already installed. You can go to the GitHub repository...