Команда su

Become super user or another user.

Синтаксис

su [ - ] [ username [ arg ] ]

-Pass the environment along unchanged, as if the user actually logged in as the specified user.
usernameThe name of another username that you wish to log in as.
argAdditional arguments that need to be passed through the su command.

Примеры

su - hope - would login as the user hope as if the user hope actually logged in (process all login scripts etc...)

Обратно к списку команд