Chapter 3 Exams Flashcards
Which directory contains persistent, system-specific configuration data?
A
/etc
B
/root
C
/run
D
/usr
A
/etc
Which directory is the top of the system’s file system hierarchy?
A
/etc
B
/
C
/home/root
D
/root
B
/
Which directory contains user home directories?
A
/
B
/home
C
/root
D
/user
B
/home
Which directory contains temporary files?
A
/tmp
B
/trash
C
/run
D
/var
A
/tmp
Which directory contains dynamic data, such as for databases and websites?
A
/etc
B
/run
C
/usr
D
/var
D
/var
Which directory is the administrative superuser’s home directory?
A
/etc
B
/
C
/home/root
D
/root
D
/root
Which directory contains regular commands and utilities?
A
/commands
B
/run
C
/usr/bin
D
/usr/sbin
C
/usr/bin
Which directory contains non-persistent process runtime data?
A
/tmp
B
/etc
C
/run
D
/var
C
/run
Which directory contains installed software programs and libraries?
A
/etc
B
/lib
C
/usr
D
/var
C
/usr
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
cd
Which command displays the absolute path name of the current location?
A
cd
B
pwd
C
ls ~
D
ls -d
B
pwd
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
cd -
Which command will always change the working directory up two levels from the current location?
A
cd ~
B
cd ../
C
cd ../..
D
cd -u2
C
cd ../..
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
D
ls -al
Which command will always change the working directory to /bin?
A
cd bin
B
cd /bin
C
cd ~bin
D
cd -bin
B
cd /bin