当前位置: 技术问答>linux和unix
linux的系统管理
来源: 互联网 发布时间:2017-01-12
本文导语: • 1,创建一个文件date程序,要求运行/root/date时能显示“Hi,用户名,today is … Have a good day!” 同时要有注释。该怎么做? | #!/bin/bash echo "Hi, `whoami`, today is `date`, Have a good day!" | #! /bi...
• 1,创建一个文件date程序,要求运行/root/date时能显示“Hi,用户名,today is … Have a good day!” 同时要有注释。该怎么做?
|
#!/bin/bash
echo "Hi, `whoami`, today is `date`, Have a good day!"
|
#! /bin/bash
#file date
echo "Hi,`whoami`,today is `date` Have a good day!"
#file date
echo "Hi,`whoami`,today is `date` Have a good day!"