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

101-500 LPIC-1 Exam 101, Part 1 of 2, version 5.0 Questions and Answers

Questions 4

Which of the following apt-get commands will install the newest versions of all currently installed packages without removing any packages or installing new packages that are not already installed?

Options:

A.

auto-update

B.

upgrade

C.

dist-upgrade

D.

install

E.

update

Buy Now
Questions 5

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 6

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 7

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 8

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?

Options:

Buy Now
Questions 9

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 10

Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

Options:

A.

chmod +s /tmp

B.

chmod +t /tmp

C.

chmod 1775 /tmp

D.

chmod 4775 /tmp

E.

chmod 2775 /tmp

Buy Now
Questions 11

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 12

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 13

Consider the following directory:

drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales

Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)

Options:

A.

chmod g+s sales

B.

setpol –R newgroup=sales sales

C.

chgrp –p sales sales

D.

chown --persistent *.sales sales

E.

chmod 2775 sales

Buy Now
Questions 14

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 15

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?

Options:

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.

Buy Now
Questions 16

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

Options:

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.

Buy Now
Questions 17

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

Options:

A.

mod3fs

B.

tune3fs

C.

mod2fs

D.

tune2fs

E.

dump2fs

Buy Now
Questions 18

How is a symbolic link called bar.conf pointing to foo.conf created?

Options:

A.

ln –s foo.conf bar.conf

B.

ln foo.conf bar.conf

C.

ln –s bar.conf foo.conf

D.

ln bar.conffoo.conf

Buy Now
Questions 19

Which of the following files, located in a user’s home directory, contains the Bash history?

Options:

A.

.bashrc_history

B.

.bash_histfile

C.

.history

D.

.bash_history

E.

.history_bash

Buy Now
Questions 20

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 21

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 22

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

Options:

A.

–rep-space

B.

-printnul

C.

-nospace

D.

–ignore-space

E.

–print0

Buy Now
Questions 23

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 24

Consider the following output from the command ls –i:

101-500 Question 24

How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?

Options:

A.

ln –h a.txt c.txt

B.

ln c.txt a.txt

C.

ln a.txt c.txt

D.

ln –f c.txt a.txt

E.

ln –i 525385 c.txt

Buy Now
Questions 25

Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to system, is mounted manually?

Options:

A.

systemd ignores any manual mounts which are not done using the systemctl mount command

B.

The command systemctl mountsync can be used to create a mount unit based on the existing mount

C.

systemd automatically generates a mount unit and monitors the mount point without changing it

D.

Unless a systemd mount unit is created, systemd unmounts the file system after a short period of time

E.

systemctl unmount must be used to remove the mount because system opens a file descriptor on the mount point

Buy Now
Questions 26

What output will be displayed when the user fred executes the following command?

echo ‘fred $USER’

Options:

A.

fred fred

B.

fred /home/fred/

C.

‘fred $USER’

D.

fred $USER

E.

‘fred fred’

Buy Now
Questions 27

Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.)

Options:

Buy Now
Questions 28

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 29

Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?

Options:

A.

lsattr foo

B.

apropos foo

C.

locate foo

D.

whatis foo

E.

which foo

Buy Now
Questions 30

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?

Options:

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

Buy Now
Questions 31

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 32

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

Options:

A.

Device IRQ settings

B.

PCI bus speed

C.

System battery type

D.

Device vendor identification

E.

Ethernet MAC address

Buy Now
Questions 33

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 34

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

Options:

Buy Now
Questions 35

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

Options:

A.

/etc/keys

B.

/proc/keys

C.

/etc/inittab

D.

/proc/inittab

E.

/etc/reboot

Buy Now
Questions 36

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 37

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

Options:

A.

The bootloader

B.

The inetd program

C.

The init program

D.

The kernel

Buy Now
Questions 38

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 39

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

Options:

A.

dpkg list

B.

yum list

C.

dpkg check-update

D.

yum check-update

E.

yum list-update

Buy Now
Questions 40

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

Options:

A.

The command is SetUID and it will be executed with the effective rights of the owner.

B.

The command will be executed with the effective rights of the group instead of the owner.

C.

The execute flag is not set for the owner. Therefore, the SetUID flag is ignored.

D.

The command will be executed with the effective rights of the owner and group.

Buy Now
Questions 41

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

Options:

A.

–rep-space

B.

–print0

C.

–nospace

D.

–ignore-space

Buy Now
Questions 42

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 43

When using regular expressions, which of the following characters match the beginning of a line?

Options:

A.

^

B.

?

C.

*

D.

+

E.

$

Buy Now
Questions 44

What is the purpose of the xargs command?

Options:

A.

It passes arguments to an X server.

B.

It reads standard input (STDIN) and builds up command lines to execute.

C.

It helps shell scripts take variable argument lists.

D.

It asks a question, graphically, and returns the answer to the shell.

E.

It allows users to specify long options for commands that normally only accept short options.

Buy Now
Questions 45

Which of the following commands print the current working directory when using a Bash shell? (Choose two.)

Options:

A.

echo “${PWD}”

B.

echo “${WD}”

C.

pwd

D.

printwd

E.

echo “${pwd}”

Buy Now
Questions 46

In Bash, inserting 2>&1 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 47

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

Options:

A.

-1

B.

0

C.

1

D.

It is different with each reboot.

E.

It is set to the current run level.

Buy Now
Questions 48

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

Options:

A.

rpm –qp apache-xml.rpm

B.

rpm –qv apache-xml.rpm

C.

rpm –ql apache-xml.rpm

D.

rpm –qpl apache-xml.rpm

Buy Now
Questions 49

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 50

What command will generate a list of user names from /etc/passwd along with their login shell?

Options:

A.

column -s : 1,7 /etc/passwd

B.

chop -c 1,7 /etc/passwd

C.

colrm 1,7 /etc/passwd

D.

cut -d: -f1,7 /etc/passwd

Buy Now
Questions 51

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

Options:

A.

history

B.

set

C.

bashconf

D.

setsh

E.

envsetup

Buy Now
Questions 52

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 53

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 54

What does the? symbol within regular expressions represent?

Options:

A.

Match the preceding qualifier one or more times.

B.

Match the preceding qualifier zero or more times.

C.

Match the preceding qualifier zero or one times.

D.

Match a literal? character.

Buy Now
Questions 55

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Options:

A.

cat < myapp | cat > file1.log

B.

myapp 0>&1 | cat > file1.log

C.

myapp | cat > file1.log

D.

myapp | tee file1.log

E.

tee myapp file1.log

Buy Now
Questions 56

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 57

Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

Options:

A.

<<

B.

<|

C.

!<

D.

&<

Buy Now
Questions 58

Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

Options:

A.

!

B.

+

C.

&

D.

%

E.

#

Buy Now
Questions 59

Which of the following command sets the Bash variable named TEST with the content FOO?

Options:

A.

set TEST="FOO"

B.

TEST = "FOO"

C.

var TEST="FOO"

D.

TEST="FOO"

Buy Now
Questions 60

: 6

The /etc/_______ file lists currently mounted devices.

Options:

Buy Now
Questions 61

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

Options:

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.

Buy Now
Questions 62

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

Options:

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

Buy Now
Questions 63

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 64

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 65

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 66

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

Options:

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

Buy Now
Questions 67

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

Options:

A.

yum --query --all

B.

yum --list --installed

C.

rpm --query --all

D.

rpm --list –installed

Buy Now
Questions 68

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

Options:

A.

F10

B.

F8

C.

F6

D.

Windows NT does not support Safe Mode

Buy Now
Questions 69

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 70

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

Options:

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.

Buy Now
Questions 71

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 72

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

Options:

A.

~/.lib64/

B.

/usr/lib64/

C.

/var/lib64/

D.

/lib64/

E.

/opt/lib64/

Buy Now
Exam Code: 101-500
Exam Name: LPIC-1 Exam 101, Part 1 of 2, version 5.0
Last Update: May 17, 2024
Questions: 243

PDF + Testing Engine

$56  $159.99

Testing Engine

$42  $119.99
buy now 101-500 testing engine

PDF (Q&A)

$35  $99.99
buy now 101-500 pdf
dumpsmate guaranteed to pass
24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 19 May 2024