An alias, such as ll
is defined with the alias
command.
I can check the command with things like type ll
which prints
ll is aliased to `ls -l --color=auto'
or command -v ll
which prints
alias ll='ls -l --color=auto'
or alias ll
which also prints
alias ll='ls -l --color=auto'
but I can't seem to find where the alias was defined, i.e. a file such as .bashrc
, or perhaps manually in the running shell. At this point I'm unsure if this is even possible.
Should I simply go through all files that are loaded by bash
and check every one of them?
bash -xl