Skip to content

Commit d34f5ff

Browse files
authored
Merge pull request #78 from eecs280staff/cli-add-touch
Add touch to basic commands in CLI tutorial
2 parents 44fd780 + c1b669f commit d34f5ff

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

docs/cli.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ $ brew install tree # macOS
103103
</tr>
104104
</table>
105105

106-
107106
### `mkdir`
108107
`mkdir` creates a directory.
109108

@@ -122,6 +121,24 @@ $ brew install tree # macOS
122121
</tr>
123122
</table>
124123

124+
### `touch`
125+
`touch` creates an empty file.
126+
127+
<table>
128+
<tr>
129+
<td markdown="1">
130+
131+
```console
132+
$ touch euchre.cpp
133+
```
134+
135+
</td>
136+
<td>
137+
<img src="images/cli006.png" class="invert-colors-in-dark-mode" alt="touch example" width="470px"/>
138+
</td>
139+
</tr>
140+
</table>
141+
125142
### `rm`
126143
`rm` removes (deletes) a file.
127144

docs/images/cli006.png

265 KB
Loading

docs/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1 style="border-bottom: 1px solid var(--main-header-border-bottom-color, #eaec
3131
</div>
3232
<div class="ui hidden divider"></div>
3333
<div class="ui three stackable cards">
34-
<a class="ui raised card" target="_blank" href="https://eecs280staff.github.io/tutorials/setup_vscode.html">
34+
<a class="ui raised card" target="_blank" href="setup_vscode.html">
3535
<div class="content">
3636
<div class="right aligned floating ui primary label">
3737
Recommended
@@ -44,7 +44,7 @@ <h1 style="border-bottom: 1px solid var(--main-header-border-bottom-color, #eaec
4444
</div>
4545
</div>
4646
</a>
47-
<a class="ui raised card" target="_blank" href="https://eecs280staff.github.io/tutorials/setup_xcode.html">
47+
<a class="ui raised card" target="_blank" href="setup_xcode.html">
4848
<div class="content">
4949
<div class="header">
5050
<i class="icon-xcode"></i> XCode
@@ -54,7 +54,7 @@ <h1 style="border-bottom: 1px solid var(--main-header-border-bottom-color, #eaec
5454
</div>
5555
</div>
5656
</a>
57-
<a class="ui raised card" target="_blank" href="https://eecs280staff.github.io/tutorials/setup_visualstudio.html">
57+
<a class="ui raised card" target="_blank" href="setup_visualstudio.html">
5858
<div class="content">
5959
<div class="header">
6060
<i class="icon-visual-studio"></i> Visual Studio

docs/setup_vscode.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,14 @@ Select the add file icon and give it a name, e.g., `main.cpp`.
181181

182182
<img src="images/vscode023.png" width="768px" />
183183

184-
<div class="primer-spec-callout info" markdown="1">
185-
**Pro-tip:** You can also create files from the command line. The `touch` command creates an empty file.
184+
Alternatively, create your `main.cpp` file from the command line using [`touch`](cli.html#touch).
185+
186186
```console
187187
$ touch main.cpp
188188
```
189-
</div>
190189

191190
Copy-paste this Hello World program into your `main.cpp`.
191+
192192
```c++
193193
#include <iostream>
194194
using namespace std;

0 commit comments

Comments
 (0)