开发者

Invoking su in emacs' eshell

开发者 https://www.devze.com 2023-02-04 06:30 出处:网络
I can run normal linux commands in eshell as a non-root user. When I try to su to root, all the usual linux commands are gone (ls, cat, etc.) How开发者_StackOverflow中文版 do I fix this?One way is to

I can run normal linux commands in eshell as a non-root user. When I try to su to root, all the usual linux commands are gone (ls, cat, etc.) How开发者_StackOverflow中文版 do I fix this?


One way is to use tramp:

cd /su::/etc/
ls

then eshell will run command "remotly" using su.

After testing, it seem that ls do work, but there is a problem with some (but not all) external command.

0

精彩评论

暂无评论...
验证码 换一张
取 消