![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
王小白杂货店
这个作者很懒,什么都没留下…
展开
-
shell定时任务
#crond定时方式的配置 vim /etc/crontab #在最后一行加上定时任务的配置 #每分钟执行一次 */1 * * * * root /usr/local/shell/test.sh #修改crontab的配置后需要重启crontab,使配置生效 /bin/systemctl restart crond.service #检测cron定时服务是否自启用 systemctl is-enabled crond.service #enable表示已启用自启动 #disable标识未启用自启动 #启动转载 2022-04-07 16:48:24 · 433 阅读 · 0 评论 -
linux常用命令
1、查看占用空间 du -h -x --max-depth=1 可查看到当前文件夹下每个文件或文件夹的存储空间 2、拷贝 1、跨服务器拷贝 scp test.txt root@10.11.11.2:/usr/local 2、重命名 mv test.txt test1.txt 3、拷贝一份相同的文件 cp test.txt test1.txt ...原创 2022-04-06 11:05:27 · 878 阅读 · 0 评论