System/Linux
/etc/profile 예시
linuxism
2011. 10. 5. 11:33
SWOS# more /etc/profile
#!/bin/sh
export VISUAL=emacs
stty erase
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
export TERM=vt100
export PS1=`hostname`'# '
export PS2='>'
export PS4='+'
if [ -f /conf/TIMEZONE ] ; then
export TZ=`cat /conf/TIMEZONE`
fi
bind '^I'=complete
# bash will terminate after 600 seconds idle time - no input
export TMOUT=3600
alias ls='ls -F'
alias l='ls -alF'
alias rm='rm -i'
alias h=history
alias run='/etc/secureworks start'
alias stop='/etc/secureworks stop'
alias dir='ls -alF'
alias sw='cd /opt/SECUREWORKS/current/'
# make core files by default
ulimit -S -c unlimited > /dev/null 2>&1