Easter Special Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

101-500 Sample Questions Answers

Questions 4

Which grep command will print only the lines that do not end with a / in the file foo?

Options:

A.

grep'/$' foo

B.

grep '/#' foo

C.

grep -v '/$' foo

D.

grep -v '/#' foo

Buy Now
Questions 5

What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

Options:

A.

9

B.

19

C.

49

D.

99

Buy Now
Questions 6

Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)

Options:

A.

esc ZZ

B.

ctrl :w!

C.

esc zz

D.

esc :wq!

E.

ctrl XX

Buy Now
Questions 7

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

Options:

Buy Now
Questions 8

Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?

killall -s _______ daemon

  • uk.co.certification.simulator.questionpool.PList@4dcbd410

Options:

Buy Now
Questions 9

Which of the following commands is used to update the list of available packages when using dpkg based package management?

Options:

A.

apt-get update

B.

apt-get upgrade

C.

apt-cache update

D.

apt-get refresh

E.

apt-cache upgrade

Buy Now
Questions 10

What is the difference between the --remove and the --purge action with the dpkg command?

Options:

A.

--remove removes the program, --purge also removes the config files

B.

--remove only removes the program, --purge only removes the config files

C.

--remove removes a package, --purge also removes all packages dependent on it

D.

--remove removes only the package file itself, --purge removes all files related to the package

Buy Now
Questions 11

Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)

Options:

Buy Now
Questions 12

In which directory must definition files be placed to add additional repositories to yum?

  • /etc/yum.repos.d
  • /etc/yum.repos.d/
  • yum.repos.d
  • yum.repos.d/

Options:

Buy Now
Questions 13

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.)

Options:

Buy Now
Questions 14

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

Options:

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

Buy Now
Questions 15

What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

  • menu.lst
  • grub.conf
  • grub.cfg

Options:

Buy Now
Questions 16

Which variable defines the directories in which a Bash shell searches for executable commands?

Options:

A.

BASHEXEC

B.

BASHRC

C.

PATH

D.

EXECPATH

E.

PATHRC

Buy Now
Questions 17

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?

Options:

A.

magic

B.

type

C.

file

D.

pmagic

E.

hash

Buy Now
Questions 18

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

Options:

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.

Buy Now
Questions 19

Which shell command is used to continue background execution of a suspended command?

Options:

A.

&

B.

bg

C.

cont

D.

exec

E.

:&

Buy Now
Questions 20

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

Options:

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

Buy Now
Questions 21

Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

  • Swapoff
  • /sbin/swapoff

Options:

Buy Now
Questions 22

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

Options:

A.

apt

B.

apt-cache

C.

apt-get

D.

apt-search

E.

dpkg

Buy Now
Questions 23

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)

Options:

Buy Now
Questions 24

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)

Options:

A.

shutdown -R 1 now

B.

shutdown -single now

C.

init 1

D.

telinit 1

E.

runlevel 1

Buy Now
Questions 25

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

Options:

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.

Buy Now
Questions 26

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

Options:

A.

Boot device order

B.

Linux kernel version

C.

Timezone

D.

Hardware configuration

E.

The system's hostname

Buy Now
Questions 27

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

Options:

A.

silent

B.

verbose=0

C.

nomesg

D.

quiet

Buy Now
Questions 28

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

Options:

A.

0

B.

1

C.

3

D.

5

E.

6

Buy Now
Questions 29

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

Options:

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.

Buy Now
Questions 30

Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?

Options:

A.

grep –E ‘:08:[09]+:[09]+’ loga.log

B.

grep –E ‘:08:[00]+’ loga.log

C.

grep –E loga.log ‘:08:[0-9]+:[0-9]+’

D.

grep loga.log ‘:08:[0-9]:[0-9]’

E.

grep –E ‘:08:[0-9]+:[0-9]+’ loga.log

Buy Now
Questions 31

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.)

Options:

Buy Now
Questions 32

What is contained on the EFI System Partition?

Options:

A.

The Linux root file system

B.

The first stage boot loader

C.

The default swap space file

D.

The Linux default shell binaries

E.

The user home directories

Buy Now
Questions 33

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

Options:

A.

<

B.

#>

C.

%>

D.

>>>

E.

2>&1

Buy Now
Questions 34

What is true regarding the command

ls > files

if files do not exist?

Options:

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

Buy Now
Questions 35

Which of the following statements are true about the boot sequence of a PC using a BIOS? (Choose two.)

Options:

A.

Some parts of the boot process can be configured from the BIOS

B.

Linux does not require the assistance of the BIOS to boot a computer

C.

The BIOS boot process starts only if secondary storage, such as the hard disk, is functional

D.

The BIOS initiates the boot process after turning the computer on

E.

The BIOS is started by loading hardware drivers from secondary storage, such as the hard disk

Buy Now
Questions 36

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

Options:

A.

/lib/init.so

B.

/proc/sys/kernel/init

C.

/etc/rc.d/rcinit

D.

/sbin/init

E.

/boot/init

Buy Now
Questions 37

Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?

Options:

A.

grub2 install /dev/sdc

B.

grub-mkrescue /dev/sdc

C.

grub-mbrinstall /dev/sdc

D.

grub-setup /dev/sdc

E.

grub-install /dev/sdc

Buy Now
Questions 38

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.)

Options:

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

Buy Now
Questions 39

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

Options:

A.

auto-update

B.

dist-upgrade

C.

full-upgrade

D.

install

E.

update

Buy Now
Questions 40

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

Options:

A.

s/^.txt/.bak/

B.

s/txt/bak.txt/

C.

s/txt$/bak.txt/

D.

s/^txt$/.bak^/

E.

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

Buy Now
Questions 41

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

Options:

A.

The partitioning scheme

B.

The file system

C.

The D-Bus Machine ID

D.

The permissions of /root/

E.

The SSH host keys

Buy Now
Questions 42

Which of the following commands can be used to create a USB storage media from a disk image?

Options:

A.

gdisk

B.

dd

C.

cc

D.

fdisk

E.

mount

Buy Now
Questions 43

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

Options:

A.

-10

B.

10

C.

20

D.

0

Buy Now
Questions 44

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

Options:

A.

rmdir '~/\dir'

B.

rmdir "~/\dir"

C.

rmdir ~/'dir'

D.

rmdir ~/\dir

E.

rmdir ~/\\dir

Buy Now
Questions 45

Which of the following commands moves and resumes in the background the last stopped shell job?

Options:

A.

run

B.

bg

C.

fg

D.

back

Buy Now
Questions 46

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

Options:

A.

c

B.

cc

C.

1c

D.

yy

E.

1y

Buy Now
Questions 47

Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

Options:

A.

chmod u=rwx,go=rx /bin/foo

B.

chmod o+rwx,a+rx /bin/foo

C.

chmod 577 /bin/foo

D.

chmod 775 /bin/foo

Buy Now
Questions 48

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

Options:

A.

ls 3> data

B.

ls >& data

C.

ls > data

D.

ls >> data

Buy Now
Questions 49

Which of the following are modes of the vi editor? (Choose two.)

Options:

A.

edit mode

B.

insert mode

C.

change mode

D.

review mode

E.

command mode

Buy Now
Questions 50

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.

Options:

A.

/tmp

B.

tmp

Buy Now
Questions 51

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

Options:

A.

kill -HUP $(pidof grub)

B.

grub-install

C.

grub

D.

No action is required

Buy Now
Questions 52

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)

Options:

A.

/var

B.

/var/,

C.

Var

D.

var/

Buy Now
Questions 53

The dpkg-____ command will ask configuration questions for a specified package, just as if the package were being installed for the first time.

Options:

Buy Now
Questions 54

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

Options:

A.

shutdown -r now

B.

shutdown -r "rebooting"

C.

telinit 6

D.

telinit 0

E.

shutdown -k now "rebooting"

Buy Now
Questions 55

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

Options:

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

Buy Now
Questions 56

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

Options:

A.

The bootloader

B.

The inetd program

C.

The init program

D.

The kernel

Buy Now
Questions 57

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

Options:

Buy Now
Questions 58

The USB device filesystem can be found under /proc/______/usb/. (Please fill in the blank with the single word only)

Options:

Buy Now
Questions 59

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

Options:

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

Buy Now
Questions 60

Which of the following commands will print important system information such as the kernel version and machine hardware architecture?

Options:

A.

sysinfo

B.

uname

C.

lspci

D.

arch

E.

info

Buy Now
Questions 61

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

Options:

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

Buy Now
Questions 62

Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

Options:

A.

File size

B.

Modify timestamp

C.

Link count

D.

Inode number

E.

Permissions

Buy Now
Questions 63

Where does the BIOS search for a bootloader?

Options:

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.

Buy Now
Questions 64

In compliance with the FHS, in which of the following directories are documentation files found?

Options:

A.

/usr/share/documentation

B.

/usr/local/share/documentation

C.

/var/share/doc

D.

/usr/share/doc

E.

/etc/share/doc

Buy Now
Questions 65

When planning a partition scheme, which of the following directories could be considered for separate partitions? (Choose three.)

Options:

A.

/etc

B.

/home

C.

/var

D.

/lib

E.

/opt

Buy Now
Questions 66

Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all users on the system?

Options:

Buy Now
Questions 67

Which of the following commands will display the inode usage of each mounted filesystem?

Options:

A.

du –i

B.

df –i

C.

lsfs –i

D.

printfs –i

Buy Now
Questions 68

Which program updates the database that is used by the locate command?

Options:

Buy Now
Questions 69

Which of the following commands enables the setuid (suid) permission on the executable /bin/foo?

Options:

A.

chmod 1755 /bin/foo

B.

chmod 4755 /bin/foo

C.

chmod u-s /bin/foo

D.

chmod 755+s /bin/foo

Buy Now
Questions 70

Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

Options:

A.

/sbin/mke2fs -j /dev/sdb1

B.

/sbin/mkfs -t ext3 /dev/sdb1

C.

/sbin/mkfs -c ext3 /dev/sdb1

D.

/sbin/mke3fs -j /dev/sdb1

Buy Now
Questions 71

Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?

Options:

A.

tr ‘\r\n’ ‘’ < userlist.txt > newlist.txt

B.

tr –c ‘\n\r’ ‘’ < newlist.txt > userlist.txt

C.

tr –d ‘\r’ < userlist.txt > newlist.txt

D.

tr ‘\r’ ‘\n’ userlist.txt newlist.txt

E.

tr –s ‘^M’ ‘^J’ userlist.txt newlist.txt

Buy Now
Questions 72

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)

Options:

A.

/custom-grub/boot/grub/

B.

/custom-grub/boot/grub

Buy Now
Exam Code: 101-500
Exam Name: LPIC-1 Exam 101, Part 1 of 2, version 5.0
Last Update: May 16, 2024
Questions: 243
$64  $159.99
$48  $119.99
$40  $99.99
buy now 101-500