rsync命令参数:
在 header.php 添加以下代码 <!-- 图片放大 --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fan…
我们知道grep是查找命令,这是最基础的用法,那其他用法呢,这里记录2个 //反向查找 //查找test.txt文件中 不包含aa的行 grep -v "aa" test.txt //匹配多个 //查找test.txt中不包含aa和bb的行 grep -vE "…
本文转自【美团技术团队】公众号原文链接:https://mp.weixin.qq.com/s/JC51S_bI02npm4CE5NEEow
这里面其实是有2个关键点 首先要获取到某个目录下的所有文件名称 然后再对名称进行截取 具体代码如下#!/bin/bash cd ~ for file in $(ls ) do echo $file echo ${file%-} do…
如何将Nginx的某个端口配置到某个域名上 例如我要将9000端口配置到 leanote.hupc.site这个域名上upstream leanote.hupc.site{ server localhost:9000; } server{ listen&nb…
修改nginx.conflog_format main '$http_x_forwarded_for $remote_addr - $remote_user [$time_local] "$request" ' '$statu…
如何用curl分析URL请求时间: curl -o /dev/null -s -w %{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{speed_download}"\n" "https://hupc.site/?p…
linux查看指定用户的crontabcrontab -l -u username
查找符合条件的文件并删除 找到test开头的文件并删除 find -name 'test*' | xargs rm -rf 如果指定递归深度 需要-maxdepth参数 find -maxdepth 3 -name 'test*' | xargs rm -rf