Exploring what the su command means | Opensource.com

Exploring what the su command means

Posted 10 Apr 2013 by 

Jason Hibbets (Red Hat)
Rating: 
(6 votes)
Technology
Image by : 

opensource.com

submit to reddit

What does "su" mean to you?

super user
39% (350 votes)
switch user
46% (411 votes)
substitute user
14% (122 votes)
subshell
1% (7 votes)
Other (tell us in the comments)
0% (4 votes)
Total votes: 894

Do you still prefer using the command line to accomplish tasks on your Linux or UNIX based system?

For some, navigating the filesystem and firing off commands in a terminal window can be extremely productive. SSHing from one machine to another or running scripts in the background are everyday occurences for system administrators.

I was watching a conversation happen on a mailing list a few weeks ago about the "su" command. There was some debate about what it meant and, in fact, a history lesson started—gotta love some of the shared knowledge you discover on mailing lists.

As we discover and use technology, we learn different ways to do things or different ways to accomplish the same thing. Let's explore more about the "su" command. How did you first learn about it and what do you think it stands for?

submit to reddit

10 Comments

mfidelman
Open Minded

Well.. since I mostly run Linux on headless servers, and manage them remotely... yes, I prefer ssh and the command line :-)

Vote up!
0
Vote down!
0
DavidSpalding
Open Minded

Since I started using Android devices 15 months ago, I've been wishing I had a good, usable SSH and terminal window. (I'm sure there are, I just haven't found them yet.) Why: I post on numerous forums, and when I post pics (screenshots of issues, or watch glamor pics on watch enthusiast sites), I prefer to link to images on my domain vice attaching them in the forum site's dB. On a desktop, this is trivially easy, just ssh to the domain, get the full link to the image, and preface with http. On a tablet (an increasingly useful way of consuming and participating in community discussions), I have to do various kinds of tap-hold, copy, paste, edit, fudge it, rinse, repeat ... taking three to four minutes longer. "Patience is a virtue," some say. So's a keyboard, I say.

Touch screens and handhelds are marvelous until you hit the brick wall of something you want to do which actually involves more than 140 characters. (sigh)

Vote up!
0
Vote down!
0
kentth

I have been using "ConnectBot" .on my tablets and phones.

Vote up!
0
Vote down!
0
kitkit

shadow-utils

Vote up!
0
Vote down!
0
Tim Cuthbertson

I have always thought of it as "set user", but I guess that is pretty similar to "switch user".

I use a simple GUI DE (LXDE) most of the time, but I do many things at the command line. I do most file manipulation from the CLI, also package management. I use a CLI app for IRC (irssi).

Vote up!
0
Vote down!
0
Matt Micene
Open Minded

GUI's are there so I can see more terminals efficiently than a single TTY and screen.

Vote up!
0
Vote down!
0
Alvin

I like the command line. I am confortable with it, but I am not as productive as people who use the GUI for browsing the file system.

Vote up!
0
Vote down!
0
Paul Almquist

I learned long, long ago su = switch user. It allows one to change to any other user if the password is known. By default it switches to the super user hence some think su means super user. Supply a user id argument to switch to that user. I sometimes do that.

find and tree are great tools for browsing the file system.

Vote up!
0
Vote down!
0
Marabiloso

I guess "switch User" would be correct in a Windows environment or a Plymouth/XOrg thing as "switch user" really makes a switch between 2 sessions spawned from the same parent process.
However, whatever the meaning, su creates a new child session from the current session, even inheriting from the current environment (when omitting the '-' in "su -"). Therefore, it would mean something like "Spawn Session Using UID". Sorry for the stuttering...

Vote up!
0
Vote down!
0
mfidelman
Open Minded

For what it's worth:

Under Debian Linux, man su yields:
su - change user ID or become superuser

Under MacOS (BSD derived, delivers BSD man pages), man su yields:
su -- substitute user identity

Vote up!
0
Vote down!
0

Jason Hibbets is a project manager in Corporate Marketing at Red Hat where he is the lead administrator, content curator, and community manager for Opensource.com. He has been with Red Hat since 2003 and is the author of, The foundation for an open source city. Prior roles include senior marketing specialist, Red Hat Knowledgebase maintainer, and support engineer. Follow him on Twitter: @jhibbets

 Raspberry Pi B+

Holiday gift guide promo