SEASON 3
bashrc and bash_profile

.bash_profile

This file each time a login happens.
.bash_profile
1
# .bash_profile
2
3
# Get the aliases and functions
4
if [ -f ~/.bashrc ]; then
5
. ~/.bashrc
6
fi
7
8
# User specific environment and startup programs
9
10
PATH=$PATH:$HOME/bin
11
12
export PATH
Copied!

.bashrc

This file loads everytime we start a new bash session.
.bashrc
1
# .bashrc
2
3
# User specific aliases and functions
4
5
alias login='kubectl exec -it'
Copied!
In case you could not log into the linux machine due to problems bash configuration file.
  1. 1.
    Press Ctrl+C immediately after login to prevent bash profile from loading.
  2. 2.
    A plain bash session opens. Correct the bash files. And login again.
Copy link
Edit on GitHub