feed-image  Delivered by FeedBurner  ISSN 1836-5930





Poll

Which of following tutorials would you like to see on the Linuxconfig.org?
 
Partner Linux Sites
TuxMachines
DebianAdmin
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
FreeSoftwareLinux
Jam's Ubuntu Blog
All For Linux

alias
Article Index
1. Name
2. Examples

1. Name

alias - create names or abbreviations for commands

2. Examples

Can be used to correct our typos on bash command line. Create sl command to list directory:
$ alias sl=ls 
correct typos on bash command line with alias
create new customized commands:
$ alias estcon="netstat -ant | grep ESTABLISHED" 
create new customized bash commands with alias
or abbreviations:
$ alias ls="ls --file-type" 
create abbreviations to bash commands with alias
NOTE: to unalias your commands you can use unalias command.
$ unalias ls 
However creation of aliases with alias command is temporary just for current terminal session. To make alias permanent consult ~/.bashrc file. To make changes pernament edit your ~/.bashrc file and add line similar to this:
alias ls="ls --file-type"