Wednesday, January 6, 2016

Shell (7): Alias and .bashrc...........

Terminal normally starts the shell via /usr/bin/login
put source ~/.bashrc
source ~/.bashrc

#For adding features to ~/.profile
echo 'source $GROUPHOME/.config/xx-rc' >> ~/.profile

#alias is nothing but shortcut to commands that is written in ~/.bashrc file
#To see existing aliases
alias name=value
alias name='/path/to/ arg1'
alias c='clear
alias .4='cd ../../../../'
alias .5='cd ../../../../..' 
alias info='pinfo'
alias vi='vim'
alias grep='grep --color'

alias update='yum update'

#Unalias an alias
unalias c
unalias aliasname

No comments:

Post a Comment