http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
发布时间:2011-10-13 21:15:57
#!/bin/bash# Scriptname: nosyecho -e "Are you happy? \c"read answerecho "$answer is the right response."echo -e "What is your full name? \c"read first middle lastecho "Hello $first"echo -n "Where do you work? "readecho I guess $REPLY keeps you busy!read -p "Enter your job title: ".........【阅读全文】
发布时间: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.........【阅读全文】