Docsity

ITEC 200 Final.docx....ITEC 200 Final.docx, Exams of Nursing

Toggle sidebar
bg1
ITEC 200 Final
What is a shell in the context of a Linux system? - correct answer A shell is a
command line interpreter that provides a user interface for interaction with the
operating system.
In Linux, what is the process with PID 1? - correct answer The process with PID 1 is
typically the init process or systemd on newer systems. It is the first process that
runs on the system and is responsible for starting all other processes.
What is a daemon process in Linux? - correct answer A daemon process in Linux is a
background process that is not directly controlled by the user and typically provides
a service such as handling requests for network resources.
What command can be used to view the status of a unit in systemd? - correct
answer The command systemctl status can be used to view the status of a systemd
unit.
Which service in Linux is primarily responsible for sorting and organizing syslog
messages into /var/log? - correct answer The rsyslog service is primarily responsible
for this task.
Which syslog severity level is considered to have the highest priority? - correct
answer The emerg severity level is considered to have the highest priority.
Where does a Linux system initially retrieve its system time when it starts up? -
correct answer Initially, the system time is retrieved from the hardware clock on the
system motherboard.
What command would you use in Red Hat Enterprise Linux 8 to set the local time
zone? - correct answer The timedatectl command is recommended for setting the
local time zone.
pf3
pf4
pf5

Partial preview of the text

Download ITEC 200 Final.docx....ITEC 200 Final.docx and more Exams Nursing in PDF only on Docsity!

ITEC 200 Final

What is a shell in the context of a Linux system? - correct answer A shell is a command line interpreter that provides a user interface for interaction with the operating system. In Linux, what is the process with PID 1? - correct answer The process with PID 1 is typically the init process or systemd on newer systems. It is the first process that runs on the system and is responsible for starting all other processes. What is a daemon process in Linux? - correct answer A daemon process in Linux is a background process that is not directly controlled by the user and typically provides a service such as handling requests for network resources. What command can be used to view the status of a unit in systemd? - correct answer The command systemctl status can be used to view the status of a systemd unit. Which service in Linux is primarily responsible for sorting and organizing syslog messages into /var/log? - correct answer The rsyslog service is primarily responsible for this task. Which syslog severity level is considered to have the highest priority? - correct answer The emerg severity level is considered to have the highest priority. Where does a Linux system initially retrieve its system time when it starts up? - correct answer Initially, the system time is retrieved from the hardware clock on the system motherboard. What command would you use in Red Hat Enterprise Linux 8 to set the local time zone? - correct answer The timedatectl command is recommended for setting the local time zone.

How many bits are there in an IPv4 address? - correct answer There are 32 bits in an IPv4 address. What term determines how many leading bits in the IP address contribute to the network address? - correct answer The term is called a netmask. How many bits are there in an IPv6 address? - correct answer There are 128 bits in an IPv6 address. What is the network address of 192.168.1.107/24? - correct answer The network address is 192.168.1.0. What is the broadcast address of 10.1.1.18/8? - correct answer The broadcast address is 10.255.255.255. Which device is used to connect networks to form the Internet? - correct answer Routers are used to connect networks to form the Internet. In yum, which module component allows you to work with different versions side by side? - correct answer The application stream allows you to work with different versions side by side. Does the yum command allow you to install, update, remove, and get information about software packages and their dependencies? - correct answer True, the yum command allows all of these operations. What yum command would you use to install the GNU C Compiler (gcc) package? - correct answer The command yum install gcc would install the gcc package. Which yum command generates a list of available updates for all installed packages on a Linux system? - correct answer The command yum list updates generates a list of available updates.

What command would you use to install an update for all installed packages on a Linux system? - correct answer The command yum update would install updates for all installed packages. What does a netmask of /24 signify in an IP address? - correct answer A netmask of /24 signifies that the first 24 bits of the IP address are used for the network This command is used for listing current processes. It can provide detailed process information, including: User identification (UID), which determines process privileges Unique process identification (PID) CPU and real time already expended How much memory the process has allocated in various locations The location of process stdout, known as the controlling terminal The current process state - correct answerps command This program is a dynamic view of the system's processes, displaying a summary header followed by a process or thread list similar to ps information. Unlike the static ps output, this continuously refreshes at a configurable interval, and provides capabilities for column reordering, sorting, and highlighting. User configurations can be saved and made persistent. - correct answertop program/command This command is one way to display the current load average. It prints the current time, how long the machine has been up, how many user sessions are running, and the current load average. - correct answeruptime command Name for Linux process state which is signified by R; The process is either executing on a CPU or waiting to run. Process can be executing user routines or kernel routines (system calls), or be queued and ready when in this state - correct answerRunning/ TASK_RUNNING Name for Linux process state which is signified by S; The process is waiting for some condition: a hardware request, system resource access, or signal. When an event or signal satisfies the condition, the process returns to Running. - correct answerSleeping/TASK_INTERRUPTIBLE

Name for Linux process state which is signified by D; This process is also Sleeping, but unlike S state, does not respond to signals. Used only when process interruption may cause an unpredictable device state. - correct answerSleeping/TASK_UNINTERRUPTIBLE Name for Linux process state which is signified by K; Identical to the uninterruptible D state, but modified to allow a waiting task to respond to the signal that it should be killed (exit completely). Utilities frequently display these processes as D state. - correct answerSleeping/TASK_KILLABLE Name for Linux process state which is signified by I; A subset of state D. The kernel does not count these processes when calculating load average. Used for kernel threads. Flags TASK_UNINTERRUPTABLE and TASK_NOLOAD are set. Similar to TASK_KILLABLE, also a subset of state D. It accepts fatal signals. - correct answerSleeping/TASK_REPORT_IDLE Name for Linux process state which is signified by T; The process has been Stopped (suspended), usually by being signaled by a user or another process. The process can be continued (resumed) by another signal to return to Running. - correct answerStopped/ TASK_STOPPED Name for Linux process state which is signified by T; A process that is being debugged is also temporarily Stopped and shares the same T state flag. - correct answerStopped/TASK_TRACED Name for Linux process state which is signified by Z; A child process signals its parent as it exits. All resources except for the process identity (PID) are released. - correct answerZombie/EXIT_ZOMBIE Name for Linux process state which is signified by X; When the parent cleans up (reaps) the remaining child process structure, the process is now released completely. This state will never be observed in process-listing utilities. - correct answerZombie/ EXIT_DEAD You can display the list of jobs that Bash is tracking for a particular session with this command. - correct answerjobs command

Signal #? - Suspends the process. Cannot be blocked or handled. Short name STOP

  • correct answerSignal # Keyboard control sequence to suspend a process - correct answerCtrl+z Keyboard control sequence to kill a process - correct answerCtrl+c Keyboard control sequence to core dump a process - correct answerCtrl+ This command sends a signal to a process by PID number. Despite its name, this can be used to send any signal, not just those for terminating programs. You can use the ______ command to list the names and numbers of all available signals. - correct answerkill command; kill -l Use this to send a signal to one or more processes which match selection criteria. Selection criteria can be a command name, a process owned by a specific user, or all system-wide processes. This command includes advanced selection criteria: Command - Processes with a pattern-matched command name. UID - Processes owned by a Linux user account, effective or real. GID - Processes owned by a Linux group account, effective or real. Parent - Child processes of a specific parent process. Terminal - Processes running on a specific controlling terminal. - correct answerpkill Use this command to list user logins and current running processes - correct answerw command Use this command to view a process tree for the system or a single user. - correct answerpstree command This command can help you determine how many CPUs a system has. - correct answerlscpu command