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 ~]# ...
阅读全文
摘要:Bash变量 •变量=值 •引用方式为:$变量 [root@localhost Desktop]# HI="Hello,and welcome to $(hostname)." [root@localhost Desktop]# echo $HI Hello,and welcome to localhost.localdomain. [root@localhost Desktop]# ...
阅读全文
摘要:[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...
阅读全文
浙公网安备 33010602011771号