cat /root/.bashrc
vi /root/.bashrc
# .bashrc
# User specific aliases and functions
alias gm='cd /var/www/html/google/php'
alias pm='cd /var/spool/pmta'
alias ch='chmod 0777 '
alias chm='chmod 0777 *'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
#alias aip='ifconfig -a | grep -i 'inet addr:' | cut -d ':' -f 2'
alias c='cd /var/www/cgi-bin/'
alias h='cd /var/www/html/'
alias m='cd /var/www/html/mailrunner/'
alias v='cd /var/mail/'
alias pclear='perl /var/www/cgi-bin/pclear.pl'
alias pstart='perl /var/www/cgi-bin/pstart.pl'
alias pstop='perl /var/www/cgi-bin/pstop.pl'
alias mlog='tail -f /var/log/maillog'
alias plog='tail -f /var/log/pmta/log'
alias gp='while true; do pmta show topqueues | grep 'gmail.com'; echo "===";sleep 2; done'
alias p='ps -ef | grep php'
alias wc='wc -l'
alias plog='tail -f /var/log/pmta/log'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
source .bashrc -->to re-read
No comments:
Post a Comment