UNIX\Linux Final

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Most Linux distributions make use of what package manager? a.MPR b.RPM c.RMP d.PRM

RPM

A user account can be locked with the usermod command using what option? a.-L b.-u c.-l d.-U

a.-L

What option for the iptables command can be used to specify the default policy for a certain chain type? a.-P b.-C c.-c d.-p

a.-P

What option can be used with the ps command to display an entire list of processes across all terminals and including daemons? a.-e b.-l c.-f d.-a

a.-e

When used with the compress command, what option below can be used to compress symbolic links? a.-f b.-v c.-c d.-r

a.-f

What option can be added to the userdel command to remove the home directory of the target user? a.-r b.-x c.-R d.-d

a.-r

At what runlevel does a Linux system have no daemons active in memory, allowing it to be safely powered off? a.0 b.1 c.6 d.7

a.0

What number represents the stdin file descriptor? a.0 b.1 c.2 d.3

a.0

In order to redirect a file to the standard input of a command, what metacharacter should be used? a.< b.| c.> d.#

a.<

What is the most common hardware component to fail on a Linux system? a.Hard disks b.Video cards c.NICs d.Floppy drives

a.Hard disks

What stage of the GRUB boot loader typically resides on the MBR / GPT? a.Stage1 b.Stage1.5 c.Stage2 d.Stage2.5

a.Stage1

The ability to extract, manipulate, and format text using pattern action statements belongs to which command below? a.awk b.grep c.sed d.nl

a.awk

Adding the -t option to what command below will provide a list of all printers on the system and their status? a.lpstat b.lps c.lpr d.lp

a.lpstat?

What command looks for a Makefile and uses the information within to compile the source code into binary programs using the appropriate compiler program for the local hardware architecture? a.make b.configure c.make install d.install

a.make

To change the primary group temporarily to another group that is listed in the output of the groups and id commands, you can use which command below? a.newgrp b.groupadd c.newgroup d.groupmod

a.newgrp

The environment variables that are set by default and their current values can be viewed with what command? a.set b.get c.env d.setenv

a.set

What file contains the DSA public key in the /etc/ssh directory? a.ssh_host_dsa_key. pub b.ssh_target_dsa_key.pub c.ssh_target_dsa_key d.ssh_host_dsa_key

a.ssh_host_dsa_key. pub

​What two options below are used to tell the useradd command where a user's home directory will be, and where the skeleton directory is? a.​-k b.​-d c.​-s d.​-h

a.​-k b.​-d

What two device files below represent the first SCSI tape device, rewinding and non-rewinding?​ a.​/dev/st0 b.​/dev/nst0 c.​/dev/ht0 d.​/dev/ftape

a.​/dev/st0 b.​/dev/nst0

What two files contain settings for the CUPS daemon and the configuration information for each printer installed on a system, respectively?​ a.​/etc/cups/cupsd.conf b.​/etc/cupsd.conf c.​/etc/cups/printers.conf d.​/etc/prnt.config

a.​/etc/cups/cupsd.conf c.​/etc/cups/printers.conf

The CUPS Web administration tool can be accessed via web browser by accessing what TCP port below? a.​631 b.​8080 c.780​ d.​4586

a.​631

​What two BASH environment variables represent the current working directory, and the absolute pathname of the current shell, respectively? a.​PWD b.​PATH c.​SHELL d.​CWD

a.​PWD c.​SHELL

What two BASH environment variables represent the current working directory, and the absolute pathname of the current shell, respectively? a.​PWD b.​PATH c.​CWD d.​SHELL

a.​PWD d.​SHELL

The K desktop environment utilizes what window manager and toolkit below?​ a.​Qt toolkit b.​GTK+ toolkit c.​kwin d.​mutter

a.​Qt toolkit c.​kwin

After downloading an installing any shared libraries, what should be done to ensure ​the list of shared library directories and the list of shared libraries are updated? a.​Run the ldconfig command. b.​Run a program that uses the shared libraries. c.​Perform a system restart. d.​Check the /lib, /lib64, /usr/lib, or /usr/lib64 directories for the library.

a.​Run the ldconfig command.

Select the two keywords that can be used in the lilo.conf file in order to specify where LILO should be installed, and what parameters should be passed to the Linux kernel when loaded:​ a.​append= b.​boot= c.​initrd= d.​map=

a.​append= b.​boot=

In order to download DPM packages, what command should be used below?​ a.​apt-get b.​yum c.​dpm-grab d.​apt-search

a.​apt-get

What two commands below can be used to view the contents of a bzip2-compressed file page by page?​ a.​bzmore b.bzbuffer c.​bzless d.​bzpaged

a.​bzmore c.​bzless

What two commands below can be used to modify the password expiry information and a user's default shell? a.​chsh b.​shellmod c.​chexp d.​chage

a.​chsh d.​chage

What command can be used to search for DPM package information? a.​dpkg-query b.​dpkg-list c.​dpkg-info d.​dpkg-search

a.​dpkg-query

What command below can be used to re-install GRUB2 in the event that the boot loader becomes corrupted?​ a.​grub2-install b.​grub-install c.​install_grub d.​install_grub2

a.​grub2-install

What utility in the sysstat package measures the flow of information to and from disk devices?​ a.​iostat b.​mpstat c.​drivemon d.​iodump

a.​iostat

What two log files below will show a history of all login sessions, or a list of users and their last login time, depending on which one is viewed?​ a.​lastlog b.​secure c.​wtmp d.​xferlog

a.​lastlog c.​wtmp

What two log files below will show a history of all login sessions, or a list of users and their last login time, depending on which one is viewed?​ a.​lastlog b.​secure c.​xferlog d.​wtmp

a.​lastlog d.​wtmp

Select the two window managers that have been used in GNOME:​ a.​metacity b.​kwin c.​mutter d.​lxde

a.​metacity c.​mutter

The GNOME 3 desktop environment utilizes what window manager and toolkit below? a.​mutter b.​kwin c.​GTK+ toolkit d.​Qt toolkit

a.​mutter c.​GTK+ toolkit

What can be used on a Linux system to trace the lineage of each child process?​ a.​parent process ID b.​execution order ID c.​process fork ID d.​process ID

a.​parent process ID

What command below is used to display the lineage of a process by tracing its PPIDs until the init daemon?​ a.​pstree b.​pshead c.​psparent d.​psbranch

a.​pstree

What keyword tells the Linux kernel to avoid printing errors to the screen during system startup?​ a.​quiet b.​whisper c.​noerror d.​silent

a.​quiet

An RPM package can be converted to a cpio archive using what command? a.​rpm2cpio b.​rpmconv c.​cpioconv d.​conv_arch

a.​rpm2cpio

Select the two commands below that will provide the number of lines in a file, and the number of characters in a file, respectively:​ a.​wc -c b.​pr -d c.​count -c d.​wc -l

a.​wc -c d.​wc -l

Select the two commands below that will provide the number of lines in a file, and the number of characters in a file, respectively:​ a.​wc -l b.​wc -c c.​count -c d.​pr -d

a.​wc -l b.​wc -c

What yum command below can display a list of package group names? a.​yum grouplist b.​yum show groups c.​yum --list -g d.​yum list --groups

a.​yum grouplist

A user account can be locked with the usermod command using what option? a.-U b.-L c.-u d.-l

b.-L

Select the option that can be used with the lpstat command to display a list of printers that are enabled: a.-a b.-p c.-o d.-e

b.-p

Processes are started with what nice value by default? a.-20 b.0 c.1 d.19

b.0

The Adaptive Lempel-Ziv compression algorithm used by the compress utility is capable of an average compression ratio of what percent? a.30-40 b.40-50 c.50-60 d.60-70

b.40-50

What kill signal stops a process, then restarts it with the same PID? a.SIGINT b.SIGHUP c.SIGTERM d.SIGQUIT

b.SIGHUP

Select the escape sequence that is used for a form feed: a.\n b.\f c./n d./f

b.\f

What System Log Daemon priority indicates an error that should be rectified immediately, such as a corrupt system database? a.debug b.alert c.panic d.info

b.alert

The default BASH shell prompt is set by an environment variable. What command can be used to view this variable? a.ls #PS1 b.echo $PS1 c.echo #PWD d.ls $PWD

b.echo $PS1

The default BASH shell prompt is set by an environment variable. What command can be used to view this variable? a.ls $PWD b.echo $PS1 c.ls #PS1 d.echo #PWD

b.echo $PS1

A list of all exported environment and user-defined variables in a shell can be viewed with what command below? a.set b.env c.getenv d.setenv

b.env

Older hardware that is malfunctioning may begin to send large amounts of information to the CPU when not in use. What is this process called?​ a.​dumping b.jabbering ​c.​flooding d.​hiccuping

b.jabbering

What two commands below can be used to stop a process, either by PID number or process name?​ a.​stop b.kill​ c.​end d.​killall

b.kill​ d.​killall

In order to send a print job to a printer using CUPS, what command must be used? a.print b.lp c.pr d.pl

b.lp

Which command should be used to restrict access to printers? a.admin b.lpadmin c.lpa d.lpr

b.lpadmin

What log file contains information and error messages regarding network access generated by daemons such as ssd and xinetd? a.messages b.secure c.wtmp d.dmesg

b.secure

Which command below can be used to start, stop, or restart any daemons in the /etc/init.d directory? a.manip-daemon b.service c.daemon-service d.daemon

b.service

In order to change keyboard layout if X Windows can't detect the layout, you should use what CLI command? a.sys-config-keyboard b.system-config-keyboard c.system-config-kb d.sys-conf-kb

b.system-config-keyboard

What command can be used to change the maximum number of file handles that can be used by a program?​ a.​fhch b.ulimit ​c.​fhlimit d.​pgmod

b.ulimit

Which command can be used to count the number lines, words, and characters in a file? a.nl b.wc c.tr d.pr

b.wc

What character combination at the start of a shell script are referred to as a hashpling, and allow for the specification of the shell that interprets the contents of the script? a.​// b.​#! c.​@! d.​->

b.​#!

What two iptables options are used to specify the source and destination ports for a rule?​ a.​-dst b.​-dport c.​-sport d.​-src

b.​-dport c.​-sport

Files with what two file extensions are commonly known as tarballs?​ a.​.tz b.​.tgz c.​.tar.gz d.​.tar.b

b.​.tgz c.​.tar.gz

In Fedora 20, where are user configured settings for Xorg stored?​ a.​/etc/inittab b.​/etc/X11/xorg.conf.d/ c.​/etc/X11/xorg.conf d.​/etc/X11.conf

b.​/etc/X11/xorg.conf.d/

What two files below are the first two BASH environment files to be executed?​ a.​˜/.bashrc b.​/etc/bashrc c.​/etc/profile d.​˜/.bash_profile

b.​/etc/bashrc c.​/etc/profile

What file controls the default runlevel when using Systemd?​ a.​/etc/inittab b.​/etc/systemd/system/default.target c.​/etc/systemd.conf d.​/etc/systemd/inittab.target

b.​/etc/systemd/system/default.target

The GUI components and related software take up how much space on a typical Linux installation? a.​2 GB b.​4 GB c.​1 GB d.​3 GB

b.​4 GB

What option can be used in the journald configuration file to specify a file size limit to the event log?​ a.​Journal_Limit b.​SystemMaxUse c.​Max_file_size d.​SizeLimit

b.​SystemMaxUse

​In the process state column, what does an "R" indicate? a.​The process is reading from the local hard disk. b.​The process is currently running on the processor. c.​The process is recovering from a fatal error, and may potentially become a zombie. d.​The indicated process is being restarted because it resceived a SIGHUP kill signal.

b.​The process is currently running on the processor.

Select the two escape sequences that represent a horizontal tab and a vertical tab, respectively:​ a.​\V b.​\v c.​\t d.​\b

b.​\v c.​\t Maybe

What two window managers is the Compiz Fusion window manager based upon?​ a.​sawfish b.​compiz c.beryl​ d.​fvwm

b.​compiz c.beryl​

What is the default target on a system with a GUI installed?​ a.​single-user.target b.​graphical.target c.​gui.target d.​multi-user.target

b.​graphical.target

After modifying the /etc/default/grub file, what command should be run to rebuild the grub config files?​ a.​grub-compile b.​grub-mkconfig c.​grub-config d.​grub2-install

b.​grub-mkconfig

What command can be used to configure the LILO, ELILO, GRUB, and GRUB2 bootloaders?​ a.​parted b.​grubby c.​boot-config d.​loaderconf

b.​grubby

What two processes below will show up as PID 1, depending on whether a system uses UNIX SysV or Systemd init processes? a.​syslogd b.​init c.​kthreadd d.​systemd

b.​init d.​systemd

An RPM package can be converted to a cpio archive using what command? a.​rpmconv b.​rpm2cpio c.​cpioconv d.​conv_arch

b.​rpm2cpio

The System Log Daemon rsyslogd loads what configuration file under /etc, as well as any files within which directory under /etc?​ a.​log.conf b.​rsyslog.conf c.​rsyslog.d d.​log.d

b.​rsyslog.conf c.​rsyslog.d

​What two commands below can display memory information and swap usage? a.​memtop b.​vmstat c.​free d.​swap_stat

b.​vmstat c.​free

​If X Windows fails to start, what command can be used to troubleshoot the issue? a.​xdetail b.​xwininfo c.​xreload d.​xstatus

b.​xwininfo

Select the escape sequence that is used for a form feed: a. /f b. \n c. \f d. /n

c. \f

When there are multiple background processes executing in the shell, the jobs command indicates the most recent one with which symbol? a.- b.* c.+ d./

c.+

What option should be used in conjunction with the lp command in order to specify the destination printer name? a.-l b.-n c.-d d.-p

c.-d

What option, when added to the crontab command, opens the vi editor with a user's cron table? a.-u b.-c c.-e d.-f

c.-e

In order to display a list of at job IDs, what option can be specified to the at command? a.-u b.-d c.-l d.-a

c.-l

Which sar command option is used to display statistics for the processor queue? a.-v b.-c c.-q d.-r

c.-q

When using the compress utility, each file specified for compression is renamed with what extension? a..cmp b..cpz c..Z d..c

c..Z

Where is the skeleton directory located on most Linux systems? a./etc/skeleton b./var/skel c./etc/skel d./var/skeleton

c./etc/skel

By default, the shell on a Linux system limits the number of filehandles a program can have open to what value? a.256 b.512 c.1024 d.2048

c.1024

What number represents the stderr file descriptor? a.0 b.1 c.2 d.3

c.2

What is the default print job priority for all print jobs created by the lp command? a.-50 b.0 c.50 d.100

c.50

If no level of compression is specified, the gzip command assumes what compression level? a.4 b.5 c.6 d.7

c.6

What is the average compression ratio for the gzip utility using the LZ77 compression algorithm? a.40%-50% b.50%-60% c.60%-70% d.70%-80%

c.60%-70%

How many different kill signals can be sent by the kill command to a given process? a.16 b.32 c.64 d.128

c.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? a.| b.# c.> d.<

c.>

How often are sar commands scheduled to run on both Fedora 20 and Ubuntu Server 14.04? a.every two minutes b.every five hours c.every ten minutes d.every thirty days

c.every ten minutes

In the /etc/lilo.conf file, what keyword should be specified in order to provide the absolute pathname to the Linux kernel? a.install= b.default= c.image= d.root=

c.image=

In the /etc/lilo.conf file, what keyword should be specified in order to provide the absolute pathname to the Linux kernel? a.root= b.default= c.image= d.install=

c.image=

The dump/restore utility is limited to a maximum of how many different incremental backups? a.seven b.eight c.nine d.ten

c.nine

Running background processes using what command allows you to exit your command-line shell without ending any background processes? a.noshell b.nokill c.nohup d.continue

c.nohup

What command can be used to display the contents of a file that was compressed with the compress utility? a.acat b.cat c.zcat d.ccat

c.zcat

In standard GRUB notation, select the option below that represents the first hard drive in a system, and the first partition on that hard drive.​ a.​(hd1,1) b.​(hda,0) c.​(hd0,0) d.​(hda,1)

c.​(hd0,0)

What option can be added to the rpm command to upgrade a specified package only if an older version exists on the system? a.​-c b.​-z c.​-F d.​-U

c.​-F

​What option can be added to the dpkg command to remove a specified package from the system, including any configuration files used by the package? a.​-d b.​-D c.​-P d.​-r

c.​-P

QUESTION 15 ​Select the options to use with the cpio utility to cause the utility to extract files from an archive, and overwrite existing files during extraction without prompting for user confirmation: a.​-e b.​-f c.​-u d.​-i

c.​-u d.​-i

What device file below indicates the first ATAPI IDE tape device (nonrewinding)?​ a.​/dev/ht0 b.​/dev/st0 c.​/dev/nht0 d.​/dev/nst0

c.​/dev/nht0

On a system that is not using Systemd, what two log files contain information related to PAM? a.​/var/log/messages b.​/var/log/pam.log c.​/var/log/secure d.​/var/log/auth.log

c.​/var/log/secure d.​/var/log/auth.log

What number indicates the lowest kernel priority (PRI) of a process possible?​ a.​20 b.​0 c.​127 d.​-20

c.​127

What kill signal and number can be used to send an interrupt signal to a process, and is the same as using the Ctrl+c combination to kill a running process?​ a.​1 b.SIGHUP​ c.​2 d.​SIGINT

c.​2 d.​SIGINT

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?​ a.​2 b.​SIGINT c.​SIGKILL d.​9

c.​SIGKILL d.​9 Wrong?

What are the two most common technologies that provide asymmetric encryption on Linux systems? a.​Telnet b.​Apache httpd c.​Secure Shell (SSH) d.​GNU Privacy Guard (GPG)

c.​Secure Shell (SSH) d.​GNU Privacy Guard (GPG)

RPM packages that require other RPM packages to be installed on a system prior to being installed creates a relationship known as? a.​family package b.​recursing package c.branching package ​d.​package dependency

​d.​package dependency

When viewing the output of the ps ax​ command, what does a < symbol in the STAT column indicate for a process? a.​The process is exiting. b.​The process is accepting redirected input from a terminal. c.​The process is high priority. d.​The process is currently active on the processor.

c.​The process is high priority.

Select the escape sequence that starts a new line when used with echo: a.​\\ b.​\a c.​\n d.​\r

c.​\n

​What construct is intended for use in processing a list of objects, such as files, directories, users, printers, and so on? a.​switch b.​case c.​for d.​while

c.​for

What two processes below will show up as PID 1, depending on whether a system uses UNIX SysV or Systemd init processes? a.​kthreadd b.​syslogd c.​init d.​systemd

c.​init d.​systemd

What command below can be used to uninstall the LILO bootloader from an active partition?​ a.​lilo --remove b.​lilo -d c.​lilo -U d.​lilo delete

c.​lilo -U

​What configuration file contains parameters that set the default location for e-mail, password expiration information, minimum password length, and the range of UIDs and GIDs available for use? a.​system.conf b.​user.defs c.​login.defs d.​local.setup

c.​login.defs

Asymmetric encryption uses a pair of keys that are unique generated on each system. What are these two keys called? a.​secret key b.​normal key c.​private key d.​public key

c.​private key d.​public key

Select the metacharacter that can be used to send the standard output of one command to another command as standard input: a. # b. > c. < d. |

d. |

When killing a background job with the kill command, the background job ID must be prefixed by what character below? a.# b.$ c.& d.%

d.%

Select the option that, when used with the sar command, displays swap statistics: a.-s b.-b c.-q d.-B

d.-B

Select the iptables option that specifies the destination address of packets for a rule: a.-F b.-D c.-L d.-d

d.-d

Select the option that, when used with the gzip command, causes the compression ratio for files that have been compressed to be listed: a.-c b.-f c.-r d.-l

d.-l

Under what directory is the Linux kernel stored? a./root b./krnl c./ d./boot

d./boot

Which kill signal terminates a process by taking the process information in memory and saving it to a file called core on the hard disk in the current working directory? a.SIGINT b.SIGTERM c.SIGKILL d.SIGQUIT

d.SIGQUIT

After a background process has been started, what command below can be used to move it to the foreground? a.fgnd b.b2f c.fgd d.fg

d.fg

Running background processes using what command allows you to exit your command-line shell without ending any background processes? a.nokill b.noshell c.continue d.nohup

d.nohup

A system that uses an /etc/passwd file only can be converted to use /etc/shadow for security by using what command? a.passwdconv b.pwdcv c.passwd d.pwconv

d.pwconv

What permissions are required to execute a shell script in a manner similar to any other executable program on the system? a.execute b.read c.write and read d.read and execute

d.read and execute

In a cron table entry, what field specifies the absolute pathname to a command that is to be executed? a.first b.second c.fifth d.sixth

d.sixth

In order to change keyboard layout if X Windows can't detect the layout, you should use what CLI command? a.system-config-kb b.sys-config-keyboard c.sys-conf-kb d.system-config-keyboard

d.system-config-keyboard

In order to create user accounts on a Linux system, what command should be utilized? a.adduser b.usercreate c.uadd d.useradd

d.useradd

In standard GRUB notation, select the option below that represents the first hard drive in a system, and the first partition on that hard drive.​ a.​(hd1,1) b.​(hda,1) c.​(hda,0) d.​(hd0,0)

d.​(hd0,0)

What option can be added to the rpm command in order to query packages?​ a.​-i b.​-h c.​-v d.​-q

d.​-q

The System Log Daemon uses what TCP and UDP port to accept incoming requests from another System Log Daemon on a remote system?​ a.​23 b.​1012 c.​827 d.​514

d.​514

Assistive technologies are configured using what utility on Fedora 20 in GNOME?​ a.​Accessibility b.​Access Helper c.​Usability d.​Universal Access

d.​Universal Access

Which of the following is not one of the three main types of Linux commands?​ a.​shell scripts b.​binary programs c.​shell functions d.​device calls

d.​device calls

What priority used by the System Log Daemon indicates a very serious system condition that would normally be broadcast to all users?​ a.​error b.​alert c.​crit d.​panic

d.​panic

When using Systemd, what command can be used to start, stop, and configure daemons to start automatically when the system starts? a.​service b.​chkconfig c.​syscontroller d.​systemctl

d.​systemctl


Kaugnay na mga set ng pag-aaral

Chapter 5: "Knowing the Fair Housing Laws for Selling Real Estate

View Set

BSC2086-TCC-Hickey- Unit 1 HW (ch. 15-16)

View Set

CHES 2020 - Practice Exam quesitons

View Set