Skip to content

Commit

Permalink
hit -> press
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson committed Jun 7, 2022
1 parent 32ab18e commit a49e2b1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions episodes/02-navigating-the-filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ where we are by using the `pwd` command, which you can use whenever you are unsu
about where you are. It stands for "print working directory" and the result of the
command is printed to your standard output, which is the screen.

Let's type `pwd` and hit enter to execute the command
Let's type `pwd` and press enter to execute the command
(Note that the `$` sign is used to indicate a command to be typed on the command prompt,
but we never type the `$` sign itself, just what follows after it.):

Expand Down Expand Up @@ -56,7 +56,7 @@ We can get this by specifying various **flags** (also known as `options`, `param
`arguments`) to go with our basic commands.
Arguments modify the workings of the command by telling the computer what sort of output or manipulation we want.

If we type `ls -l` and hit enter, the computer returns a list of files that contains
If we type `ls -l` and press enter, the computer returns a list of files that contains
information similar to what we would find in our Finder (Mac) or Explorer (Windows):
the size of the files in bytes, the date it was created or last modified, and the file name.

Expand All @@ -83,7 +83,7 @@ Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the
number of digits to three or less using base 2 for sizes.

Now `ls -h` won't work on its own. When we want to combine two flags,
we can just run them together. So, by typing `ls -lh` and hitting
we can just run them together. So, by typing `ls -lh` and pressing
enter we receive an output in a human-readable format (note: the order here doesn't matter).

~~~
Expand Down
16 changes: 8 additions & 8 deletions episodes/03-working-with-files-and-folders.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ $ cd ..
~~~
{: .bash}

Instead of typing `cd firstdir`, let's try to type `cd f` and then hit the Tab key.
Instead of typing `cd firstdir`, let's try to type `cd f` and then press the Tab key.
We notice that the shell completes the line to `cd firstdir/`.

> ## Tab for Auto-complete
> Hitting tab at any time within the shell will prompt it to attempt to auto-complete
> Pressing tab at any time within the shell will prompt it to attempt to auto-complete
> the line based on the files or sub-directories in the current directory.
> Where two or more files have the same characters, the auto-complete will only fill up to the
> first point of difference, after which we can add more characters, and
Expand Down Expand Up @@ -176,14 +176,14 @@ We will see how we can get the first lines of several files at once.
To save some typing, we introduce a very useful trick first.

> ## Re-using commands
> On a blank command prompt, hit the up arrow key and notice that the previous
> On a blank command prompt, press the up arrow key and notice that the previous
> command you typed appears before your cursor. We can continue pressing the
> up arrow to cycle through your previous commands. The down arrow cycles back
> toward your most recent command. This is another important labour-saving
> function and something we'll use a lot.
{: .callout}

Hit the up arrow until you get to the `head 829-0.txt` command. Add a space
Press the up arrow until you get to the `head 829-0.txt` command. Add a space
and then `33504-0.txt` (Remember your friend Tab? Type `3` followed by Tab to
get `33504-0.txt`), to produce the following command:

Expand Down Expand Up @@ -336,9 +336,9 @@ $ ls
> ## Using `history`
> Use the `history` command to see a list of all the commands you've entered during the
> current session. You can also use <kbd>Ctrl</kbd> + <kbd>r</kbd> to do a reverse lookup. Hit <kbd>Ctrl</kbd> + <kbd>r</kbd>,
> current session. You can also use <kbd>Ctrl</kbd> + <kbd>r</kbd> to do a reverse lookup. Press <kbd>Ctrl</kbd> + <kbd>r</kbd>,
> then start typing any part of the command you're looking for. The past command will
> autocomplete. Hit `enter` to run the command again, or press the arrow keys to start
> autocomplete. Press `enter` to run the command again, or press the arrow keys to start
> editing the command. If multiple past commands contain the text you input, you can
> <kbd>Ctrl</kbd> + <kbd>r</kbd> repeatedly to cycle through them. If you can't find what you're looking for
> in the reverse lookup, use <kbd>Ctrl</kbd> + <kbd>c</kbd> to return to the prompt. If you want to save
Expand All @@ -353,8 +353,8 @@ $ ls
> The `echo` command simply prints out a text you specify. Try it out: `echo 'Library Carpentry is awesome!'`.
> Interesting, isn't it?
>
> You can also specify a variable. First type `NAME=` followed by your name, and hit enter.
> Then type `echo "$NAME is a fantastic library carpentry student"` and hit enter. What happens?
> You can also specify a variable. First type `NAME=` followed by your name, and press enter.
> Then type `echo "$NAME is a fantastic library carpentry student"` and press enter. What happens?
>
> You can combine both text and normal shell commands using `echo`, for example the
> `pwd` command you have learned earlier today. You do this by enclosing a shell
Expand Down
2 changes: 1 addition & 1 deletion episodes/05-counting-mining.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ print the matching lines.
{: .callout}
Press the up arrow once in order to cycle back to your most recent action.
Amend `grep 1999 *.tsv` to `grep -c 1999 *.tsv` and hit enter.
Amend `grep 1999 *.tsv` to `grep -c 1999 *.tsv` and press enter.
~~~
$ grep -c 1999 *.tsv
Expand Down

0 comments on commit a49e2b1

Please sign in to comment.