Q1. You have a /tmp/data directory containing the files file, filel, and file2.
You want to copy the filel and file2 files only to the /data-old directory that already exists. In a terminal window, which command accomplishes this?
A. cp /tmp/data /data-old
B. cp /tmp/data/./data-old
C. cp /tmp/data/* /data-old
D. cp /tmp/data/? /data-old
Answer: C
Q2. Where is the software package documentation located?
A. /usr/share/doc/packages/
B. /doc/packages/
C. /usr/packages/doc/
D. /usr/documentation/
E. /usr/package_doc/
Answer: A
Q3. What is the command mkinitrd is used for?
A. Create initramfs
B. Create kernel modules
C. Save boot loader
D. Create system targets
E. Save master boot record (MBR)
Answer: A
Q4. You want to add user tux to the southpole group without changing his primary group membership. Which command do you use for this purpose?
A. useradd -g southpole tux
B. usermod -g southpole tux
C. groupadd -A tux southpole
D. groupmod -A tux southpole
Answer: D
Q5. Which command shows you the default shell of a user?
A. w user
B. id user
C. who user
D. finger user
Answer: D
Q6. From command mode in vi, what do you have to do to entertext?
A. Press e
B. Press i
C. Press k
D. Press w
Answer: B
Q7. The useradd command is used to create new users.
Which file contains information on the primary group, shell, and other parameters to be used by useradd when not specified on the command line?
A. /etc/profile
B. /etc/passwd
C. /etc/shadow
D. /etc/default/useradd
Answer: D
Q8. What system command switches to a single user system without network?
A. systemctl isolate rescue target
B. systemctl isolate emergency target
C. systemctl switch single-usertarget
D. systemctl- -runlevel=1
E. systemctl set-default minimal target
Answer: A
Q9. Where are systemd unit files stored? (Choose two.)
A. /usr/li b/systemd/system/
B. /etc/systemd/system/
C. /lib/systemd/
D. /usr/systemd/unit
E. /usr/systemd/servieel
F. /usr/systemd/target/
G. /etc/systemd/units/
H. /etc/init.d/units/
Answer: A,B
Q10. Which option do you use to write the output of the 'hwinfo' command to a log file?
A. --dumpfile_name
B. -o file_name - -dump
C. . -log filejiame
D. --ofile_name
Answer: C