Skip to content

Commit 089f6cd

Browse files
authored
Merge pull request #17 from fhdsl/S2
lecture
2 parents 918b607 + e378c0a commit 089f6cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+149
-82
lines changed

images/CL-3.1 (Final).png

569 KB

slides.html renamed to intro_to_command_line_slides.html

Lines changed: 129 additions & 72 deletions
Large diffs are not rendered by default.

slides.qmd renamed to intro_to_command_line_slides.qmd

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ output-location: fragment
1010

1111
## Welcome!
1212

13-
![](images/Intro_To_CL%201.png){width="500"}
13+
![](images/CL-3.1%20(Final).png)
1414

1515
## Introductions
1616

@@ -28,9 +28,9 @@ output-location: fragment
2828

2929
- Name, pronouns, group you work in
3030

31-
- What you want to get out of the seminar
31+
- What you want to get out of the workshop
3232

33-
- ???
33+
- Favorite winter activity?
3434

3535
## Goals of the workshop
3636

@@ -135,7 +135,7 @@ On our computer, the **directory tree** organizes files and directories in an (u
135135

136136
![Replit directory tree](images/directory_tree.png)
137137

138-
Example "home" **directory path**: `/home/runner/`
138+
Example: special "home" **directory path**: `/home/runner/`
139139

140140
## Basic directory tree navigation
141141

@@ -153,16 +153,22 @@ Example "home" **directory path**: `/home/runner/`
153153

154154
. . .
155155

156-
- `cd /home/runner` changes directory to the home directory.
156+
- `cd /home/runner` changes directory to the special "home" directory.
157157

158158
## Absolute vs. relative paths
159159

160160
. . .
161161

162162
- The **absolute directory path** specifies the directory from the root directory `/`
163163

164+
. . .
165+
164166
- The **relative directory path** is a path *relative to our current directory*.
165167

168+
- The symbol `..` specifies the parent directory.
169+
170+
. . .
171+
166172
- `ls` lists all the files in the current directory.
167173

168174
## Exercise: explore the `project` folder
@@ -181,6 +187,10 @@ Commands to look at text files:
181187

182188
- `tail [filename]` prints out the last few lines of the text file.
183189

190+
. . .
191+
192+
Hit `Ctrl-C` to stop a running program.
193+
184194
## Mental Model 2: Treat text-based commands as functions
185195

186196
. . .
@@ -189,7 +199,7 @@ The commands you have been using, `pwd`, `cd`, `ls`, and `cat` are actually comp
189199

190200
. . .
191201

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.
193203

194204
. . .
195205

@@ -201,17 +211,17 @@ When using a command from the command line, we should treat it as a function: a
201211

202212
A command's usage can have any of the following combination:
203213

204-
- Arguments
214+
- Input arguments
205215
- Options
206-
- Options with its own required arguments
216+
- Options with its own required input arguments
207217

208218
. . .
209219

210220
![Source: Software Carpentry: https://swcarpentry.github.io/shell-novice/fig/shell_command_syntax.svg](https://swcarpentry.github.io/shell-novice/fig/shell_command_syntax.svg)
211221

212222
. . .
213223

214-
Arguments:
224+
Input arguments:
215225

216226
```
217227
~/CommandLineDaSL$ ls /
@@ -220,7 +230,7 @@ bin boot dev etc home inject io lib lib32 lib64 libx32 media mnt ni
220230

221231
. . .
222232

223-
Arguments and options:
233+
Input arguments and options:
224234

225235
```
226236
~/CommandLineDaSL$ ls / -F

slides_files/libs/clipboard/clipboard.min.js renamed to intro_to_command_line_slides_files/libs/clipboard/clipboard.min.js

File renamed without changes.

slides_files/libs/quarto-html/light-border.css renamed to intro_to_command_line_slides_files/libs/quarto-html/light-border.css

File renamed without changes.

slides_files/libs/quarto-html/popper.min.js renamed to intro_to_command_line_slides_files/libs/quarto-html/popper.min.js

File renamed without changes.

slides_files/libs/quarto-html/quarto-html.min.css renamed to intro_to_command_line_slides_files/libs/quarto-html/quarto-html.min.css

File renamed without changes.

slides_files/libs/quarto-html/quarto-syntax-highlighting.css renamed to intro_to_command_line_slides_files/libs/quarto-html/quarto-syntax-highlighting.css

File renamed without changes.
File renamed without changes.

slides_files/libs/quarto-html/tippy.css renamed to intro_to_command_line_slides_files/libs/quarto-html/tippy.css

File renamed without changes.

0 commit comments

Comments
 (0)