리눅스 사용자 기본 환경 설정
1. .vimrc
set number
set laststatus=2
set hlsearch
set smartcase
set smartindent
set showmatch
set cindent
set tabstop=8
set shiftwidth=4
set softtabstop=4
" -- Function Key
map gT
map gt
map :tabe .
2. .bash_profile
export PS1='\n\u@\H [ \[\033[01;42m\] \w \[\033[00m\] ] <`date +"%F(%a) %H:%M"`>\n\! \$ '
export EDITOR=vim
alias ko='export LANG=ko_KR.UTF-8'
alias en='export LANG=en_US.UTF-8'
hname=`hostname`
echo ""
echo ""
echo "<< $hname >>"
echo ""
echo ""
echo -e "Kernel Details: " `uname -smr`
echo -e "`bash --version`"
echo ""
echo -ne "Uptime: "; uptime
echo -ne "Server time : "; date
echo ""
lastlog | grep $LOGNAME | awk {'print "Last login from : "$3
print "Last Login Date & Time: ",$4,$5,$6,$7,$8,$9;}'
echo ""
df -h
댓글
댓글 쓰기