Tramp extensions (Eshell: The Emacs Shell)

Next: , Previous: , Up: Optional modules [Contents][Index]


7.1.4 Tramp extensions

This module adds built-in commands that use Tramp to handle running other commands as different users, replacing the corresponding external commands. To enable it, add eshell-tramp to eshell-modules-list.

su [- | -l] [user]

Uses TRAMP’s su method (see Inline methods in The Tramp Manual) to change the current user to user (or root if unspecified). With -, -l, or --login, provide a login environment.

sudo [-u user] [-s | command…]
doas [-u user] [-s | command…]

Uses TRAMP’s sudo or doas method (see Inline methods in The Tramp Manual) to run command as root via sudo or doas. When specifying -u user or --user user, run the command as user instead. With -s or --shell, start a shell instead of running command.

AltStyle によって変換されたページ (->オリジナル) /