[glug-t] One Day One GNU/Linux Command (ALIAS)

One Day One GNU/Linux 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 to avoid this problem, you add it in your .bashrc file.

Example:

$ alias  -- Prints all alias commands

$ alias cls=clear -- Alias for new user from DOS world.

$ alias ls="ls -F --color=always" -- Alias long ls command.

$ alias mycd='cd a/b/c/d/e/f/h' -- Shortcut for long CD.

$ alias ls -- Print the alias' original command.

$ \ls -- Skip alias and run the original command.

Read: man bash or help alias

HTH :)
-- 
Bharathi S

---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: