Topic 2: Finding your way on a linux system Flashcards

1
Q

What is the echo command used for?

A

to write to the standard output

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

In quoting, what purpose do double quotes serve?

A

They preserve the literal value of most characters contained within the quotes except variables with $, the single quotes, and \ the escape character

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

In quoting, what purpose do single quotes serve?

A

The preserve the value of every character within – including the escape character \

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

In quoting, what purpose does the escape \ character serve?

A

it preserves the value of the next following character with the exception of the command newline

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

What is the PATH environment variable used for?

A

to define which directories the interpreter looks in for executables

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

What does a hidden file look like?

A

It has a slash at the beginning, then a period: /.hidden.txt

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

what is a relative path?

A

they do not start with a slash ( / ) and are only relative to current location

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

What is an absolute path and which command always prints it?

A

any path that starts with a slash ( / ) and command pwd

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