CIS126RH | RHEL System Administration 1
Mesa Community College
Access local consoles, graphical environments, and remote systems via SSH
Know what a shell is, identify Bash, and interpret the command prompt
Execute commands for navigation, file listing, and system information
Understand options, arguments, and keyboard shortcuts for efficiency
A shell is a command-line interpreter that provides an interface between the user and the operating system kernel. It reads commands you type, interprets them, and executes them.
Bourne Again Shell - the default shell in RHEL and most Linux distributions
Other shells with different features - Bash is most common for administration
Physical access to the machine. Text mode (virtual consoles) or graphical terminal
Graphical application like GNOME Terminal that provides shell access
Secure Shell protocol for remote command-line access over the network
# Connect to a remote server via SSH
[student@workstation ~]$ ssh student@server.example.com
student@server.example.com's password:
[student@server ~]$
# SSH with specific options
[student@workstation ~]$ ssh -l student 192.168.1.100
[student@workstation ~]$ ssh student@192.168.1.100 -p 22
Linux provides multiple virtual consoles (VCs) - separate terminal sessions accessible via keyboard shortcuts. Even with a graphical desktop, text consoles are available.
# See which terminal you're on
[student@server ~]$ tty
/dev/tty2
# See who is logged into which terminals
[student@server ~]$ w
USER TTY FROM LOGIN@ WHAT
student tty2 - 09:15 -bash
student pts/0 192.168.1.50 09:20 w
Username: Your account name (case-sensitive)
Password: Characters not displayed as you type
Last login: Shows when and from where
Prompt: Ready for commands
● student — Current username (who you're logged in as)
● server — Hostname (which system you're on)
● ~ — Current directory (~ means home directory)
● $ — Prompt symbol ($ for regular user, # for root)
# Regular user prompt
[student@server ~]$
# Root user prompt - note the # symbol
[root@server ~]#
# In a different directory
[student@server Documents]$
# Full path shown
[student@server /var/log]$