>_
linuxcommand.dev
Home
Roadmap
Contact
EN
Dark
>_
>_
linuxcommand.dev
Home
Roadmap
Contact
Legal Notice
Privacy Policy
Language
DE
EN
Design
Dark
Startseite
›
su
User Management
su
Switch user or to root shell.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Last updated:
2025-09-09
Report error
Syntax
Copy
$
su [USER]
Examples
Examples
$
su -
Examples
$
su john
Typical use cases
Standard usage
su --help
Detailed Help
man su
Note
With '-' loads the login environment of the target user.
Export
Text
JSON
Script