File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff 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+
307323To define your own variables use the ` NAME=value` syntax.
308324
309325You can define multiple variables on the same line.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments