Nethence NEWDOC OLDDOC Lab Webmail Your IP BBDock  

Tweak your environment

Add $HOME/bin/ (careful with the escape) to your PATH,

#ubuntu
cp -pi /etc/environment /etc/environment.dist
cat > /etc/environment <<-EOF
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:\$HOME/bin"
EOF
source /etc/environment

Provide handy command aliases,

#centos
cp -pi /etc/bashrc /etc/bashrc.dist
config=/etc/bashrc

#ubuntu
cp -pi /etc/bash.bashrc /etc/bash.bashrc.dist
config=/etc/bash.bashrc

#common depends on $config
cat >> $config <<-EOF
alias ll='ls -alhF'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
alias runq='postfix flush'
alias netstata='netstat -antpe --inet --inet6'
EOF
source $config
unset config