All over the internet you see this commands
alias hello='echo Hello'
Yes, I know the above is a lame example, but it's beside the point. If I execute that, it works. But when I restart my computer, it is lost. Why? a bug with the alias command? Why would it only work until a restart is executed?
Thanks
You will need to write it into your ~/.bashrc
like
echo "alias hello='echo hello'" >> ~/.bashrc
This appends the string to your .bashrc
and will be read when you start a bash
in xterm or even pure command line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With