|
@@ -1,5 +1,5 @@
|
1
|
1
|
# Console Lab Level 1
|
2
|
|
-
|
|
2
|
+//blahblah
|
3
|
3
|
## Objectives
|
4
|
4
|
|
5
|
5
|
1. In this lab students will learn to navigate their file system using only the terminal
|
|
@@ -94,7 +94,7 @@ To create a file using touch, simply type the command followed by the name of th
|
94
|
94
|
|
95
|
95
|
There are many text editors out there. We will be using an editor called VIM (short for VI iMproved -- it is a clone of the editor VI with some improvements). Other options that you can explore on your own include emacs and nano (a clone of a program called pico). Here are the VIM commands we'll use along with a few other useful basics (there are many, many, many many more):
|
96
|
96
|
|
97
|
|
-- `:w` - Write; writes the current contents of the buffer (editor) to a file.
|
|
97
|
+- `:w` - Write; writes the current contents of the buffer (editor) to a file.
|
98
|
98
|
- `:q` - Quit; Quits VIM. Complains if you have unsaved changes (use `:w` first, or `:q!` to force quit and abandon your changes)
|
99
|
99
|
- `:set number`/`:set nonumber` - Enables/disables line numbers.
|
100
|
100
|
- `a` - Switch to insert mode after the current character. `A` goes to the end of the line instead.
|
|
@@ -175,7 +175,7 @@ Now let's practice one more backgrounding technique with a different command.
|
175
|
175
|
- Now you're stuck without your prompt; but we can fix that! Press `Ctrl`+`Z` to suspend (not kill) that program.
|
176
|
176
|
- Now you've got your terminal back, but if you type `jobs` you'll see that python is currently stopped. You can bring it back with `fg`, but that will block your prompt again; instead, use `bg` to resume it in the background.
|
177
|
177
|
- Now that you've resumed python in the background, you can see it listed as running in `jobs`. Bring it back to the foreground with `fg` and then kill it with `Ctrl`+`C`
|
178
|
|
-
|
|
178
|
+
|
179
|
179
|
|
180
|
180
|
## Other Resources
|
181
|
181
|
|
|
@@ -192,4 +192,3 @@ The next lab is [here](https://github.com/Zipcoder/ZCW-Microlabs-Git).
|
192
|
192
|
2. "more or less" http://unix.stackexchange.com/questions/81129/what-are-the-differences-between-most-more-and-less
|
193
|
193
|
3. "Command Line Crash Course" http://learnpythonthehardway.org/book/appendixa.html
|
194
|
194
|
4. "VIM 101" https://www.linux.com/learn/vim-101-beginners-guide-vim
|
195
|
|
-
|