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 to not becoming frustrated.
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.
This gives an on-screen hint:
nano file
These do not:
emacs file less file vi file cat
Here are six ways to quit. Match 'em up!
- Ctrl-c
- Ctrl-d
- Ctrl-x
- Escape followed by :q
- Ctrl-x followed by Ctrl-c
- q
Quiz: Which of these programs accepts both Ctrl-d and Ctrl-c? Why?