Lets say someone sits behind my laptop for a second and runs:

```bsh
alias cd='Ha Ha, Got You :))'

```

or we run an unknown software/script/etc and it appends something to `~/.bashrc`. like:

```bsh
alias sort='rm -rf ~'

```

These are only examples of `aliases`; As you know, these things also can be done using functions:

```bsh
 cd(){ echo "Removing everything you've got :D"; }

```

*These situations are just imaginary examples, consider anything similar.*

What about a small script?

```bsh
sudo -n ls &>/dev/null
if [ "$?" -eq "0" ]
 then
  sudo "Some dangerous command"
 else
  cd $1
fi

```

Then `alias cd="/home/user/.config/gtk/.cd.sh"`.

For the commands which have been ran in bash we can simply close and reopen our terminal, but what about the ones that been set in startup files, we can't check the files or list of aliases/functions every single time we run a terminal.