This question is related to files and directories in the Unix file system.
-
Typing
pwd
at the command line gives the result:/home/me/organisms/animals/
. What would result from typingwhoami
?- home
- me
- ~/me
- ~/home
- /animals
-
Assuming that
pwd
gives the same result as in 1., what could you type to list all the.deciduous
trees in thetrees
folder, if the parent folder of/trees/
is/plants/
, and the parent folder of/plants/
is/organisms/
?- ls ../plants/trees/*.deciduous
- ~/organisms/plants/trees/*.deciduous ls
- ls ~/organisms/plants/trees/*.deciduous
- ../plants/trees/*.deciduous ls
- a & d
- a & c
This question tests understanding of the fact that
ls
is a program run by the shell (and thus should come first) and navigation through the file system. The correct answer is f.; both a. and c. are correct. b. and d. the correct file path but ls comes last. e. suggests that what can be switched around is the order of ls and the file path, rather than showing that there are different ways to indicate the same file path.