[ILUGC] GNU/Linux commands - alias

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Tue, 30 Aug 2016 10:12:44 +0530

Hi

alias :  alias command is simple string substitution of one text for
another.
           but it is temporary till current shell is closed .

# alias name='unix command with options'

   alias is shell buit-in
   name any user defined simple string/name for the alias
   any command with options

# alias

list all alias

# alias c='clear'

creating alias for " clear " command

# alias h='history'

alias for history command

# alias x = 'exit'

alias for exit command

# alias lsc='ls;c'

alias for list and clear

# alias dir="ls -al | grep ^d"

# alias p="pwd"; l="ls -al"

# alias a="gedit /etc/apache2/apache2.conf"

# alias port='netstat -tulanp'

regards,

T.Dhanasekar


_____________________________________
ILUGC List: http://www.freelists.org/list/ilugc
ILUGC Web: http://ilugc.in/

Other related posts:

  • » [ILUGC] GNU/Linux commands - alias - Dhanasekar