How do I create a permanent alias?
I tried this:
1. sudo nano ~/.bashrc
2. Then added this line:
alias myip="wget -qO- http://ipecho.net/plain ; echo"
When I run myip nothing happens.
But if I run: myip="wget -qO- http://ipecho.net/plain ; echo" in the terminal then myip it works good.
What am I missing?
I tried this:
1. sudo nano ~/.bashrc
2. Then added this line:
alias myip="wget -qO- http://ipecho.net/plain ; echo"
When I run myip nothing happens.
But if I run: myip="wget -qO- http://ipecho.net/plain ; echo" in the terminal then myip it works good.
What am I missing?