Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

find /home/docker/volumes/.../_data/backups -maxdepth 1 -type f -name "backup*" -ctime -2 | xargs -i sudo cp -rf {} /home/admin/confluence_backups

查找

cat  logs/smart/otherdays/eventbus.*.logger logs/smart/eventbus.logger  | grep 2019-07-2[2,3,4,5,6].*send.*ShipmentDeliveredthe | gawk 'match($0,/referId":([0-9]+,)/,a) {printf a[1]}'

以上命令查找referId":后面的数字,然后打出来,用printf不换行,用print会换行

 

其他命令

命令说明备注
sudo gpasswd -a user1 docker将user1加入到docker用户组 
rz/sz通过ssh终端下载/上传文件 

...