BBS水木清华站∶精华区

发信人: wshu (树上的老虎), 信区: Unix 
标  题: .logout的文件格式 
发信站: BBS 水木清华站 (Sat May 31 12:17:33 1997) 
 
.logout 档记录了你 logout 时要做哪些事的 shell script 
 
以下是 SUN 的□例 /usr/lib/Logout 
========================================================================= 
# @(#)Logout 1.3 88/02/08 SMI 
############################################################ 

#         .logout file 

#         Read in when you exit from the login shell. 
#         For performing housekeeping while your are away. 

############################################################ 
 
 
clear 
#echo "`hostname`: `whoami` logged out at `date`" 
#echo "Goodbye\!" 
 
#if (-e /usr/games/fortune) /usr/games/fortune -a 
#if (-r /etc/motd) cat /etc/motd 
 
#unalias rm 
#nice find ~ '(' -name core -o -name '*.BAK' -o -name '*.CKP' \ 
#         -o -name '#*' -o -name junk ')' \ 
#         -atime +3 -mtime +3 -user $USER -type f -exec \rm '{}' \; & 
 
-- 
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.18.6] 

BBS水木清华站∶精华区