Thursday, April 24, 2008

Clear Console after logout

เครื่อง server ไม่ใช้โหมดกราฟฟิก ผมอยากให้เคลียร์หน้าจอเวลา logout ก็ไปเขียนไว้ในไฟล์ .bash_logout
#~/.bash_logout: executed by bash(1) when login shell exits.

# when leaving the console clear the screen to increase privacy

if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi
ก็ยังไม่ค่อยรู้ว่าหมายความว่าอะไร เพราะว่าลอกมาจาก ubuntu พอรู้คร่าว ๆ ว่าสั่ง clear_console เท่านั้นเอง :-p

No comments: