Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Mastering-Bash/Bash-Exit-Status.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ In this lab you will:
exit 0
fi

exit 1
# Exit status 3 will be returned if no previous condition was met.
exit 3
```
4 changes: 2 additions & 2 deletions Mastering-Bash/Bash-Expansions.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ In this lab you will:
leave the default value for the second run:

```console
$ ./default_answer pizza
$ ./default_answer.sh pizza
The answer to life, the universe and everything is pizza
Name of the script is ./default_answer

$ ./default_answer
$ ./default_answer.sh
The answer to life, the universe and everything is 42
Name of the script is ./default_answer
```
10 changes: 6 additions & 4 deletions Mastering-Bash/Bash-Outputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ In this lab you will:
5. Append to the previously created file all the lines that contain a `:9` from
`/etc/group` file.
6. Sort the content of `results.txt` by name.
7. Use the `less` pager to view the content of `/var/log/boot.log` and invoke an
7. Use the `less` pager to view the content of `/etc/vimrc` and invoke an
editor to edit the file.

## Solution
Expand Down Expand Up @@ -85,12 +85,14 @@ In this lab you will:
unbound:x:994:
```

7. Use the less pager to view the content of `/var/log/boot.log` and invoke an
7. Use the less pager to view the content of `/etc/vimrc` and invoke an
editor to edit the file:

```console
$ less /var/log/boot.log
$ less /etc/vimrc
(less interface opens)
```

and then press `v`.
and then press `v`. You will see the `less` interface turning into a `vim`
one, but without the opportunity to make any change, since the file is not
owned by the `kirater` unprivileged user.
2 changes: 1 addition & 1 deletion Mastering-Bash/Bash-Signals-Kill.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ In this lab you will:
1. Launch the sleep command and then press `CTLR+Z`. Result should be:

```console
[kirater@machine ~] $ sleep 100
$ sleep 100
^Z
[1]+ Stopped sleep 100
```
Expand Down