PSk*_*cik 7 linux bash shell rsync
rsync是一个登录到其他机器的非交互式程序。它不需要用于交互式 shell 会话的 init 文件,并且绝对需要用于登录 shell 的 init 文件。或者我会这么认为。
rsync
然而.bashrc被阅读.profile却没有(除非我让.bashrc自己阅读.profile)。为什么?
.bashrc
.profile
小智 8
rsync本身并没有读你的~/.bashrc。但是它调用ssh targethost rsync ...,它将连接到一个sshd,而后者又将启动您的外壳程序 ( bash)。
~/.bashrc
ssh targethost rsync ...
sshd
bash
为什么bash现在读取你~/.bashrc的在为什么我的 .bashrc 在我通过 ssh 运行非交互式命令时被读取中解释了
归档时间:
10 年,2 月 前
查看次数:
1044 次
最近记录: