http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
发布时间:2011-10-13 18:29:02
# Name: bigfiles# Purpose: Use the find command to find any files in the root # partition that have not been modified within the past n (any # number within 30 days) days and are larger than 20 blocks # (512-byte blocks)if (( $# != 2 )) .........【阅读全文】
发布时间:2011-10-13 17:51:13
# .bash_profile# The file is sourced by bash only when the user logs on. # Get the aliases and functionsif [ -f ~/.bashrc ]; then . ~/.bashrcfi # User-specific environment and startup programs PATH=$PATH:$HOME/binENV=$HOME/.bashrc # or BASH_EN.........【阅读全文】
发布时间:2011-10-13 17:48:15
# /etc/profile# Systemwide environment and startup programs# Functions and aliases go in /etc/bashrcPATH="$PATH:/usr/X11R6/bin"PS1="[\u@\h \W]\\$ "ulimit -c 1000000if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then umask 002else umask 022fiUSER=`id -un`LOGNAME=$USER.........【阅读全文】
发布时间:2011-10-13 17:23:27
#!/bin/ksh# Scriptname: trapping# Script to illustrate the trap command and signals# Can use the signal numbers or ksh abbreviations seen# below. Cannot use SIGINT, SIGQUIT, etc.trap 'print "Control-C will not terminate $PROGRAM."' INTtrap 'print "Control-\ will not terminate $PROGRAM."' QUI.........【阅读全文】