Skip to content

Commit

Permalink
command line workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
Pareceh committed Jun 3, 2024
1 parent 62fd714 commit 6654b57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions content/notes/hpc-from-terminal/section2.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ $rmdir ~/test_dir/sub_dir
</details>

Q3: Copy the directory
`/share/resources/tutorials/rivanna-cli/shakespeare` into your home directory.
`/share/resources/tutorials/rivanna-cl/shakespeare` into your home directory.
<details><summary>Solution</summary>

```bash
$cp -r /share/resources/tutorials/rivanna-cli/shakespeare ~
$cp -r /share/resources/tutorials/rivanna-cl/shakespeare ~
```
</details>

8 changes: 4 additions & 4 deletions content/notes/hpc-from-terminal/section3.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ $more filename
This displays the contents of a file on the screen with line scrolling. To scroll you can use ‘arrow’ keys. To advance one line, press the Enter key. To advance a full page, press the space bar. Press `q` to exit.

```bash
$more ~/rivanna-cli/shakespeare/Lear.txt
$more ~/rivanna-cl/shakespeare/Lear.txt
```

To page upward within the text, press `b` (back).
Expand All @@ -164,7 +164,7 @@ To page upward within the text, press `b` (back).
You can search in the forward direction with `/`<pattern>, where pattern is a combination of characters you wish to find.

```bash
$more ~/rivanna-cli/shakespeare/Lear.text
$more ~/rivanna-cl/shakespeare/Lear.text
/serpent
```
<pre>
Expand Down Expand Up @@ -213,7 +213,7 @@ If used single `>` in place of the double `>>` in the above, `cat` will overwrit

Displays only the starting lines of a file. The default is first ten lines. Use “-n” to specify the number of lines.
```bash
$head ~/rivanna-cli/shakespeare/Lear.text
$head ~/rivanna-cl/shakespeare/Lear.text
```
<pre>
This Etext file is presented by Project Gutenberg, in
Expand All @@ -232,7 +232,7 @@ PROVIDED BY PROJECT GUTENBERG WITH PERMISSION. ELECTRONIC AND

Displays the last 10 lines.
```bash
$tail 30 ~/rivanna-cli/shakespeare/Lear.text
$tail 30 ~/rivanna-cl/shakespeare/Lear.text
```
<pre>
The cup of their deservings.- O, see, see!
Expand Down

0 comments on commit 6654b57

Please sign in to comment.