Tweak your environment

on Ubuntu, add $HOME/bin/ to your PATH

cat /etc/environment
mv -i /etc/environment /etc/environment.dist
vi /etc/environment

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$HOME/bin"

source /etc/environment
echo $PATH
    cp -pi /etc/bash.bashrc /etc/bash.bashrc.dist
    vi /etc/bash.bashrc

on Debian, replace the whole root condition

update-alternatives --config editor
cp -pi /etc/profile /etc/profile.dist
vi /etc/profile

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$HOME/bin"

source /etc/profile
echo $PATH
    cp -pi /etc/bash.bashrc /etc/bash.bashrc.dist
    vi /etc/bash.bashrc

on RHEL/CentOS

cp -pi /etc/bashrc /etc/bashrc.dist
vi /etc/bashrc

and proceed with that handy setup

alias ll='ls -alhF'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'

alias neta='netstat -antup --inet --inet6'
alias netl='netstat -lntup --inet --inet6'
alias runq='postfix flush'
[[ -f /etc/slackware-version ]] && alias runq='sendmail -v -q'
alias lynxg='lynx -accept_all_cookies google.com/ncr'
alias lynx='lynx -accept_all_cookies'
alias push='git commit -a --allow-empty-message -m "" && git push'
alias commit='git commit --allow-empty-message -m ""'
alias stat='git diff --stat --cached origin/master'
alias findexec='find . -executable -type f'
alias ovs='ovs-vsctl'
alias irssi='echo did you start screen or tmux?'

export LANG=en_US.UTF-8
export LANGUAGE="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
[[ -f /etc/debian_version ]] && export DEBIAN_FRONTEND=noninteractive

#export TERM=linux
#export TERM=xterm-256color
export TERM=xterm
export EDITOR=vi
export PAGER="less -r"

export MAKEFLAGS=-j$((`grep ^processor /proc/cpuinfo | tail -1 | awk '{print $3}'` + 1))

apply

source /etc/bash.bashrc
source /etc/bashrc

Additional notes

unix2date

GNU

date -d @timestamp

BSD/OSX

date -r timestamp

Resources

http://www.robmeerman.co.uk/unix/256colours


HOME | GUIDES | BENCHMARKS | html