T
T
TODO•SEC
Search…
Spawn a TTY/Pseudo Shell
A terminal is a physical device with a keyboard and screen connected to a computer running various OS types.
A _**tty **_is the UNIX device name for a physical/virtual terminal.
A _shell _is the Unix command interpreter.
A _**console **is a generic term for a primary i/o device or interface. In UNIX, console is where the boot/startup messages are sent to. After bootup the console effectively becomes a _terminal.
1
//===========================\\
2
|| Terminal ||
3
|| |-----------| ||
4
|| Keyboard--->| Input |-++->|---| |-------|
5
|| |-----------| || |tty|<=>| shell |
6
|| |---------|<------++--|---| |-------|
7
|| Print<--| Output | ||
8
|| |---------| ||
9
|| ||
10
\\===========================//
Copied!
When you SSH into the machine the SSH program is acting as the terminal, connecting with yet another tty:
1
//===========================\\
2
|| SSH ||
3
|| |----------| ||
4
|| STDIN------->| Network |-++->|---| |-------|
5
|| |----------| || |tty|<=>| shell |
6
|| |---------|<-----++--|---| |-------|
7
|| STDOUT<--| Network | ||
8
|| |---------| ||
9
|| ||
10
\\===========================//
Copied!
When you open a terminal on linux a lot of the time you are opening a graphic program which comes with the environment you are. For gnome this would be gnome-terminal:
1
//===========================\\
2
|| gnome-terminal ||
3
|| |----------| ||
4
|| GDK_p------->| File Wrt |-++->|---| |-------|
5
|| |----------| || |tty|<=>| shell |
6
|| |---------|<-----++--|---| |-------|
7
|| Screen <-| File Rd | ||
8
|| |---------| ||
9
|| ||
10
\\===========================//
Copied!
More, Source
Last modified 8d ago
Copy link