linux命令集合

打jar包命令

jar cf xxx.jar -C com . -C org . -C rtx .(执行需要在上级目录执行 否则com这种文件夹会打不进去将文件夹里面的内容打到jar包中)

查找时间段之间修改的文件 拷贝到新路径下

find /path/to/source -type f -newermt 2024-10-08 ! -newermt 2024-10-09 -print0 | xargs -0 rsync -av --remove-source-files --include=‘’ --exclude='/’ /path/to/destination

** find /opt/ahjw/upload -type f -newermt 2023-09-19 ! -newermt 2023-10-11 -print0 | xargs -0 rsync -av --remove-source-files --include=‘’ --exclude='/’ /opt/ahjw/uploadnew**

find /opt/ahjw/upload -type f -newermt 2023-09-01 ! -newermt 2024-10-02 -exec cp {} /opt/ahjw/uploadnew ;

find “/opt/ahjw/upload” -type f -newermt “2023-09-01” ! -newermt “2024-10-02” -print0 | \ xargs -0 -I {} rsync -av --relative {} “/opt/ahjw/uploadnew”

授权可执行文件

chmon +x xxx.rpm

安装rpm包

sudo rpm -ivh xxx.rpm

下载rpm包 指定路径/opt/wk

sudo yumdownloader --destdir=/opt/wk xorg-x11-fonts-75dpi

发送请求

链接: curl -X POST -H “Content-Type: application/json” -d ‘{“method”:“xxxx”,“jgdz”:“xxx”,“nf”:“2024”}’ http://ip:port/xxxx/xxxx

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值