Sunday, July 23, 2017

Language: Shell ( 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
#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

Laboratory tools and reagents (Micro-pipettes)...

Micro-pipettes are essential tools of R & D labs, and integral part of Good Laboratory Practices (GLPs) Micro-pipetting methods include ...