linux 下在文件后追加文本

linux 下在文件后追加文本

要追加文本  "testing" 到 置顶的文件

echo "testing "  >> filename;

server端配置 /etc/rsyncd.conf 文件

[root@ etc]# cat rsyncd.conf
log file=/var/log/rsyncd.log
uid = nobody
gid = nobody
hosts allow = 1.1.0.0/16
max connections = 10
use chroot = true

[aa]
comment = this is testing
path = /root/test
read only = true
list = true

客户端拷贝文件
/usr/bin/rsync -auqz  server ip 地址 ::aa/..... /root/...........
学习~~