Skip to content

Commit

Permalink
Fix markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Sep 24, 2024
1 parent 8425505 commit 9fc0cdd
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions docs/commandline.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ echo "Hello!"
```

!!! info "What does this program do?"
*The first line is called the [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)),

- The first line is called the [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)),

Check failure on line 81 in docs/commandline.md

View workflow job for this annotation

GitHub Actions / check_markdown

Unordered list indentation [Expected: 0; Actual: 1]
and indicates this is a Bash script
* The second line displays the text between double quotes
- The second line displays the text between double quotes

Check failure on line 83 in docs/commandline.md

View workflow job for this annotation

GitHub Actions / check_markdown

Unordered list indentation [Expected: 0; Actual: 1]

Save and close `nano`.

Expand Down Expand Up @@ -227,8 +228,6 @@ echo "Hello!"
nano do_it.sh
```



Then do `CTRL + O` to save, `CTRL + X` to exit

- Write an executable script that displays a welcome message in text (e.g. `Hello!`)
Expand Down Expand Up @@ -273,9 +272,10 @@ View the help of the command `cd`

Use `man` to view the help of any command, in this case `cd`:

```
```bash
man cd
```

This will fail, because Bianca has (close to) no internet access.

### Exercise 3a
Expand All @@ -284,7 +284,7 @@ Navigate to the project folder, e.g. `/proj/sens2023598`

???- question "Answer"

```
```bash
cd /proj/sens2023598
```

Expand All @@ -298,20 +298,20 @@ Navigate to your home folder"

The syntax to move to your home folder is:

```
```bash
cd /home/[username]
```

where `[username]` is your UPPMAX username, for example:

```
```bash
cd /home/richel
```

The squiggle/tilde (`~`) is a shorter notation,
that does exactly the same:

```
```bash
cd ~
```

Expand All @@ -321,7 +321,7 @@ Navigate to the wharf, e.g. `/proj/sens2023598/nobackup/wharf`"

???- question "Answer"

```
```bash
cd /proj/sens2023598/nobackup/wharf
```

Expand All @@ -331,13 +331,13 @@ Create a folder `/proj/sens2023598/workshop/[your_login_name]`, for example, `/p

???- question "Answer"

```
```bash
mkdir /proj/sens2023598/workshop/richel
```

Or navigate there first:

```
```bash
cd /proj/sens2023598/workshop/
mkdir richel
```
Expand All @@ -346,7 +346,7 @@ Create a folder `/proj/sens2023598/workshop/[your_login_name]`, for example, `/p

???- question "5a. Create a file, e.g. `richel.txt`"

```
```bash
touch richel.txt
```

Expand All @@ -362,21 +362,21 @@ Create a folder `/proj/sens2023598/workshop/[your_login_name]`, for example, `/p

???- question "5c. Move the copied file (e.g. move it one folder up to `../richel_again.txt`)"

```
```bash
mv richel_again.txt ../
```

### Exercise 5d

???- question "5d. Delete the copied file"

```
```bash
rm ../richel_again.txt
```

or:

```
```bash
cd ..
rm richel_again.txt
```
Expand Down

0 comments on commit 9fc0cdd

Please sign in to comment.