![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
[纳川]
日拱一卒无有尽,功不唐捐终入海
展开
-
linux创建定时任务
vim /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details see man 4 crontabs # Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 3原创 2021-04-21 21:10:56 · 128 阅读 · 0 评论 -
Linux shell 常用命令
没有创建文件 [root@iZpees9x4h85klZ ~]# touch 1.txt 精确匹配文字 [root@iZpees9x4h85klZ ~]# echo 'jdjdjdj word lddl wod wor ' > 1.txt [root@iZpees9x4h85klZ ~]# ls 1.txt [root@iZpees9x4h85klZ ~]# grep -w 'word' 1.txt jdjdjdj word lddl wod wor [root@iZpee原创 2020-11-23 22:10:22 · 176 阅读 · 0 评论 -
linux 常用命令 shell脚本
ntpdate cn.ntp.org.cn原创 2020-11-22 10:52:08 · 1096 阅读 · 0 评论 -
shell 启动springboot脚本
#!/bin/env bash #version_name=$(date +%Y%m%d_%H%M) #目标文件夹名 targer_dir_name=test1 #目标文件名 targer_file_name=test2 #源文件夹 source_dir=/root/dir #启动日志打印行数 tail_num=200 jar_version=$1 #如果目录不存在直接创建 if [[ ! -d /opt/setup/$targer_dir_name/log ]] then mkdir -p /o.原创 2020-11-22 23:58:25 · 381 阅读 · 0 评论