Skip to content

Commit 15bed21

Browse files
committed
content: listed some special vars, fixed one question
1 parent a7a75b7 commit 15bed21

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

src/content/lessons/basic-bash.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,22 @@ echo $BASH_VERSION
304304
305305
---
306306
307+
### Special variables
308+
309+
There are many pre-defined and built-in variables depending
310+
on the specific environment. Some useful ones are:
311+
```bash
312+
$TERM # the name / type of the terminal
313+
$SHELL # the name of the shell (e.g bash)
314+
$PATH # : separated list of directory
315+
$EDITOR # default text editor
316+
$USERNAME # the login name of the current user
317+
```
318+
319+
---
320+
321+
### Defining variables
322+
307323
To define your own variables use the `NAME=value` syntax.
308324
309325
You can define multiple variables on the same line.

src/content/lessons/intro-to-git.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ It is used for all types of projects: corporate, open-source, hobby, educational
2020

2121
### Fun Facts:
2222

23-
- Created by Linus Torvalds (Linux creator) in 2005 when he needed a better tool for Linux kernel development
23+
- Created by Linus Torvalds (Linux creator) in 2005 when he needed a better tool for Linux kernel development.
2424

25-
- The German government publishes their constitution on GitHub
25+
- The German government publishes their constitution on GitHub.
2626

27-
- Over 100 million repositories exist on GitHub alone
28-
It was published by the creator of Linux - Linus Torvalds in 2005.
27+
- Over 100 million repositories exist on GitHub alone.
2928

3029
</bonus-content>
3130

src/content/lessons/working-with-the-file-system.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ cat server-logs | grep 'error' >> errors.txt
274274

275275
<pop-quiz data-answer-id="1">
276276

277-
### What happens if the file does not exist?
277+
### What happens if the file being redirected to does not exist?
278278

279279
- Nothing
280280
- It gets created

0 commit comments

Comments
 (0)