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 ‘)

  1. Save your changes and close the file.
  2. 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. :-)

  1. 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

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2011 Campbell Gunn Suffusion theme by Sayontan Sinha