Question 16 :
Which of the following commands will show a list of the files in your home directory including hidden files and the contents of all subdirectories? Choose one:
The ls command is used to display a listing of files. The -a option will cause hidden files to be displayed as well. The -R option causes ls to recurse down the directory tree. All of this starts at your home directory.
Question 17 :
You have a directory called /home/ben/memos and want to move it to /home/bob/memos so you issue the command mv /home/ben/memos /home/bob. What is the results of this action? Choose one:
When using the mv command to move a directory, if a directory of the same name exists then a subdirectory is created for the files to be moved.
Question 18 :
Which of the following tasks is not necessary when creating a new user by editing the /etc/passwd file? Choose one:
There is no need to link the user's home directory to the shell command. Rather, the specified shell must be present on your system.
Question 19 :
You issue the following command useradd -m bobm But the user cannot logon. What is the problem? Choose one:
The useradd command does not assign a password to newly created accounts. You will still need to use the passwd command to assign a password.
Question 20 :
You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this? Choose one:
The default page length when using pr is 66 lines. The -l option is used to specify a different length.