Linux terminal is divided into physical terminal, pseudo terminal, serial terminal, virtual terminal
Physical Terminal:/dev/console
Pseudo terminal (terminal under Remote terminal graphics):/dev/pts/# (digital)
Virtual Terminal:/dev/tty#
Serial Terminal:/dev/ttys#
StartX Start the graphical interface
CTRL + C cancels the command being executed
Shift+pageup/pagedown screen in command screen
TTY command displays current terminal end device files
Who command to view all accounts logged on the current system
Who am I show current terminal login UH account
Shell
GUI: (Windows, Gnome, KDE, XFCE)
CLI: (BSH, CSH, tcsh, ksh, bash, zsh)
Bash:
Administrator prompt: #
Normal user prompt: $
Variable: is a memory space
Echo Echoes
Referencing a variable ${variable name}
Macro:
echo $PS 1
[\[email protected]\h \w]\$
\u: Current User
\h: Host Name
\w: Path base name for working directory
For Linux, the path delimiter:/
Absolute path: The path starting from the top level
Relative path: The path starting at the current position
This article is from the "10991570" blog, please be sure to keep this source http://11001570.blog.51cto.com/10991570/1835846
Linux terminal and TTY who echo command usage and Shell bash variables