am on a Kali box and ~/.bash_profile doesn't seems to work in Kali. Is it called by some other filename in Kali?
~/.bash_profile will be used by the
bash shell if it is invoked as a login shell.
If the file does not exist (it does not need to exist), then it may be created by a user.
If the shell is not
bash, or if the
bash shell is not a login shell (such as it won't be if it's used for running a script or starting an interactive non-login shell session), then the file will not be used.
Other shells may read
~/.profile for login shells, and
bash does this too if
~/.bash_profile does not exist.
To figure out what shell you are using for your login shell, use
getent passwd username
username is your username. The login shell will be the last
:-delimited item in the resulting line.
$ getent passwd myself myself:*:1000:1000:Kusalananda,,,:/home/myself:/usr/local/bin/zsh
This means my login shell is
Note that your choice of Linux distribution has very little (nothing) to do with whether
~/.bash_profile is used or not. It is your choice of login shell that determines this.