Chinaunix首页 | 论坛 | 博客
  • 博客访问: 335164
  • 博文数量: 214
  • 博客积分: 4258
  • 博客等级: 上校
  • 技术积分: 2021
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-02 09:16
个人简介

http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net

文章分类

全部博文(214)

文章存档

2018年(16)

2015年(1)

2014年(2)

2012年(22)

2011年(173)

发布时间: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: ".........【阅读全文】

阅读(225) | 评论(0) | 转发(0)

发布时间:2011-10-13 20:19:47

echo  "Are you o.k. (y/n) ?"read answerif [ "$answer" = Y -o "$answer" = y ] then                        echo  "Glad to hear it."fiif [ $answer = Y -o "$answer" = y ] [.........【阅读全文】

阅读(192) | 评论(0) | 转发(0)

发布时间: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 ))         .........【阅读全文】

阅读(223) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(255) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(194) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册