Open Source Comes to Campus/Curriculum/Saturday/CLI/Six ways to quit: Difference between revisions
Content added Content deleted
imported>Paulproteus (Created page with '== 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 …') |
imported>Paulproteus |
||
Line 3: | Line 3: | ||
This is a set of exercises for the Saturday Command Line tutorial. |
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. |
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. |
||
So, please run the commands indicated below! |
|||
=== Set-up === |
=== Set-up === |
||
Line 17: | Line 15: | ||
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. |
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: |
|||
These do give hints: |
|||
nano file |
nano file |
Latest revision as of 01:08, 22 February 2012
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?