linux-and-terminals

Linux and terminals

From Zero to Hero - Lectures and Exercises

Startup instructions

To setup the environment, please login with xterm (or in a terminal in one of the graphic interfaces) and enter these commands

  wget https://bijancn.github.io/linux-and-terminals/setup-environment.sh
  chmod +x setup-environment.sh
  ./setup-environment.sh
  # Execute the command that the script tells you

To edit and run scripts side by side (after setting up the environment), start

  tmux

and use the following controls:

Editors

You can use emacs or vim if you are familiar with them already. They are a bit harder to learn and I don’t have the time to explain them. (It is highly recommended, though, that you learn one of them after the course)

There are also easier editors installed: nano and mcedit. I recommend nano. Just write as in a notepad and save with CTRL-O (its also shown in the bottom of the window), then type in the filename and confirm with ENTER. You can exit with CTRL-X (will also ask to save changes). You open an existing (or new) file with nano myfile.

When you use a graphical interface, you can also use gedit or another editor you are familiar with.

Shortcuts

You can copy and paste by selecting and pressing the middle mouse button. On the terminals that run in a graphical login, you can also use CTRL-SHIFT-C and CTRL-SHIFT-V to copy to the X clipboard (it is a different one than from pure selection).

Always complete commands and filenames with TAB.