Chinaunix首页 | 论坛 | 博客
  • 博客访问: 22380
  • 博文数量: 6
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 45
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-21 13:14
文章分类

全部博文(6)

文章存档

2013年(6)

我的朋友

发布时间:2013-03-15 15:57:04

KronShell提供了四种方法来对比两个值: 1. [[ ]] —  比较字符串2. (( )) — 比较数字3. test command — 支持Bourne shell 和KornShell 4. []— 支持Bourne shell 和 KornShell例1:if [[ “$response” = “Yes” ]]thenprint “Okay, we’re going ahead.”fi.........【阅读全文】

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

发布时间:2013-03-15 15:02:21

1.>  将目标文件清空后输出Example$ set -o noclobber # 防止覆盖文件$ date > whofilewhofile: file already exists$ date >| whofile$ cat whofileThu Feb 1 13:38:36 EST 1998$ set +o noclobber # clear noclobber$ date > whofile$ cat whofileThu Feb 1 14:22:17 EST 19982.>> 追加输出到目.........【阅读全文】

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

发布时间:2013-03-15 14:37:25

1.history ,用来显示最新执行的15条命令。例:$ history40      cd ~gorden41      ls42      ls [xyz]*43      ls [xyz]?44      ls45      .........【阅读全文】

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

发布时间:2013-03-15 14:21:02

解释1.双引号““,使包含在里边的字符串失去意义,不起作用,除了四个字符$ ` " 和\外。2.单引号 ` `,使包含在里边的字符串失去意义,不起作用。3.反斜杠 \,使紧跟在 \后面的字符正常显示,转义符。1.Example$ s=“hello” # assign a value to a variable$ print “$s” # output the value of the variablehel.........【阅读全文】

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

发布时间:2013-03-06 16:58:15

1、在系统中查看网卡的物理位置:  方法1:用命令#lscfg -vpl ent*逐个查看。  方法2:用diag命令进行查看:         #diag-- Task Selection--Local Area Network Analyzer--回车      2、在系统中确认网卡的物理位.........【阅读全文】

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

登录 注册