随笔分类 -  Linux

Linux related
摘要:指定位置后插入行 sed -i '/match reg/a\line1\nline2' target.txt 指定位置前插入行 sed -i '/match reg/i\line1\nline2' target.txt 阅读全文
posted @ 2018-08-08 10:58 lennyT 阅读(229) 评论(0) 推荐(0)
摘要:一、服务端 1、设置rsync配置文件 max connections = 10 pid file = /home/user/rsync/rsyncd.pid lock file = /home/user/rsync/rsyncd.lock log file = /home/user/rsync/r 阅读全文
posted @ 2018-07-05 19:56 lennyT 阅读(526) 评论(0) 推荐(0)