One Day One Cmd

Place for playing with commands…

Day 42: $ alias

ODOC: bala@bala:~ /home$ alias sl=ls
create names or abbreviations for commands. Alias can be used to correct our typos on
shell command line. For example we can create sl command to simulate ls command:

Ex:
$ alias sl=ls

NOTE: to unalias your commands use unalias command.
$ unalias ls

However, creation of aliases with alias command is temporary just for current terminal session.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: