Unix-basics-assignment-help-
26. The Linux command to delete a directory and all the subdirectories and files in it is:
a. rm –recursive directory-name
b. rm –r directory-name
c. rm –all directory-name
d. rm –sub directory-name
e. rm –all
27. The command to list a hierarchy of directories is:
a. ls -R directory -name
b. ls -a directory -name
c. ls -all directory -name
d. ls -hierarchy 3directory -name
e. ls directory Äname all
28. The command to create 2 levels of directories is:
a. mkdir -p level-1/level-2
b. mkdir -l level-1/level-2
c. mkdir -2 level-1/level-2
d. mkdir -h level-1/level-2
e. mkdir -p level-1 level-2
29. The Linux command to create 2 levels of directories is:
a. mkdir –parent level-1/level-2
b. mkdir –l level-1/level-2
c. mkdir -l level-1/level-2
d. mkdir -hierarchy level-1/level-2
e. mkdir -p level-1 level-2
30. If your current directory pathname is /usr/david, the command ls ..
a. displays the current directory
b. lists files in the working directory
c. lists files in david directory
d. lists files in the usr directory
31. The command to delete a directory and all the subdirectories and files in it is
a. rm -r directory-name
b. rm directory-name
c. rm -all directory-name
d. rm -sub directory-name
32. You log off from the system by
a. typing exit command or [Ctrl-d] key
b. typing good bye
c. just turning the terminal off
d. none of the above
33. The command options are
a. mandatory part of the command line
b. optional part of the command line
c. the same for all commands
d. placed before the command name
e. placed after the argument field
34. The interrupt character is used to
a. log off
b. terminate a running program
c. erase the entire command line
d. turn the system off
e. delete a character from the command line
35. The command arguments are
a. mandatory part of the command line
b. optional part of the command line
c. the same for all commands
d. placed before the command name
e. placed before the option field