Skip to content

Commit c26b3fa

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

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
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/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)