Next: Extra built-in commands, Previous: Electric forward slash, Up: Optional modules [Contents][Index]
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.