摘要: 以下参考https://www.cnblogs.com/zeq912/p/9593931.html 服务器端: 创建用户 useradd -M -s /sbin/nologin rsync-M:不要自动建立用户的登入目录。-s:指定用户登入后所使用的shell。默认值为/bin/bash。 用户名是 阅读全文
posted @ 2020-05-07 11:50 568353087 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 统计行数 统计单词数 统计字母数 阅读全文
posted @ 2020-05-07 11:45 568353087 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1、删除指定数据 find . -type f -mtime +14 -exec rm {} \; exec即execute,执行,后面经常跟ls、rm、mv、cp等 -exec {} \;是惯用的格式,花括号表示前面find执行的结果, 举例:find . -name "*.log" -exec 阅读全文
posted @ 2020-05-07 11:36 568353087 阅读(774) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/swordfall/p/8737328.html 阅读全文
posted @ 2020-05-06 15:24 568353087 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 参考以下链接 https¥www.cnblogs.com/abels0025/p/11430740.html 系统的整体优先级策略是:如果系统中存在需要执行的实时进程,则优先执行实时进程。直到实时进程退出或者主动让出CPU时,才会调度执行非实时进程。实时进程可以指定的优先级范围为1-99。 调度队列 阅读全文
posted @ 2020-05-06 14:46 568353087 阅读(1532) 评论(0) 推荐(0) 编辑
摘要: 安装crontabs yum install crontabs systemctl start crond systemctl enable crond 配置定时任务条目 crontab -e crontab -l [分钟] [小时] [每月的某一天] [每年的某一月] [每周的某一天] [执行的命 阅读全文
posted @ 2020-05-06 10:19 568353087 阅读(314) 评论(0) 推荐(0) 编辑
摘要: mkdir -p 可在已存在的目录下创建新的子目录 阅读全文
posted @ 2020-05-06 10:06 568353087 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-03 12:09 568353087 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-03 11:47 568353087 阅读(506) 评论(0) 推荐(0) 编辑
摘要: head查看头几行 tail查看后几行 阅读全文
posted @ 2020-05-03 11:20 568353087 阅读(99) 评论(0) 推荐(0) 编辑