shell scripts

read 变量 /变量读取

例:#read name

my name is lcx

    #echo $name

    #my name is lcx 

    -p 后面可以接命令提示符

    -t 后面可以接等待时间(秒数)


declare / typeset 宣告变量类型

  declare -a  定义变量为数组(array)

  declare -i  定义变量为整数

  declare -x  定义变量为环境变量  相当于 export

  declare -r   定义变量为只读类型  不能unset

 


ulimit 

 查看文件系统与程序的限制关系

  ulimit -a 

  ulimit -f 10240k 限制文件的大小          


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章