> 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" />
红联Linux门户
Linux帮助

linux 下在文件后追加文本

发布时间:2007-12-13 11:59:08来源:红联作者:uzrcgunr
要追加文本 "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/...........
文章评论

共有 1 条评论

  1. gwpxjb 于 2007-12-13 18:00:04发表:

    学习~~