Free Linux Foundation Certified System Administrator v5.0 Questions and Answers — Questions and Answers
Question 1: When a process is launched using the nice command, what is the default nice level?
- 10 (Correct answer)
- -10
- 0
- 20
Correct answer: 10
The `nice` command is used to launch a process with a modified scheduling priority. When `nice` is executed without specifying a particular nice level (e.g., `nice command`), it defaults to a nice level of 10. A higher nice value indicates a lower priority, meaning the process will receive fewer CPU resources compared to processes with lower nice values.
Question 2: Why would someone use a screen reader?
- It reads the parameters of the attached monitors and creates an appropriate X11 configuration.
- It reads text displayed on the screen to blind or visually impaired people. (Correct answer)
- It manages and displays files that contain e-books.
- It displays lines and markers to help people use speed reading techniques.
Correct answer: It reads text displayed on the screen to blind or visually impaired people.
A screen reader is an assistive technology primarily designed to help blind or visually impaired individuals interact with digital content. It interprets and converts text and graphical elements displayed on a computer screen into speech or braille, enabling users to navigate interfaces and access information that would otherwise be inaccessible.
Question 3: What program is launched during a system boot cycle after the BIOS has finished its tasks?
- The kernel
- The bootloader (Correct answer)
- The inetd program
- The init program
Correct answer: The bootloader
After the BIOS completes its initial hardware checks and initialization, it transfers control to the bootloader. The bootloader (e.g., GRUB, LILO) is then responsible for loading the operating system kernel into memory and initiating the subsequent stages of the system boot process. The kernel is loaded *by* the bootloader, not directly by the BIOS.
Question 4: How may the environment variable FOOBAR be disabled for the sole purpose of running my script?
- env -i FOOBAR./myscript
- unset -v FOOBAR;./myscript
- set -a FOOBAR="";./myscript
- env -u FOOBAR./myscript (Correct answer)
Correct answer: env -u FOOBAR./myscript
The `env` command allows you to run a command in a modified environment. The `-u` option specifically unsets a specified environment variable for the duration of the command's execution. Therefore, `env -u FOOBAR ./myscript` will run `myscript` with the `FOOBAR` variable temporarily unset, without affecting its state in the parent shell.
Question 5: Which of the following is a facility for syslog? (Select TWO right responses.)
- remote
- local7 (Correct answer)
- mail (Correct answer)
- advanced
- postmaster
Correct answer: local7
Syslog facilities are used to categorize messages by the type of program or system component that generated them. Both `mail` (for mail system messages) and `local7` (one of eight local-use facilities, `local0` through `local7`) are standard and commonly used syslog facilities. These categories help in filtering and routing log messages effectively.
Question 6: What about the ntpdate command is true?
- It updates the local system's date (i.e. day, month and year) but not the time (i.e. hours, minutes, seconds).
- It is the primary management command for the NTP time server.
- It sends the local system time to one or many remote NTP time servers for redistribution.
- It queries one or more NTP time servers and adjusts the system time accordingly. (Correct answer)
- It can be used by any user to set the user clock independently of the system clock.
Correct answer: It queries one or more NTP time servers and adjusts the system time accordingly.
The `ntpdate` command is used for a one-time synchronization of the system clock with a remote Network Time Protocol (NTP) server. It queries one or more specified NTP servers, calculates the time difference, and then immediately adjusts the local system's date and time to match. This is distinct from the `ntpd` daemon, which provides continuous time synchronization.
Question 7: Which of the following commands moves and restarts the most recent shell task in the background?
- bg (Correct answer)
- run
- back
- fg
Correct answer: bg
In a shell environment, if a command is suspended (e.g., by pressing Ctrl+Z), it becomes a stopped job. The `bg` command (background) is used to resume such a suspended job and run it in the background, allowing the user to continue interacting with the shell. The `fg` command would bring a job back to the foreground.
When a process is launched using the nice command, what is the default nice level?