Chapter 5 Flashcards

1
Q

Scripting

A

Ability to place commands in a file and then interpret the file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Aliases

A

Ability to create short nicknames for longer commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Variables

A

Used to store information for the Bash shell and user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

command

A

performs action on the computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ls

A

lists files and directories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ls -l

(an L)

A

long listing that provides additional info such as permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ls -r

A

lists in reverse alphabetical order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ls -lh

A

human-readable format

Ex: instead of bytes, it’s in kb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

!!

A

execute most recent command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Backquotes

A

used to specify a command within a command

Ex:
echo Today is date = Today is date
vs
echo Today is date = Today is Thu Oct 10 00:58:34 UTC 2024

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

&&

A

act as logical “and”

If first command is successful, then the second command will also run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

|| Double pipe

A

logical “or”

Depending of first command, the second command will either run or skip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

uname

A

displays information about the current system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly