[Ilugc] One Day One Command

  • From: trshash84@xxxxxxxxx (T.R.Shashwath)
  • Date: Thu Jan 6 22:23:09 2005

...Including the ability to use a whole function definition in it...

alias something="foo() {
 echo $bar
}

and so on... It can be a whole program...

On Thursday 06 Jan 2005 2:56 pm, Bharathi S wrote:

One Day One Command :-
---------------------

alias - Create alias name for a command.

Summary:

alias is Bash build-in command. This is very useful to create a simple
alias for a complex/long/frequent commands. Once alias created, you
can use alias to call the original command. This alias are deleted
after closing the shell session. For the next session, you have create
it again. So avoid this problem, you add it in your .bashrc file.

Example:

alias  -- Prints all alias commands

alias ls="ls -F --color=always"
alias cls=clear

alias ls -- Print the alias' original command

Read: man bash

Bye :)

-- 
To know a thing well, know its limits. 
Only when pushed beyond its tolerances will true nature be seen.
--The Amtal Rule - Dune

Other related posts: