一、編寫腳本 createuser.sh,實現以下功能:使用一個用戶名作爲參數,若是 指定參數的用戶存在,就顯示其存在,不然添加之;顯示添加的用戶的id號等信息

二、編寫生成腳本基本格式的腳本,包括做者,聯繫方式,版本,時間,描述等


三、查找/etc目錄下大於1M且類型爲普通文件的全部文件
find /etc -type f -size +1M shell
四、打包/etc/目錄下面全部conf結尾的文件,壓縮包名稱爲當天的時間,並拷貝到/usr/local/src目錄備份。

五、查找當前系統上沒有屬主或屬組,且最近一個周內曾被訪問過的文件或目錄
find / ( -nouser -o -nogroup ) -atime +7 ide
六、查找/etc目錄下至少有一類用戶沒有執行權限的文件
find /etc -perm /111blog