Summer Sale - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpt65

101-500 Questions and Answers

Question # 6

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 # 7

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 # 8

Which file should be edited to select the network locations from which Debian installation package files are loaded?

A.

/etc/dpkg/dpkg.cfg

B.

/etc/apt/apt.conf

C.

/etc/apt/apt.conf.d

D.

/etc/apt/sources.list

E.

/etc/dpkg/dselect.cfg

Full Access
Question # 9

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

A.

i (lowercase)

B.

P (uppercase)

C.

p (lowercase)

D.

U (uppercase)

E.

u (lowercase)

Full Access
Question # 10

Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

A.

sed '/bob/Bob' letter > newletter

B.

sed s/bob/Bob/ letter < newletter

C.

sed's/bob/Bob' letter > newletter

D.

sed 's/bob/Bob/g' letter > newletter

E.

sed 's/bob, Bob/' letter > newletter

Full Access
Question # 11

Which of the following commands is used to change options and positional parameters for a running Bash?

A.

history

B.

set

C.

bashconf

D.

setsh

E.

envsetup

Full Access
Question # 12

From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

A.

source /usr/local/bin/runme.sh

B.

. /usr/local/bin/runme.sh

C.

/bin/bash /usr/local/bin/runme.sh

D.

/usr/local/bin/runme.sh

E.

run /usr/local/bin/runme.sh

Full Access
Question # 13

What is the default nice level when a process is started using the nice command?

A.

-10

B.

10

C.

20

D.

0

Full Access
Question # 14

In compliance with the FHS, in which of the directories are man pages found?

A.

/usr/share/man

B.

/opt/man

C.

/usr/doc/

D.

/var/pkg/man

E.

/var/man

Full Access
Question # 15

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 # 16

Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)

A.

<

B.

<<<

C.

>

D.

>>>

E.

%>

Full Access
Question # 17

What is the purpose of the Bash built-in export command?

A.

It allows disks to be mounted remotely.

B.

It runs a command as a process in a subshell.

C.

It makes the command history available to subshells.

D.

It sets up environment variables for applications.

E.

It shares NFS partitions for use by other systems on the network.

Full Access
Question # 18

Which standardized TCP port is used by HTTPS services?

A.

25

B.

80

C.

8080

D.

443

E.

636

Full Access
Question # 19

Given the following routing table:

How would an outgoing packet to the destination 192 168 2 150 be handled?

A.

It would be passed to the default router 192 168 178 1 onwIan0.

B.

It would be directly transmitted on the device eth0

C.

It would be passed to the default router 255 255 255 0 on eth0

D.

It would be passed to the router 192 168.1.1 oneth0

E.

It would be directly transmitted on the device wlan0.

Full Access
Question # 20

Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

A.

*

B.

-

C.

$

D.

#

E.

x

Full Access
Question # 21

Which parameter is missing in the command

ip link set _dev eth0

to activate the previously inactive network interface eth0? (Specify the parameter only without any command, path or additional options)

Full Access
Question # 22

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 # 23

Which ol the following fields can be found in the /etc/group file? (Choose TWO correct answers.)

A.

The home directory of the group

B.

The list of users that belong to the group

C.

The name of the group

D.

The default group ACL

E.

The description of the group

Full Access
Question # 24

Which of the following vi commands deletes two lines, the current and the following line?

A.

d2

B.

2d

C.

2dd

D.

dd2

E.

de12

Full Access
Question # 25

What is true regarding the configuration of yum? (Choose two.)

A.

Changes to the repository configuration become active after running yum confupdate

B.

Changes to the yum configuration become active after restarting the yumd service

C.

The configuration of package repositories can be divided into multiple files

D.

Repository configurations can include variables such as $basearch or $releasever

E.

In case /etc/yum.repos.d/ contains files, /etc/yum.conf is ignored

Full Access
Question # 26

Which of the following commands installs all packages with a name ending with the string foo?

A.

zypper get “*foo”

B.

zypper update “foo?”

C.

zypper force “foo*”

D.

zypper install “*foo”

E.

zypper add “.*foo”

Full Access
Question # 27

Which of the following commands redirects the output of ls to standard error?

A.

ls >-1

B.

ls <

C.

ls >&2

D.

ls >>2

E.

ls |error

Full Access
Question # 28

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 # 29

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 # 30

Which function key is used to start Safe Mode in Windows NT?

A.

F10

B.

F8

C.

F6

D.

Windows NT does not support Safe Mode

Full Access
Question # 31

Which of the following commands can be used to perform a full text search on all available packages on a Debian system?

A.

apt

B.

apt-cache

C.

apt-get

D.

apt-search

E.

dpkg

Full Access
Question # 32

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 # 33

Which of the following commands lists all currently installed packages when using RPM package management?

A.

yum --query --all

B.

yum --list --installed

C.

rpm --query --all

D.

rpm --list –installed

Full Access
Question # 34

When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)

A.

Timestamps

B.

MD5 checksums

C.

Inodes

D.

File sizes

E.

GnuPG signatures

Full Access
Question # 35

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 # 36

Which of the following commands lists the dependencies of a given dpkg package?

A.

apt-cache depends-onpackage

B.

apt-cache dependencies package

C.

apt-cache depends package

D.

apt-cache requires package

Full Access
Question # 37

Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

A.

hidemenu

B.

splash

C.

timeout

D.

showmenu

Full Access
Question # 38

Which of the following environment variables overrides or extends the list of directories holding 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 # 39

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 # 40

What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

A.

To create RAID 9 arrays.

B.

To dynamically change the size of logical volumes.

C.

To encrypt logical volumes.

D.

To create snapshots.

E.

To dynamically create or delete logical volumes.

Full Access
Question # 41

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 # 42

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

A.

SIGTERM

B.

SIGINT

C.

SIGSTOP

D.

SIGKILL

Full Access
Question # 43

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)

A.

uptime

B.

up

C.

top

D.

uname -u

E.

time –up

Full Access
Question # 44

Which of the following statements is correct regarding the command foo 1> bar?

A.

The stdout from the command foo is appended to the file bar.

B.

The stdout from the command foo overwrites the file bar.

C.

The command foo receives its stdin from the file bar.

D.

The command foo receives its stdin from the stdout of the command bar.

E.

The stderr from the command foo is saved to the file bar.

Full Access
Question # 45

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 # 46

Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?

A.

0750

B.

0027

C.

0036

D.

7640

E.

0029

Full Access
Question # 47

Which of the following environment variables can be defined in locale. conf? (Choose TWO correct answers )

A.

LC_ALL

B.

Lr_USERNAME

C.

LCMJTF8

D.

LC_GEOGRAPHY

E.

LC_TIME

Full Access
Question # 48

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 # 49

Which of the following apt-get subcommands installs the newest versions of all currently installed packages?

A.

auto-update

B.

dist-upgrade

C.

full-upgrade

D.

install

E.

update

Full Access
Question # 50

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 # 51

Which file contains the date of the last change of a user's password?

A.

/etc/gshadow

B.

/etc/passwd

C.

/etc/pwdlog

D.

/var/log/shadow

E.

/etc/shadow

Full Access
Question # 52

Which of the following protocols is designed to access the video card output of a virtual machine?

A.

KDE

B.

X11

C.

Xfce

D.

SPICE

E.

XDMCP

Full Access
Question # 53

Which of the following is true regarding the command sendmail?

A.

With any MTA, the sendmail command must be run periodically by the cron daemon.

B.

When using systemd, sendmail is an alias to relayctl.

C.

The sendmail command prints the MTA's queue history of which mails have been sent successfully.

D.

It is only available when the sendmail MTA is installed.

E.

All common MTAs, including Postfix and Exim, provide a sendmail command.

Full Access
Question # 54

Which chown command will change the ownership to dave and the group to staff on a file named data.txt?

A.

chown dave/staff data.txt

B.

chown –u dave –g staff data.txt

C.

chown --user dave --group staff data.txt

D.

chown dave:staff data.txt

Full Access
Question # 55

Which of the following commands will change the quota for a specific user?

A.

edquota

B.

repquota

C.

quota -e

D.

quota

Full Access
Question # 56

Which command is used to query information about the available packages on a Debian system?

A.

apt-cache

B.

apt-get

C.

apt-search

D.

dpkg

E.

dpkg-search

Full Access
Question # 57

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 # 58

During a system boot cycle, what is the program that is run after the BIOS completes its tasks?

A.

The bootloader

B.

The inetd program

C.

The init program

D.

The kernel

Full Access
Question # 59

During a system boot cycle, what program is executed after the BIOS completes its tasks?

A.

The bootloader

B.

The inetd program

C.

The init program

D.

The kernel

Full Access
Question # 60

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 # 61

Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)

A.

startd

B.

systemd

C.

Upstart

D.

SysInit

E.

SysV init

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

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 # 64

You suspect that a new ethernet card might be conflicting with another device. Which file should you check within the /proc tree to learn which IRQs are being used by which kernel drivers?

Full Access
Question # 65

Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)

A.

0

B.

1

C.

3

D.

5

E.

6

Full Access
Question # 66

Which command will display messages from the kernel that were output during the normal boot sequence?

Full Access
Question # 67

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 # 68

The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process. What does this indicate?

A.

The kernel was unable to execute /bin/init

B.

The next Stage cannot be read from the hard disk because GRUB was unable to determine the size and geometry of the disk

C.

One or more of the filesystems on the hard disk has errors and a filesystem check should be run

D.

The BIOS was unable to read the necessary data from the Master Boot Record to begin the boot process

Full Access
Question # 69

Which of the following commands will write a message to the terminals of all logged in users?

A.

bcast

B.

mesg

C.

print

D.

wall

E.

yell

Full Access
Question # 70

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 # 71

You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks?

A.

telinit 1

B.

shutdown -r now

C.

killall -9 inetd

D.

/bin/netstop --maint

E.

/etc/rc.d/init.d/network stop

Full Access
Question # 72

Which file in /proc describes the IRQs that are used by various kernel drivers? (Specify the file name only without any path.)

Full Access
Question # 73

What is the process ID number of the init process on a SysV init based system?

A.

-1

B.

0

C.

1

D.

It is different with each reboot.

E.

It is set to the current run level.

Full Access
Question # 74

After running the command umount /mnt, the following error message is displayed:

umount: /mnt: device is busy.

What is a common reason for this message?

A.

The kernel has not finished flushing disk writes to themounted device.

B.

A user has a file open in the /mnt directory.

C.

Another file system still contains a symlink to a file inside /mnt.

D.

The files in /mnt have been scanned and added to the locate database.

E.

The kernel thinks that a process is about to open a file in /mnt for reading.

Full Access
Question # 75

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 # 76

Which of the following commands updates the already installed RPM package rpmname?

A.

rpm --update rpmname

B.

rpm –U rpmname

C.

rpm –q rpmname

D.

rpm --force rpmname

E.

rpm –u rpmname

Full Access
Question # 77

When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?

A.

–rep-space

B.

–print0

C.

–nospace

D.

–ignore-space

Full Access
Question # 78

Which of the following describes the correct order in which the components of the system boot process are started?

A.

BIOS, kernel, bootloader, init system

B.

BIOS, bootloader,kernel, init system

C.

Bootloader, BIOS, kernel, init system

D.

BIOS, bootloader, init system, kernel

E.

Bootloader, BIOS, init system, kernel

Full Access
Question # 79

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 # 80

Which of the following commands prints a list of available package updates when using RPM-based package management?

A.

dpkg list

B.

yum list

C.

dpkg check-update

D.

yum check-update

E.

yum list-update

Full Access
Question # 81

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 # 82

Which of the following commands is used to change metadata and options for ext3 filesystems?

A.

mod3fs

B.

tune3fs

C.

mod2fs

D.

tune2fs

E.

dump2fs

Full Access
Question # 83

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 # 84

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 # 85

You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?

A.

The source file is hidden.

B.

The source file is read-only.

C.

The source file is a shell script.

D.

You do not own the source file.

E.

The source and the target are on different filesystems.

Full Access
Question # 86

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 # 87

Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?

A.

82

B.

83

C.

8e

D.

fd

E.

7

Full Access