{{/Labs/01/terminal.png}}
Linux supports modern desktop-style graphical user interfaces, but it also provides a powerful textual shell or command-line interface (CLI). Such a command-driven interface might seem somewhat old-fashioned, but it has a number of benefits:
>
and <
operators.|
operator.Technically, the commands are initially parsed and processed by the shell, commonly bash
, the "Bourne-again shell". Interactive shell input and output is handled by software such as Sakura or xterm that emulates an old-style terminal.
The basic interaction for the CLI is as follows:
$
) is shown with the text cursor following it, the shell is ready for your input.mkdir
for creating a new directory or folder) work entirely by side-effects and do not normally produce any output.\
, before the space.Some useful command-line tips and tricks:
kill
signalSIGINT
signal).SIGSTOP
signal) to suspend the current process (if any), and bg
to have it continue running in the background. You can also use &
at the end of the command line to have it run in the background immediately. Use fg
to bring it back to the foreground (for further interaction).TODO: things like cd, pwd, path expressions, relative and absolute paths