给当前文件夹下所有文件添加.bak后缀 ll | awk '{print $9}' | grep -v '^[ ]*$' |sed -r 's#(.*)#mv \1 \1.bak#g'|bash 把当前文件夹下所有.bak后缀的文件,将.bak后缀删掉,并替换 ll | awk '{print
即可撤销 git stash pop 操作,将当前分支状态恢复。 git stash 暂存区的记录也不会被删除,可通过 git stash show 查看。 git reset --hard
如何依赖下载rpm包,已VIM 为例。 安装yumdownloader yum install yum-utils 下载vim的rpm依赖包 yumdownloader --resolve --destdir=./ packageName 将rpm传到其他机器上,依赖安装rp
编辑文件 vim /etc/apt/sources.list 添加镜像源 deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free 更新apt apt-get update
查看已启动的服务列表: systemctl list-unit-files | grep enabled 查看启动失败的服务列表: systemctl --failed 配置 firewalld-cmd 查看firewalld-cmd 查看所有打开的端口: firewall-cmd --zone=public --list-ports 更新防火墙规则: firewall-cmd
分别打包每个目录 排除日志、缓存、Jar解压的文件、脚本、data、json文件。 ls -d 目录名.. | xargs -I {} tar -zcvf {}.tar.gz {} --exclude=logs --exclude=*log* --exclude=*.hprof --exclude=*.bak --exclude=*.json --exclude=*.json --exclude-caches-all --exclude-caches --exclude-backups --exclude-vcs --exclude=BOOT-INF --exclude=META-INF --exclude=org --exclude=*.data --exclude=*.sh
HTTP ports supported by Cloudflare: 80 8080 8880 2052 2082 2086 2095 HTTPS ports supported by Cloudflare: 443 2053 2083 2087 2096 8443
尝试再防火墙加入此配置 首先在 /etc/config/firewall 文件最后添加如下规则: config rule option target 'ACCEPT' option name 'Allow-OpenVPN-Wan-Inbound' option src 'wan' option proto 'udp' option dest_port '1194' 然后在 /etc/firewall.user 文件最后添加如下规则: iptables -t nat -A prerouting_wan_rule -p udp --dport 1194 -j ACCEPT iptables