After looking around on the Internet, I found a site that provides exactly what I am looking for.
Namely, creating an alias, as I am swapping from different operating systems and still put the wrong commands in.
So, I know how to do an alias, but the step I always forget is to reload my profile settings.
Here is a quick blurb, for those who have not used the command before.
1. First we edit/create a profile. For a normal user do:
pico /etc/profle
…or if you are not a root/superuser do:
pico ~/.profile
2. Add your alias like so to the file:
alias aliasname=’mycommand /path/path’ , I usually put in alias cls=‘clear’ as an example.
(notice no space between equal sign and ‘)
- Save your changes and close the file.
- Load/reload your profile with:
. /etc/profile
…or if you are not a root/superuser do:
. ~/.profile
*Note: the last file is probably already there as a normal user. Also this is the step I always forget.
- If you are using root/sudo you will need to use sudo -i in order to load the profile upon login (more info about this here).
6. Done.
-Later
