Ensurepass

QUESTION 1

A administrator is planning a partition scheme for a new Linux installation. Which of the following directories should the administrator consider for separate partitions? (Select THREE).

 

A. /etc

B. /home

C. /var

D. /lib

E. /tmp

 

Answer: B,C,E

 

 

QUESTION 2

Which of the following is the difference between the –remove and the –purge action with the dpkg command?

 

A. –remove removes the program, –purge also removes the config files.

B. –remove only removes the program, –purge only removes the config files.

C. –remove removes a package, –purge also removes all packages dependent on it.

D. –remove removes only the package file itself, –purge removes all files related to the package.

 

Answer: A

 

 

QUESTION 3

Which of the following is the process ID number of the init program?

 

A. -1

B. 0

C. 1

D. It is different with each reboot.

E. It is set to the current run level.

 

Answer: C

 

 

QUESTION 4

Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of following signal codes?

 

A. 1 (SIGHUP)

B. 2 (SIGINT)

C. 3 (SIGQUIT)

D. 9 (SIGKILL)

E. 15 (SIGTERM)

 

Answer: B

 

 

QUESTION 5

To what environment variable will an administrator assign or append a value if the administrator needs to tell the dynamic linker to look in a build directory for some of a program’s shared libraries?

 

A. LD_LOAD_PATH

B. LD_LIB_PATH

C. LD_LIBRARY_PATH

D. LD_SHARE_PATH

E. LD_RUN_PATH

 

Answer: C

 

 

QUESTION 6

 

A. administrator has just added a CD-ROM drive (/dev/hdd) to a system and added it to the administrator’s fstab. Typically the administrator can use which of the following commands to mount media in that drive to /mnt/cdrom?

 

A. mount /dev/cdrom /mnt/cdrom

B. mount /dev/cdrom

C. mount -t cdrom /dev/cdrom /mnt/cdrom

D. mount /mnt/cdrom

E. automount /mnt/hdd /mnt/cdrom}

 

Answer: D

 

 

QUESTION 7

 

A. administrator wishes to kill a process with a PID of 123. Which of the following commands will allow the process to “clean up” before exiting?

 

A. kill -1 123

B. kill -9 123

C. kill -15 123

D. kill -17 123

 

Answer: C

 

 

QUESTION 8 CORRECT TEXT

What command with all options and/or parameters will send the signal USR1 to any executing process of program apache2?

 

Answer: killall -s SIGUSR1 apache2, killall -s USR1 apache2,killall -SIGUSR1 apache2,killall -USR1 apache2

 

 

QUESTION 9

All of the following commands will update the Modify timestamp on the file /tmp/myfile.txt EXCEPT:

 

A. file /tmp/myfile.txt

B. echo “Hello” >/tmp/myfile.txt

C. sed -ie “s/1/2/” /tmp/myfile.txt

D. echo -n “Hello” >/tmp/myfile.txt

E. touch /tmp/myfile.txt

 

Answer: A

 

 

QUESTION 10

In the vi editor, which of the following commands will delete the current line at the cursor and the 16 lines following it (17 lines total)?

 

A. 17d

B. 17dd

C. 17x

D. d17d

E. 16d

 

Answer: B

 

 

Comments are closed.