non-interactive mode下PATH不全 ssh username@desktop.domain ‘command’这种是典型的non-interactive shell,PATH不全. 原因 Linux系统中一种常用的判断是否是交互shell的方式就是通过PS1变量,虽然还有其他的方式,不过现在.bashrc中是通过PS1来判断是否为interactive …
non-interactive mode下PATH不全 ssh username@desktop.domain ‘command’这种是典型的non-interactive shell,PATH不全. 原因 Linux系统中一种常用的判断是否是交互shell的方式就是通过PS1变量,虽然还有其他的方式,不过现在.bashrc中是通过PS1来判断是否为interactive …
讨论
登录后参与讨论
还没有评论,来说第一句吧。