06 2016 档案

摘要:一、Running Commands and Getting Help 1、设置系统时间 [root@localhost ~]# date -s 06/29/2016 Wed Jun 29 00:00:00 2016 [root@localhost ~]# date -s 18:21:30 Wed Jun 29 18:21:30 2016 [root@localhost ~]# ... 阅读全文
posted @ 2016-06-29 23:46 skyfly0772 阅读(371) 评论(0) 推荐(0)
摘要:Bash变量 •变量=值 •引用方式为:$变量 [root@localhost Desktop]# HI="Hello,and welcome to $(hostname)." [root@localhost Desktop]# echo $HI Hello,and welcome to localhost.localdomain. [root@localhost Desktop]# ... 阅读全文
posted @ 2016-06-28 23:53 skyfly0772 阅读(157) 评论(0) 推荐(0)
摘要:[root@localhost test]# cat test.sh #!/bin/bash #test echo "hello, world." echo "hello, ${1}." [root@localhost test]# ./test.sh Jay hello, world. hello, Jay. [root@localhost test]# echo $SHELL... 阅读全文
posted @ 2016-06-28 15:52 skyfly0772 阅读(162) 评论(0) 推荐(0)