Open Source Comes to Campus/Curriculum/Saturday/CLI/Six ways to quit

Six ways to quit
This is a set of exercises for the Saturday Command Line tutorial.

The goal of this set of exercises is to show you that different command line programs have different ways to quit them. Knowing how to quit these command-line programs is crucial.

So, please run the commands indicated below!

Set-up
First, create one sample file:

echo hi > hello.txt

Now, open that six ways, and try to quit
Here are six commands to run. Try to look within the program to see if it gives you a hint as to how to quit. Some programs do; some don't.

These do give hints:

nano file

These do not:

emacs file less file vi file cat

Here are six ways to quit. Match 'em up!


 * 1) Ctrl-c
 * 2) Ctrl-d
 * 3) Ctrl-x
 * 4) Escape followed by :q
 * 5) Ctrl-x followed by Ctrl-c
 * q

Quiz: Which of these programs accepts both Ctrl-d and Ctrl-c? Why?