Wikia

How To Wiki

Watchlist Recent changes

How to add remove or view an alias in unix



Aliases of commands are used to make life easier by shortening commands the user uses often, and becomes tedious to type the entire command

StepsEdit

to create an alias

  • for csh,tcsh: alias ls ls -a
  • for ksh: alias -x ls="ls -a"
  • for ksh: alias ls="ls -a"

to view an alias

  • execute: alias Alias_Name

to remove an alias

  • execute: unalias Alias_Name

to make an alias permanent put in your shells startup script ie. ~/.bashrc ~/.bash_profile ~/.profile

See: Howto configure bash startup scripts

ExamplesEdit

Pages on How To Wiki

Add a Page
1,748pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
2,506photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki