
su | 451
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
[-]raw
[Disable] enable raw input and output (no ERASE, KILL,
INTR, QUIT, EOT, SWITCH, or output postprocessing).
sane
Reset all modes to reasonable values.
[-]cbreak
Same as [icanon]-icanon.
[-]pass8
Same as -parenb -istrip cs8.
[-]litout
Same as -parenb -istrip cs8.
[-]decctlq*
Same as -ixany.
crt
Same as echoe echoctl echoke.
dec
Same as echoe echoctl echoke -ixany. Additionally, set
INTERRUPT to Ctrl-C, ERASE to Del, and KILL to Ctrl-U.
Special settings
n Set terminal baud rate to n (e.g., 2400).
ispeed speed
Specify input speed.
ospeed speed
Specify output speed.
rows rows*
Specify number of rows.
cols columns, columns columns*
Specify number of columns.
size*
Display current row and column settings.
speed
Display terminal speed.
su
su [option] [user] [shell_args]
Create a shell with the effective user ID user.Ifnouser is specified,
create a shell for a privileged user (i.e., become a superuser). Enter
EOF to terminate. You can run the shell with particular options by
passing them as shell_args (e.g., if the shell runs bash, you can
specify -c command to execute command via bash,or-r to create a
restricted shell).
Options
-, -l, --login
Go through the entire login sequence (i.e., change to user’s
environment).