linux chapter 7,8,9
What option can be used with the ps command to display an entire list of processes across all terminals and including daemons?
-e
In order to display a list of at job IDs, what option can be specified to the at command?
-l
Under what directory is the Linux kernel stored?
/boot
What kill signal stops a process, then restarts it with the same PID?
SIGHUP
Select the test statement that can be used to determine if A is numerically greater than B:
[ A -gt B ]
What character is used to delimit most Linux configuration files?
colon
The default BASH shell prompt is set by an environment variable. What command can be used to view this variable?
echo $PS1
In an if construct, what statements are optional?
elif else
A list of all exported environment and user-defined variables in a shell can be viewed with what command below?
env
The /etc/rc.d/rc 5 script only executes files that start with S in the /etc/rc.d/rc5.d/ directory. true or false
false
After a background process has been started, what command below can be used to move it to the foreground?
fg
After modifying the /etc/default/grub file, what command should be run to rebuild the grub config files?
grub-mkconfig
Select the two window managers that have been used in GNOME:
metacity mutter
The GNOME 3 desktop environment utilizes what window manager and toolkit below?
mutter GTK+ toolkit
What command below is used to display the lineage of a process by tracing its PPIDs until the init daemon?
pstree
What keyword tells the Linux kernel to avoid printing errors to the screen during system startup?
quiet
The environment variables that are set by default and their current values can be viewed with what command?
set
You can use the sed command to remove unwanted lines of text. true or false
true
Zombie processes are also known as defunct processes. true or false
true
Much like the SysV init daemon, the Systemd init daemon is used to start daemons during system initialization as well as start and stop daemons after system initialization. True or false
true
Select the two commands below that will provide the number of lines in a file, and the number of characters in a file, respectively:
wc -l wc -c
On a Fedora based system, where are the shell environment and scheduled commands for at stored?
/var/spool/at
What two processes below will show up as PID 1, depending on whether a system uses UNIX SysV or Systemd init processes?
init systemd
The K desktop environment utilizes what window manager and toolkit below?
kwin Qt toolkit
What environment file is always executed immediately after login for all users on the system, and sets most environment variables, such as HOME and PATH?
/etc/profile
At what runlevel does a Linux system have no daemons active in memory, allowing it to be safely powered off?
0
Processes are started with what nice value by default?
0
What number indicates the lowest kernel priority (PRI) of a process possible?
127
In Linux, what runlevel is also known as the multiuser mode?
2
What number represents the stderr file descriptor?
2
How many different kill signals can be sent by the kill command to a given process?
64
The standard output and standard error from a terminal screen within the BASH shell can be redirected to a file on the filesystem using what shell metacharacter, followed by the absolute or relative pathname of the file?
>
What signal name and number function as the absolute kill signal, and when issued, forces the Linux kernel to stop executing the process by sending the process's resources to /dev/null?
SIGKILL 9
Select the escape sequence that is used for a form feed:
\f
the ability to extract, manipulate, and format text using pattern action statements belongs to which command below?
awk
On Linux systems that use the traditional UNIX SysV init, what command below can be used to list and modify the runlevels that a daemon is started in?
chkconfig
What two window managers is the Compiz Fusion window manager based upon?
compiz beryl
In the output of the ps -l command, what column is the most valuable to systems administrators because it indicates what the process is currently doing?
process state
What two BASH environment variables represent the current working directory, and the absolute pathname of the current shell, respectively?
shell pwd
In order to change keyboard layout if X Windows can't detect the layout, you should use what CLI command?
system-config-keyboard
When using Systemd, what command can be used to start, stop, and configure daemons to start automatically when the system starts?
systemctl
Any command that can be executed on the command line can also be placed inside any environment file. true or false
true
Each process can start an unlimited number of other processes. true or false
true
You can choose to use a window manager only, and not use a desktop manager. true or false
true
What can be used on a Linux system to trace the lineage of each child process?
parent process ID