You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example "home" **directory path**: `/home/runner/`
138
+
Example: special "home" **directory path**: `/home/runner/`
139
139
140
140
## Basic directory tree navigation
141
141
@@ -153,16 +153,22 @@ Example "home" **directory path**: `/home/runner/`
153
153
154
154
. . .
155
155
156
-
-`cd /home/runner` changes directory to the home directory.
156
+
-`cd /home/runner` changes directory to the special "home" directory.
157
157
158
158
## Absolute vs. relative paths
159
159
160
160
. . .
161
161
162
162
- The **absolute directory path** specifies the directory from the root directory `/`
163
163
164
+
. . .
165
+
164
166
- The **relative directory path** is a path *relative to our current directory*.
165
167
168
+
- The symbol `..` specifies the parent directory.
169
+
170
+
. . .
171
+
166
172
-`ls` lists all the files in the current directory.
167
173
168
174
## Exercise: explore the `project` folder
@@ -181,6 +187,10 @@ Commands to look at text files:
181
187
182
188
-`tail [filename]` prints out the last few lines of the text file.
183
189
190
+
. . .
191
+
192
+
Hit `Ctrl-C` to stop a running program.
193
+
184
194
## Mental Model 2: Treat text-based commands as functions
185
195
186
196
. . .
@@ -189,7 +199,7 @@ The commands you have been using, `pwd`, `cd`, `ls`, and `cat` are actually comp
189
199
190
200
. . .
191
201
192
-
When using a command from the command line, we should treat it as a function: a command has a **name**, inputs in terms of **options** and/or **arguments**, and optionally**returns** something.
202
+
When using a command from the command line, we should treat it as a function: a command has a **name**, inputs in terms of **arguments** and/or **options**, and **returns** something.
193
203
194
204
. . .
195
205
@@ -201,17 +211,17 @@ When using a command from the command line, we should treat it as a function: a
201
211
202
212
A command's usage can have any of the following combination:
0 commit comments