文件操作 - csh.login
返回文件管理
返回主菜单
删除本文件
文件: /etc/csh.login
编辑文件内容
# /etc/csh.login # System wide environment and startup programs, for login setup if ( ! ${?PATH} ) then if ( $uid == 0 ) then setenv PATH "/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin" else setenv PATH "/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin" endif else #add sbin directories to the path foreach p ( /usr/local/sbin /usr/sbin ) switch (":${PATH}:") case "*:${p}:*": breaksw default: if ( $uid == 0 ) then set path = ( ${p} ${path:q} ) else set path = ( ${path:q} ${p} ) endif breaksw endsw end unset p endif setenv HOSTNAME `/usr/bin/hostname` set history=1000 if ( -d /etc/profile.d ) then set nonomatch foreach i ( /etc/profile.d/*.csh ) if ( -r "$i" ) then if ($?prompt) then source "$i" else source "$i" >& /dev/null endif endif end unset i nonomatch endif
修改文件时间
将文件时间修改为当前时间的前一年
删除文件