Linux Essentials Chapters 12,13,14 and 15

Is this your test? Login to manage it. If not, you can generate a test just like it.

This is a non-interactive preview of the quiz content.

1.
1 point
Describe the effect of the following command, assuming it completes successfully:
# groupadd henry
2.
1 point
User accounts have lower UID numbers than do system accounts.
3.
1 point
What is the purpose of conditional expressions in shell scripts?
4.
1 point
Linux stores information on its groups in the /etc/groups file.
5.
1 point
What command would you type (as root) to change the ownership of somefile.txt from ralph to tony?
6.
1 point
To create a system account, you must pass the ____ option to groupadd.
7.
1 point
User accounts have higher UID numbers than do system accounts.
8.
1 point
The file that associates usernames with UID numbers in Linux is _______________.
(Provide the complete path to the file.)
9.
1 point
You want to change the username of a user from elnino to torres, without
altering anything else about the account. To do so, you would type __________.
10.
1 point
What would a Linux system administrator type to remove the nemo account and
its home directory?
11.
1 point
You want to run the command iptables -L as root, but you’re logged in as
an ordinary user. Which of the following commands will do the job, assuming the
system is configured to give you root access via the appropriate command?
12.
1 point
Only root may change a file’s ownership with chown.
13.
1 point
Unvalid looping statements in Bash include for, while, and until.
14.
1 point
What command can you use to display prompts for a user in a shell script?
15.
1 point
You want to create an account for a new user, using the username theowalcott and
giving the user a UID of 1926. The command to do this is useradd ________.
16.
1 point
What symbolic representation can you pass to chmod to give all users execute
access to a file, without affecting other permissions?
17.
1 point
A user types myscript laser.txt to run a script called
myscript. Within myscript, the $0 variable holds the value laser.txt.-
18.
1 point
Which of the following commands can you use to change a file’s group?
19.
1 point
You’ve written a simple shell script that does nothing but launch programs.
In order to ensure that the script works with most user shells, what should its first line read?
20.
1 point
Linux stores information on its groups in the /etc/group file.
21.
1 point
What three-character symbolic string represents read and execute permission
but no write permission?
22.
1 point
Command-line users should normally use usermod to change their
passwords.
23.
1 point
After deleting an account, files formerly owned by the deleted
account may remain on the computer.
24.
1 point
A file with permissions of 755 can be read by any user on the
computer, assuming all users can read the directory in which it resides.
25.
1 point
What option causes chown to change ownership on an entire directory tree?
26.
1 point
What Bash scripting command can you use to control the program flow based on
a variable that can take many values (such as all the letters of the alphabet)?
27.
1 point
whoiam provides more information than id.
28.
1 point
Of the following, which is the best password?
29.
1 point
Describe the effect of the following short script, cp1, if it’s called as cp1 big.c
big.cc:
#!/bin/bash
cp $2 $1
30.
1 point
Valid looping statements in Bash include for, while, and until.
31.
1 point
The following script doesn't launch three simultaneous instances of the
terminal program.

#!/bin/bash
terminal
terminal
terminal
32.
1 point
What type of information will you find in /etc/passwd for ordinary user
accounts? (Select all that apply.)
33.
1 point
UIDs below 500 or 1,000 (depending on the distribution) are reserved for use
by __________ accounts.
34.
1 point
As a general rule, you should employ extra care when running
programs as root.
35.
1 point
The following script launches three simultaneous instances of the
terminal program.

#!/bin/bash
terminal
terminal
terminal
36.
1 point
whoami provides more information than id.
37.
1 point
To learn who is currently logged into the computer and what programs they’re
currently running, you can type _____.
38.
1 point
Only root or a file owner may change the permissions on a file.
39.
1 point
After using a text editor to create a shell script, what step should you take before
trying to use the script by typing its name?
40.
1 point
Typing ls -ld wonderjaye reveals a symbolic file mode of drwxr-xr-x.
Which of the following are true? (Select all that apply.)
41.
1 point
What is the purpose of the system account with a UID of 0?
42.
1 point
Only root may use the chmod command.