## A Few Useful Tricks

 1. Before we continue, I will try to teach you a few tricks for working with
    the command line a little more efficiently. The first one is using the
    command history.
 2. For instance, if you just typed a long command and now want to type a
    rather similar long command, it might be useful to hit 'arrow up' on your
    keyboard. Then you can tweak the command before running it again.
 3. If a while passed since you typed a command but want to run it again (or
    edit it slightly), you can use ‹^R› (that is ‹ctrl+r›) to find it in your
    history. Hit ‹^R› and type a few letters or a word from the command. If you
    typed the right fragment but you want an older command than you got, just
    hit ‹^R› again, until you find the right one.
 4. Using ‹^R› is often faster than hitting 'arrow up' 20+ times.
 5. Sometimes it's faster to type the command again instead of looking it up
    in your history. Might be also better for your memory.
 6. The other trick is using the TAB key, especially when working with files.
    We will learn more about files shortly. If you want to read this file
    again, you could do it this way:
    
        $ cat tr<TAB><ENTER>
    
    Saves a few keystrokes.

 7. The last two items have to do with the terminal emulator itself. First is
    about copying and pasting: using ‹^C› and ‹^V› (‹ctrl+c› and ‹ctrl+v›)
    won't work.  You could use shift+insert to paste. Or you can use the mouse
    to both copy and paste. You copy by selecting the text with a mouse and
    nothing else.
 8. You can also paste by clicking the middle button (the scroll wheel). The
    same approach (select+middle click) also works with the browser and other
    programs.
 9. You can look back to what you typed and the output of programs that
    scrolled off the screen by scrolling in the terminal (e.g. by using the
    scroll wheel). However, it is sometimes more convenient to use a pager,
    e.g. ‹less›. You can read this file in a pager like this:
    
        $ cat tricks.txt | less
    
    In this case, this would also work:
    
        $ less tricks.txt

10. The last thing that is often useful is to have more than one terminal
    open. For instance, you can follow these instructions in one and 
    try out the commands or solve the exercises in another. I find it
    most convenient to put them side by side, so I can see both at once.

That are all the tricks for now. You may want to practice them for a bit --
the next section will be a good chance to do that, because we will work with
files. Continue to:

    $ cat files.txt
