1.创建文件夹脚本:
#!/bin/bash #mkdir mkdir /home/img/pages/savedpictures/mission/xinlangweibo/$1
2.查询文件夹是否存在:
#!/bin/bash #find dir folder="/home/img/pages/savedpictures/mission/xinlangweibo/$1/" if [ ! -d "$folder" ]; then #no echo 0 else #yes echo 1 fi
3.删除指定文件夹:
#!/bin/bash #deletedir rm -rf /home/img/pages/savedpictures/mission/xinlangweibo/$1
4.计算内存大小:
#!/bin/bash #count disk df -m