|
@@ -1,6 +1,7 @@
|
1
|
1
|
# Console Lab Level 1
|
2
|
2
|
|
3
|
3
|
## Objectives
|
|
4
|
+--------Did complete! Just never changed the readME file ----------
|
4
|
5
|
|
5
|
6
|
1. In this lab students will learn to navigate their file system using only the terminal
|
6
|
7
|
2. Students will practice using the following commands to traverse directories and investigate their contents: `pwd`, `ls`, `cd`, `cat`, `less`, `grep`
|
|
@@ -94,7 +95,7 @@ To create a file using touch, simply type the command followed by the name of th
|
94
|
95
|
|
95
|
96
|
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
|
97
|
|
97
|
|
-- `:w` - Write; writes the current contents of the buffer (editor) to a file.
|
|
98
|
+- `:w` - Write; writes the current contents of the buffer (editor) to a file.
|
98
|
99
|
- `:q` - Quit; Quits VIM. Complains if you have unsaved changes (use `:w` first, or `:q!` to force quit and abandon your changes)
|
99
|
100
|
- `:set number`/`:set nonumber` - Enables/disables line numbers.
|
100
|
101
|
- `a` - Switch to insert mode after the current character. `A` goes to the end of the line instead.
|
|
@@ -175,7 +176,7 @@ Now let's practice one more backgrounding technique with a different command.
|
175
|
176
|
- Now you're stuck without your prompt; but we can fix that! Press `Ctrl`+`Z` to suspend (not kill) that program.
|
176
|
177
|
- 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
|
178
|
- 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
|
|
-
|
|
179
|
+
|
179
|
180
|
|
180
|
181
|
## Other Resources
|
181
|
182
|
|
|
@@ -192,4 +193,3 @@ The next lab is [here](https://github.com/Zipcoder/ZCW-Microlabs-Git).
|
192
|
193
|
2. "more or less" http://unix.stackexchange.com/questions/81129/what-are-the-differences-between-most-more-and-less
|
193
|
194
|
3. "Command Line Crash Course" http://learnpythonthehardway.org/book/appendixa.html
|
194
|
195
|
4. "VIM 101" https://www.linux.com/learn/vim-101-beginners-guide-vim
|
195
|
|
-
|