rm 删除指定目录外所有的目录 # shopt -s extglob (打开extglob模式) # rm -fr !(file1) # shopt -u extglob (关闭extglob模式) 无可奈何花落去,似曾相识燕归来