摘要: 1.首先介绍一下这个几个参数的意义: $#:传入脚本的参数个数; $0: 脚本自身的名称; $1: 传入脚本的第一个参数; $2: 传入脚本的第二个参数; $@: 传入脚本的所有参数; $*:传入脚本的所有参数; $$: 脚本执行的进程id; $?: 上一条命令执行后的状态,结果为0表示执行正常,结 阅读全文
posted @ 2020-05-21 12:01 MR__Wang 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 1、tools目录文件结构 [root@www tools]# tree tools/ tools/ ├── bin │ ├── del_history_files │ └── etc ├── del_history_files.cfg 2 directories, 2 files 2、删除历史文件 阅读全文
posted @ 2020-05-21 10:17 MR__Wang 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: 1、tools目录文件结构 [root@www tools]# tree tools/ tools/ ├── bin │ └── gzip_history_files └── etc └── gzip_history_files.cfg 2 directories, 2 files 2、压缩历史文件 阅读全文
posted @ 2020-05-21 10:14 MR__Wang 阅读(1961) 评论(0) 推荐(0) 编辑