Skip to content

Commit

Permalink
fix navigation level of sections
Browse files Browse the repository at this point in the history
  • Loading branch information
trhallam committed Jun 11, 2024
1 parent 724d405 commit f2bfc24
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions episodes/10-hpc-intro.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ config <- yaml.load_file("lesson_config.yaml")
- Identify how an HPC system could benefit you.
::::::

# Why Use These Computers?
## Why Use These Computers?

::: challenge
## What do you need?
### What do you need?

Talk to your neighbour about your research. How does computing help you do
your research? How could more computing help you do more or better research?
Expand Down
4 changes: 1 addition & 3 deletions episodes/11-connecting.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ snippets <- paste('files/snippets/', config$snippets, sep='')
- Connect to a remote HPC system.
::::::

# Opening a Terminal
## Opening a Terminal

Connecting to an HPC system is most often done through a tool known as "SSH"
(Secure SHell) and usually SSH is run through a terminal. So, to begin using an
Expand Down Expand Up @@ -276,5 +276,3 @@ ssh [email protected]
ssh -i ~/.ssh/key_for_remote_computer [email protected]
```
::::::


12 changes: 12 additions & 0 deletions episodes/13-navigation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ config <- yaml.load_file("lesson_config.yaml")
- Demonstrate the use of tab completion, and explain its advantages.
::::::

## First commands

At this point in the lesson, we've just logged into the system. Nothing has
happened yet, and we're not going to be able to do anything until we learn a
few basic commands. By the end of this lesson, you will know how to "move
Expand Down Expand Up @@ -72,6 +74,8 @@ $ pwd
`r config$remote$homedir`yourUsername
```

## List directory contents

So, we know where we are. How do we look and see what's in our current
directory?
```bash
Expand Down Expand Up @@ -102,6 +106,8 @@ you are issuing commands on when in the shell.

:::

## Making directories

If nothing shows up when you run `ls`, it means that nothing's there. Let's
make a directory for us to play with.

Expand All @@ -128,6 +134,8 @@ $ pwd
~/documents
```

## The tilde ~

What is the `~` character? When using the shell, `~` is a shortcut that
represents ``r config$remote$homedir`yourUserName`.

Expand Down Expand Up @@ -196,6 +204,8 @@ File storage locations:
against your job's memory usage and be deleted at the end of your job.
:::

## Navigation shortcuts

There are several other useful shortcuts you should be aware of.

- `.` represents your current directory
Expand All @@ -216,6 +226,8 @@ $ pwd
`r config$remote$homedir`yourUserName
```

## Command flags and options

Many commands also have multiple behaviours that you can invoke with command
line 'flags.' What is a flag? It's generally just your command followed by a
'-' and the name of the flag (sometimes it's '--' followed by the name of the
Expand Down
4 changes: 3 additions & 1 deletion episodes/15-wildcards-pipes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ SRR307025_1.fastq SRR307030_1.fastq
SRR307025_2.fastq SRR307030_2.fastq
```

## Word counts and wildcards (globbing)

Now we have a whole bunch of example files in our directory. For this example
we are going to learn a new command that tells us how long a file is: `wc`. `wc-l file`
we are going to learn a new command that tells us how long a file is: `wc`. `wc -l file`
tells us the length of a file in lines.

```bash
Expand Down

0 comments on commit f2bfc24

Please sign in to comment.