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
#syntax
alias name=value
alias name='/path/to/script.sh arg1'
e.g.
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
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
#syntax
alias name=value
alias name='/path/to/script.sh arg1'
e.g.
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