Chapter 3 Exams Flashcards

1
Q

Which directory contains persistent, system-specific configuration data?

A
/etc

B
/root

C
/run

D
/usr

A

A

/etc

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

Which directory is the top of the system’s file system hierarchy?

A
/etc

B
/

C
/home/root

D
/root

A

B

/

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

Which directory contains user home directories?

A
/

B
/home

C
/root

D
/user

A

B

/home

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

Which directory contains temporary files?

A
/tmp

B
/trash

C
/run

D
/var

A

A

/tmp

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

Which directory contains dynamic data, such as for databases and websites?

A
/etc

B
/run

C
/usr

D
/var

A

D

/var

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

Which directory is the administrative superuser’s home directory?

A
/etc

B
/

C
/home/root

D
/root

A

D

/root

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

Which directory contains regular commands and utilities?

A
/commands

B
/run

C
/usr/bin

D
/usr/sbin

A

C

/usr/bin

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

Which directory contains non-persistent process runtime data?

A
/tmp

B
/etc

C
/run

D
/var

A

C

/run

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

Which directory contains installed software programs and libraries?

A
/etc

B
/lib

C
/usr

D
/var

A

C

/usr

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

Which command is used to return to the current user’s home directory, assuming the current working directory is /tmp and their home directory is /home/user?

A
cd

B
cd ..

C
cd .

D
cd *

E
cd /home

A

A

cd

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

Which command displays the absolute path name of the current location?

A
cd

B
pwd

C
ls ~

D
ls -d

A

B

pwd

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

Which command will always return you to the working directory used prior to the current working directory?

A
cd -

B
cd -p

C
cd ~

D
cd ..

A

A

cd -

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

Which command will always change the working directory up two levels from the current location?

A
cd ~

B
cd ../

C
cd ../..

D
cd -u2

A

C

cd ../..

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

Which command lists files in the current location, using a long format, and including hidden files?

A
llong ~

B
ls -a

C
ls -l

D
ls -al

A

D

ls -al

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

Which command will always change the working directory to /bin?

A
cd bin

B
cd /bin

C
cd ~bin

D
cd -bin

A

B

cd /bin

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

Which command will always change the working directory to the parent of the current location?

A
cd ~

B
cd ..

C
cd ../..

D
cd -u1

A

B

cd ..

17
Q

Which command will change the working directory to /tmp if the current working directory is /home/student?

A
cd tmp

B
cd ..

C
cd ../../tmp

D
cd ~tmp

A

C

cd ../../tmp

18
Q

Which pattern will match only filenames ending with “b”?

A
b*

B
*b

C
b

D
[!b]*

A

B

*b

19
Q

Which pattern will match only filenames beginning with “b”?

A
b*

B
*b

C
b

D
[!b]*

A

A

b*

20
Q

Which pattern will match only filenames where the first character is not “b”?

A
b*

B
*b

C
b

D
[!b]*

A

D

[!b]*

21
Q

Which pattern will match all filenames containing a “b”?

A
b*

B
*b

C
b

D
[!b]*

A

C

b

22
Q

Which pattern will match only filenames that contain a number?

A
#

B
[[:digit:]]

C
[digit]

D
[0-9]

A

B

[[:digit:]]

23
Q

Which pattern will match only filenames that begin with an uppercase letter?

A
^?*

B
^*

C
[upper]*

D
[[:upper:]]*

E
[[CAP]]*

A

D

[[:upper:]]*

24
Q

Which pattern will match only filenames at least three characters in length?

A
???*

B
???

C
\3*

D
+++*

E
…*

A

A

???*