
su Command in Linux: Switch User | Linuxize
May 2, 2026 · The su command in Linux switches users in the current session and runs commands with another user's privileges. Examples, options, and a sudo vs su comparison.
su (1) - Linux manual page - man7.org
su allows commands to be run with a substitute user and group ID. When called with no user specified, su defaults to running an interactive shell as root. When user is specified, additional argument s can …
su Linux Command: Syntax, Options, Examples - phoenixNAP
Dec 10, 2025 · The su Linux command switches users and elevates privileges in a session. This guide shows how it works and when to use it.
Linux Su Command - Computer Hope
Jun 1, 2025 · This page covers the GNU / Linux version of su. The su command, which is short for substitute user or switch user, enables the current user to act as another user during the current …
su (Unix) - Wikipedia
The Unix command su, which stands for "substitute user" [1][2] (or historically "superuser" [3][4]), is used by a computer user to execute commands with the privileges of another user account.
su - run a command with substitute user and group ID at Linux.org
When called without arguments su defaults to running an interactive shell as root. For backward compatibility su defaults to not change the current directory and to only set the environment
Linux su Command Guide with Examples - atlantic.net
Oct 8, 2024 · In this how-to guide, we will explore how to effectively use the su command in Linux with practical examples.
The su Command - LINFO
The su (short for substitute user) command makes it possible to change a login session's owner (i.e., the user who originally created that session by logging on to the system) without the owner having to first …
Intro To 'su' Command In Linux
Nov 8, 2023 · I use the 'su' command to access the command prompt as a another user. If I run the 'whoami' command as the default user: whoami I'll see this: robert But if it run the 'su' command first, …
9 su command examples in Linux [Cheat Sheet] - GoLinuxCloud
Jan 1, 2024 · su is the short form for a switch or substitute user. su command in Linux is used to run a shell with a different user. With the su command, you can easily switch to the root user or any user in …