When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
A. -10
B. 0
C. 10
D. 20

Answer: C

What command will generate a list of user names from /etc/passwd along with their login shell?

What command will generate a list of user names from /etc/passwd along with their login shell?
A. column -s : 1,7 /etc/passwd
B. chop -c 1,7 /etc/passwd
C. colrm 1,7 /etc/passwd
D. cut -d: -f1,7 /etc/passwd

Answer: D

When removing a package, which of the following dpkg options will completely remove the files including configuration files?

When removing a package, which of the following dpkg options will completely remove the files including configuration files?
A. –clean
B. –delete
C. –purge
D. Cremove

Answer: C

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
A.jobs

Answer: A

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
A. chown dan/staff file.txt
B. chown Dan: staff file.txt
C. chown -u dan -g staff file.txt
D. chown dan -g staff file.txt

Answer: B

Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?

Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
A. dd if=/dev/zero of=/dev/sda bs=512
B. dd if=/dev/zero of=/dev/sda bs=512 count=1
C. dd if=/dev/zero of=/dev/sda bs=440 count=1
D. dd if=/dev/zero of=/dev/sda bs=440

Answer: C

Which of the following environment variables overrides or extends the list of directories holding shared libraries?

Which of the following environment variables overrides or extends the list of directories holding shared libraries?
A. LD_LOAD_PATH
B. LD_LIB_PATH
C. LD_LIBRARY_PATH
D. LD_SHARE_PATH
E. LD_RUN_PATH

Answer: C

Which of the following commands will print the last 10 lines of a text file to the standard output?

Which of the following commands will print the last 10 lines of a text file to the standard output?
A. cat -n 10 filename
B. dump -n 10 filename
C. head -n 10 filename
D. tail -n 10 filename

Answer: D

Which of the following commands lists the dependencies of a given dpkg package?

Which of the following commands lists the dependencies of a given dpkg package?
A. apt-cache depends-on package
B. apt-cache dependencies package
C. apt-cache depends package
D. apt-cache requires package

Answer: C