Linux自学存根

来源:互联网 发布:tensorflow 集成显卡 编辑:程序博客网 时间:2024/04/29 12:57

********************************************************************************************************

 

Shell编写注意

 

read使用

 

read -p 可输入提示语言

read -t 键盘输入响应时间

 

例: read test

 

     this is test  #用户键盘输入

 

  echo $test   #显示为:this is test(相当于用户自己输入一个变数)

 

read -p "Please input name :" -t 30 named #显示为:please input name:wtk(30秒内输入名字)

 

也就说:named=wtk   echo $named   

 

 

 

rpm命令