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).
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.
Which of the following is the process ID number of the init program?
D. It is different with each reboot.
E. It is set to the current run level.
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)
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. 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}
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
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
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
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)?