New Year Special Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Question # 4

Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)

Full Access
Question # 5

Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)

  • uk.co.certification.simulator.questionpool.PList@190e5930
Full Access
Question # 6

Typically, which top level system directory is used for files and data that change regularly while the system is running and are to be kept between reboots? (Specify only the top level directory)

A.

/var

B.

/var/,

C.

Var

D.

var/

Full Access
Question # 7

You want to preview where the package file, apache-xml.i386.rpm, will install its files before installing it. What command do you issue?

A.

rpm -qp apache-xml.i386.rpm

B.

rpm -qv apache-xml.i386.rpm

C.

rpm -ql apache-xml.i386.rpm

D.

rpm -qpl apache-xml.i386.rpm

Full Access
Question # 8

Which RPM command will output the name of the package which supplied the file /etc/exports?

A.

rpm -F /etc/exports

B.

rpm -qf /etc/exports

C.

rpm -Kl /etc/exports

D.

rpm -qp /etc/exports

E.

rpm -qi/etc/exports

Full Access
Question # 9

Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?

A.

dd if=/dev/zero of=/dev/sda bs=512

B.

dd if=/dev/zero of=/dev/sda bs=512 count=1

C.

dd if=/dev/zero of=/dev/sda bs=440 count=1

D.

dd if=/dev/zero of=/dev/sda bs=440

Full Access
Question # 10

Which of the following commands can be used to download the RPM package kernel without installing it?

A.

yum download --no-install kernel

B.

yumdownloader kernel

C.

rpm --download --package kernel

D.

rpmdownload kernel

Full Access
Question # 11

To what environment variable will you assign or append a value if you need to tell the dynamic linker to look in a build directory for some of a program's shared libraries?

A.

LD_LOAD_PATH

B.

LD_LIB_PATH

C.

LD_LIBRARY_PATH

D.

LD_SHARE_PATH

E.

LD_RUN_PATH

Full Access
Question # 12

When removing a package, which of the following dpkg options will completely remove the files including configuration files?

A.

--clean

B.

--delete

C.

--purge

D.

–remove

Full Access
Question # 13

Which of the following is correct when talking about mount points?

A.

Every existing directory can be used as a mount point.

B.

Only empty directories can be used as a mount point.

C.

Directories need to have the SetUID flag set to be used as a mount point.

D.

Files within a directory are deleted when the directory is used as a mount point.

Full Access
Question # 14

An administrator has issued the following command:

grub-install --root-directory=/custom-grub /dev/sda

In which directory will new configuration files be found? (Provide the full directory path only without the filename)

A.

/custom-grub/boot/grub/

B.

/custom-grub/boot/grub

Full Access
Question # 15

To prevent users from being able to fill up the / partition, the ____________ directory should be on a separate partition if possible because it is world writeable.

A.

/tmp

B.

tmp

Full Access
Question # 16

Which of the following commands lists the dependencies of the RPM package file foo.rpm?

A.

rpm –qpR foo.rpm

B.

rpm –dep foo

C.

rpm –ld foo.rpm

D.

rpm –R foo.rpm

E.

rpm –pD foo

Full Access
Question # 17

Which of the following commands displays the output of the foo command on the screen and also writes it to a file called /tmp/foodata?

A.

foo | less /tmp/foodata

B.

foo | cp /tmp/foodata

C.

foo > /tmp/foodata

D.

foo | tee /tmp/foodata

E.

foo > stdout >> /tmp/foodata

Full Access
Question # 18

Which daemon handles power management events on a Linux system?

A.

acpid

B.

batteryd

C.

pwrmgntd

D.

psd

E.

inetd

Full Access
Question # 19

Which of the following directories on a 64-bit Linux system typically contain shared libraries? (Choose two.)

A.

~/.lib64/

B.

/usr/lib64/

C.

/var/lib64/

D.

/lib64/

E.

/opt/lib64/

Full Access
Question # 20

Which wildcards will match the following filenames? (Choose two.)

ttyS0

ttyS1

ttyS2

A.

ttyS[1-5]

B.

tty?[0-5]

C.

tty*2

D.

tty[A-Z][012]

E.

tty[Ss][02]

Full Access
Question # 21

A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?

A.

apt-get search /etc/debian_version

B.

apt –r /etc/debian_version

C.

find /etc/debian_version -dpkg

D.

dpkg –S /etc/debian_version

E.

apt-file /etc/debian_version

Full Access
Question # 22

What is true regarding UEFI firmware? (Choose two.)

A.

It can read and interpret partition tables

B.

It can use and read certain file systems

C.

It stores its entire configuration on the /boot/ partition

D.

It is stored in a special area within the GPT metadata

E.

It is loaded from a fixed boot disk position

Full Access
Question # 23

Given the following input stream:

txt1.txt

atxt.txt

txtB.txt

Which of the following regular expressions turns this input stream into the following output stream?

txt1.bak.txt

atxt.bak.txt

txtB.bak.txt

A.

s/^.txt/.bak/

B.

s/txt/bak.txt/

C.

s/txt$/bak.txt/

D.

s/^txt$/.bak^/

E.

s/[.txt]/.bak$1/

Full Access
Question # 24

When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?

A.

–rep-space

B.

-printnul

C.

-nospace

D.

–ignore-space

E.

–print0

Full Access
Question # 25

Which of the following commands list all files and directories within the /tmp/ directory and its subdirectories which are owned by the user root? (Choose two.)

A.

find /tmp –user root -print

B.

find –path /tmp –uid root

C.

find /tmp –uid root -print

D.

find /tmp –user root

E.

find –path /tmp –user root -print

Full Access
Question # 26

What is the first program the Linux kernel starts at boot time when using System V init?

A.

/lib/init.so

B.

/proc/sys/kernel/init

C.

/etc/rc.d/rcinit

D.

/sbin/init

E.

/boot/init

Full Access
Question # 27

A faulty kernel module is causing issues with a network interface card. Which of the following actions ensures that this module is not loaded automatically when the system boots?

A.

Using lsmod --remove --autoclean without specifying the name of a specific module

B.

Using modinfo –k followed by the name of the offending module

C.

Using modprobe –r followed by the name of the offending module

D.

Adding a blacklist line including the name of the offending module to the file /etc/modprobe.d/blacklist.conf

E.

Deleting the kernel module’s directory from the file system and recompiling the kernel, including its modules

Full Access
Question # 28

Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)

A.

The partitioning scheme

B.

The file system

C.

The D-Bus Machine ID

D.

The permissions of /root/

E.

The SSH host keys

Full Access
Question # 29

What is true regarding the command

ls > files

if files do not exist?

A.

The output of ls is printed to the terminal

B.

files is created and contains the output of ls

C.

An error message is shown and ls is not executed

D.

The command files is executed and receives the output of ls

E.

Any output of ls is discarded

Full Access
Question # 30

Which program runs a command in specific intervals and refreshes the display of the program’s output? (Specify ONLY the command without any path or parameters.)

Full Access
Question # 31

When given the following command line.

echo "foo bar" | tee bar | cat

Which of the following output is created?

A.

cat

B.

foo bar

C.

tee bar

D.

bar

E.

foo

Full Access
Question # 32

Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)

  • uk.co.certification.simulator.questionpool.PList@18e10a10
Full Access
Question # 33

In Bash, inserting 1>&2 after a command redirects

A.

standard error to standard input.

B.

standard input to standard error.

C.

standard output to standard error.

D.

standard error to standard output.

E.

standard output to standard input.

Full Access
Question # 34

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

A.

kill -PIPE 123

B.

kill -KILL 123

C.

kill -STOP 123

D.

kill -TERM 123

Full Access
Question # 35

Which of the following files, located in the user home directory, is used to store the Bash history?

A.

.bash_history

B.

.bash_histfile

C.

.history

D.

.bashrc_history

E.

.history_bash

Full Access
Question # 36

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Full Access
Question # 37

In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

A.

-dirmax

B.

-maxdepth

C.

-maxlevels

D.

-n

E.

-s

Full Access
Question # 38

When running the command

sed -e "s/a/b/" /tmp/file >/tmp/file

While /tmp/file contains data, why is /tmp/file empty afterwards?

A.

The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.

B.

The command sed did not match anything in that file therefore the output is empty.

C.

When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.

D.

Redirection for shell commands do not work using the > character. It only works using the | character instead.

Full Access
Question # 39

When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

A.

-10

B.

0

C.

10

D.

20

Full Access
Question # 40

In the vi editor, which of the following commands will copy the current line into the vi buffer?

A.

c

B.

cc

C.

1c

D.

yy

E.

1y

Full Access
Question # 41

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

A.

fmt -f 1,4 /etc/passwd

B.

split -c 1,4 /etc/passwd

C.

cut -d : -f 1,4 /etc/passwd

D.

paste -f 1,4 /etc/passwd

Full Access
Question # 42

Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?

A.

magic

B.

type

C.

file

D.

pmagic

E.

hash

Full Access
Question # 43

Which of the following explanations are valid reasons to run a command in the background of your shell?

A.

The command does not need to execute immediately.

B.

The command has to run immediately but the user needs to log out.

C.

The system is being shut down and the command needs to restart execution immediately after the reboot.

D.

The command can run at a lower priority than normal commands run on the command line.

Full Access
Question # 44

What is the difference between the i and a command of the vi editor?

A.

i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.

B.

i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.

C.

i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.

D.

i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.

Full Access
Question # 45

Which of the following commands will reduce all consecutive spaces down to a single space?

A.

tr '\s' ' ' < a.txt > b.txt

B.

tr -c ' ' < a.txt > b.txt

C.

tr -d ' ' < a.txt > b.txt

D.

tr -r ' ' '\n' < a.txt > b.txt

E.

tr -s ' ' < a.txt > b.txt

Full Access
Question # 46

Which of the following commands instructs SysVinit to reload its configuration file?

A.

reinit

B.

initreload

C.

telinit 7

D.

telinit q

E.

init reinit

Full Access
Question # 47

Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?

A.

ls 3> data

B.

ls >& data

C.

ls > data

D.

ls >> data

Full Access
Question # 48

Which of the following is true for hard linked files? (Choose three.)

A.

The output of stat will report hard instead of regular file.

B.

The hard linked files have the same permissions and owner.

C.

The hard linked files share the same inode.

D.

The hard linked files are indicated by a -> when listed withls -1.

E.

The hard linked files must be on the same filesystem.

Full Access
Question # 49

How can the list of files that would be installed by the RPM package file apache-xml.rpm be previewed?

A.

rpm –qp apache-xml.rpm

B.

rpm –qv apache-xml.rpm

C.

rpm –ql apache-xml.rpm

D.

rpm –qpl apache-xml.rpm

Full Access
Question # 50

Which of the following commands is used to modify quota settings?(Choose two.)

A.

editquota

B.

setquota

C.

edquota

D.

quotaedit

E.

quotaset

Full Access
Question # 51

In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)

A.

cat /proc/self/mounts

B.

free

C.

mount

D.

lsmounts

E.

cat /proc/filesystems

Full Access
Question # 52

Which of the following commands changes all occurrences of the word “bob” in file data to “Bob” and prints the result to standard output?

A.

sed‘/bob/Bob’ data

B.

sed‘s/bob/Bob/g’ data

C.

sed‘s/bob/Bob/’ data

D.

sed‘/bob/Bob/’ data

E.

sed‘s/bob,Bob/’ data

Full Access
Question # 53

Which of the following statements describes a difference between GNU GRUB Legacy and GRUB 2?

A.

GRUB 2 no longer requires a configuration file.

B.

Partition numbers start at 0 in GRUB Legacy and1in GRUB 2.

C.

grub-mkconfigonly works with GRUB Legacy if the--version 1option is used.

D.

The configuration filemenu.lst(andgrub.conf) have been replaced withgrub.config.

Full Access
Question # 54

Which of the following is the device file name for the second partition on the only SCSI drive?

A.

/dev/hda1

B.

/dev/sda2

C.

/dev/sd0a2

D.

/dev/sd1p2

Full Access
Question # 55

Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?

A.

–a

B.

–c

C.

--no-clobber

D.

--continue

Full Access
Question # 56

Which of the following file permissions belong to a symbolic link?

A.

-rwxrwxrwx

B.

+rwxrwxrwx

C.

lrwxrwxrwx

D.

srwxrwxrwx

Full Access
Question # 57

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

A.

chown dan/staff file.txt

B.

chown dan:staff file.txt

C.

chown -u dan -g staff file.txt

D.

chown dan -g staff file.txt

Full Access
Question # 58

Where does the BIOS search for a bootloader?

A.

On all connected storage media regardless of the boot device order.

B.

On all connected storage media in the defined boot device order.

C.

Only on hard disk drives in the defined boot device order.

D.

Only on the last added storage media.

E.

The BIOS is not responsible to search for a valid bootloader.

Full Access
Question # 59

Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?

A.

ext2

B.

ext3

C.

ext4

D.

XFS

E.

VFAT

Full Access
Question # 60

Which of the following commands converts spaces in a file to tab characters and prints the result to standard output?

A.

iconv

B.

expand

C.

unexpand

D.

tab

Full Access
Question # 61

Which command displays the contents of the Kernel Ring Buffer on the command line? (Provide only the command name without any options or path information)

Full Access
Question # 62

Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)

A.

shutdown -r now

B.

shutdown -r "rebooting"

C.

telinit 6

D.

telinit 0

E.

shutdown -k now "rebooting"

Full Access
Question # 63

What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

A.

/lib/init.so

B.

/sbin/init

C.

/etc/rc.d/rcinit

D.

/proc/sys/kernel/init

E.

/boot/init

Full Access
Question # 64

Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?

A.

/etc/keys

B.

/proc/keys

C.

/etc/inittab

D.

/proc/inittab

E.

/etc/reboot

Full Access
Question # 65

What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

A.

Entries for all possible devices get created on boot even if those devices are not connected.

B.

Additional rules for udev can be created by adding them to /etc/udev/rules.d/.

C.

When using udev, it is not possible to create block orcharacter devices in /dev/ using mknod.

D.

The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.

E.

The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

Full Access
Question # 66

The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh. What is the usual way to pass this change to the kernel from your boot loader?

A.

Start in runlevel 1.

B.

Pass init=/bin/sh on the kernel parameter line.

C.

Pass /bin/sh on the kernel parameter line.

D.

Pass start=/bin/sh on the kernel parameter line.

Full Access
Question # 67

Which of the following information is stored within the BIOS? (Choose TWO correct answers.)

A.

Boot device order

B.

Linux kernel version

C.

Timezone

D.

Hardware configuration

E.

The system's hostname

Full Access
Question # 68

Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

Full Access
Question # 69

Which of the following statements is correct when talking about /proc/?

A.

All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.

B.

All files within /proc/ are read-only and their contents cannot be changed.

C.

All changes to files in /proc/ are immediately recognized by the kernel.

D.

All files within /proc/ are only readable by the root user.

Full Access
Question # 70

Which of the following kernel parameters instructs the kernel to suppress most boot messages?

A.

silent

B.

verbose=0

C.

nomesg

D.

quiet

Full Access
Question # 71

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

A.

systemd.target=rescue.target

B.

systemd.runlevel=rescue.target

C.

systemd.service=rescue.target

D.

systemd.default=rescue.target

E.

systemd.unit=rescue.target

Full Access
Question # 72

What information can the lspci command display about the system hardware? (Choose THREE correct answers.)

A.

Device IRQ settings

B.

PCI bus speed

C.

System battery type

D.

Device vendor identification

E.

Ethernet MAC address

Full Access