Skip to content

Commit

Permalink
Update 02_shell_basics.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mistrm82 authored Feb 14, 2024
1 parent c2aef66 commit 888636a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions new_basic_shell/02_shell_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ You will see:
genomics_data other raw_fastq README.txt reference_data
```

There are five items listed. **What types of files are they?** We can use a "modifier" with `ls` to get more information; this modifier is called an argument (more below).
There are five items listed. **What types of files are they?**

We can use a "modifier" with `ls` to get more information; this modifier is called an argument (more below).

```bash
$ ls -F

genomics_data/ other/ raw_fastq/ README.txt reference_data/
```

The -F argument is the 'classify' argument. Anything with a forward slash `/` after it is a directory. Things with an asterik `*` after them are programs. If there are no decorations after the name, it's a file.
The `-F` argument is the 'classify' argument. Anything with a forward slash `/` after it is a directory. Things with an asterik `*` after them are programs. If there are no decorations after the name, it's a file.

> All commands are essentially programs that are able to perform specific, commonly-used tasks.
Expand Down Expand Up @@ -76,13 +78,13 @@ All six items in this directory have no trailing slashes, so they are all files,

Most commands take additional arguments that control their exact behavior. For example, `-F` and `-l` are arguments to `ls`. The `ls` command, like many commands, take a lot of arguments. Another useful one is `-a`, which shows everything, including hidden files. How do we know what the available arguments that go with a particular command are?

Most commonly used shell commands have a manual available in the shell. You can access the manual using the man command. Try entering:
Most commonly used shell commands have a manual available in the shell. You can access the manual using the `man` command. Try entering:

```bash
$ man ls
```

This will open the manual page for ls. Use the 'space' key to go forward and 'b' to go backwards. When you are done reading, just hit q to quit.
This will open the manual page for ls. Use the <kbd>SPACE</kbd> key to go forward and <kbd>b</kbd> to go backwards. When you are done reading, just hit <kbd>q</kbd> to quit.

> **Other ways to get help**
>
Expand Down

0 comments on commit 888636a

Please sign in to comment.