45
Linux console
Console is wrongly regarded as something highly complicated,
beginners often think that you can't use Linux without a
console
It's not necessary in everyday work
However, it facilitates some administrative tasks
Most graphical applications are actually window interfaces for
commands available from the terminal level
Using the console, the user can often get more information in
case of an error
The console also enables grouping or automation of a certain
number of tasks and facilitates some operations
46
47
48
Useful hotkeys
Ctrl+R search in the history of executed commands
Shift+PageUp (PageDown) scrolling the command
screen
Up and down arrow scrolling the history of recent
commands
Ctrl+Shift+T open a new tab in the terminal available in
KDE and Gnome
Ctrl+D closing the console/logout; the same effect can
be obtained by entering the exit command
49
Basic commands
50
51
52
53
System variables
System variables are certain labels understood by the system in specific situations
For instance, when entering a command, the system should know where to find this
command. This information is stored in the PATH variable
We can create variables at any time, assigning them a value
In order to refer to the variable, precede its name with the character $
VARIABLE=contents
echo VARIABLE
echo $VARIABLE
Two basic variables are PATH (search path) and HOME (a path to the user's home
directory)
System variables are deleted once the console window is closed!
54
Vi
Emacs
Nano
Mcedit (part of the mc/midnight commander set)
Both mcedit and nano are simple and clear, their basic
commands are written on the screen
Mc is particularly easy to use because it has similar buttons as
the ones in Total Commander
Emacs is pretty complex and not that easy to handle
55
Vi/Vim
Vi is the most popular and complex editor, which also
makes it pretty hard to use (however, it's available
anywhere and anytime)
Basic commands: