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

LCP-001 Questions and Answers

Note! Following LCP-001 Exam is Retired now. Please select the alternative replacement for your Exam Certification.

LCP-001 Questions and Answers

Question # 6

User Joseph has successfully extracted and compiled a program from source code. Installing the binaries produces errors. What is the most likely reason?

A.

The source code was compiled for a different CPU

B.

The permissions set in the /usr/bin directory are wrong

C.

The binaries require root privileges to be installed

D.

The wrong prefix was used during configuration of the source code

Full Access
Question # 7

In GRUB's configuration file you find the line

Root (hd1,4)

What is corresponding device name on a Linux system?

A.

/dev/hda4

B.

/dev/hda5

C.

/dev/hdb4

D.

/dev/hdb5

Full Access
Question # 8

Which of the following commands will display the last 30 lines of /var/log/bigd.log as well as new content as it is appended to the file by another process?

A.

cut -30 -v /var/log/bigd.log

B.

head -30 -e /var/log/bigd.log

C.

tail -f -n 30 /var/log/bigd.log

D.

tac -30 /var/log/bigd.log

E.

cat -r -n 30 /var/log/bigd.log

Full Access
Question # 9

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

A.

chmod 1755 /bin/foo

B.

chmod 4755 /bin/foo

C.

chown u-s /bin/foo

D.

chmod 755+s /bin/foo

Full Access
Question # 10

Which of the following commands will load a kernel module along with any required dependency modules?

A.

depmod

B.

insmod

C.

modprobe

D.

module_install

E.

loadmod

Full Access
Question # 11

In the command foo < bar | foobar, which ONE of the following statements is correct?

A.

the stdout from the command foobar is saved to the file foo.

B.

the stdout from the command foo is saved to the file foobar.

C.

the command foobar receives its stdin from the stderr of foo.

D.

the command foobar receives its stdin from the stdout of foo.

E.

the command bar receives its stdin from the contents of the file foobar.

Full Access
Question # 12

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.

halt 1

B.

init 1

C.

logout -all now

D.

runlevel 1

E.

shutdown -maintenance now

Full Access
Question # 13

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

Full Access
Question # 14

Which of the following commands will print the amount of disk space used by files specified on the command line?

A.

dc

B.

dd

C.

df

D.

du

Full Access
Question # 15

Identify the proper device for the third partition on the only SCSI drive on the system.

A.

/dev/hda3

B.

/dev/sd0a3

C.

/dev/sda3

D.

/dev/sd1p3

Full Access
Question # 16

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

You need to create a simple hierarchy of directories: images/photos/summer/ottawa/. None of the directories on that path exists. What command will create all of the needed directories in one step?

A.

mkdir -r images/photos/summer/ottawa/

B.

mkdir -R images/photos/summer/ottawa/

C.

mkdir -p images/photos/summer/ottawa/

D.

mkdir -P images/photos/summer/ottawa/

E.

mkdir -m images/photos/summer/ottawa/

Full Access
Question # 18

Which of the following programs is typically used to query installed debian packages? (Please select TWO that apply)

A.

dpkg

B.

apt-cache

C.

apt-conf

D.

dselect

Full Access
Question # 19

What is the output when the following shell script executes?

Cat <

Hello foobar

foobar

A.

The contents of the file foobar

B.

Hello

C.

No output but a file named foobar is created

D.

Hello foobar

E.

Hello foobar

Full Access
Question # 20

George is planning a partition scheme for a new Linux installation. Which THREE directories should he consider for separate partitions? (Select three)

A.

/etc

B.

/home

C.

/var

D.

/lib

E.

/tmp

Full Access
Question # 21

Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of following signal codes?

A.

1 (SIGHUP)

B.

2 (SIGINT)

C.

3 (SIGQUIT)

D.

9 (SIGKILL)

E.

15 (SIGTEPM)

Full Access
Question # 22

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

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

Full Access
Question # 23

In a networked environment, what command will grant anybody permission to display their X applications on a desktop? (Include both the command and argument(s).)

Full Access
Question # 24

Which command will print line numbers before each line in a file?

A.

ln

B.

nl

C.

cat -n

D.

numline

Full Access
Question # 25

Bob accidentally created the subdirectory \bobsdir in his home directory. He tried to remove the subdirectory with the command rmdir \bobsfile only to receive the error, "No such file or directory." Which command will remove the directory?

A.

rmdir 'bob/\bobsdir'

B.

rmdir "bob/\bobsdir"

C.

rmdir ~bob/ 'bobsdir'

D.

rmdir bob/\bobsdir

E.

rmdir ~bob/\\bobsdir

Full Access
Question # 26

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

Full Access
Question # 27

The system is having trouble and the engineer wants to bypass the usual /sbin/init startup 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 # 28

Which command will allow an administrator to adjust the number of mounts after which an existing filesystem will be checked by e2fsck?

A.

debugfs

B.

dumpe2fs

C.

mode2fs

D.

tune2fs

E.

mke2fs

Full Access
Question # 29

After modifying LILO's configuration file, what command should you run for the changes to take effect?

A.

kill -HUP 'pidof lilo'

B.

lilo-install

C.

lilo

D.

reboot

Full Access
Question # 30

Which of the following is true when hard-linked files are present?

A.

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

B.

The hard-linked files may not be empty

C.

Both files will share the same inode

D.

Issuing a long directory listing with ls -1 will indicate the link with "->"

E.

The file permissions will be prefixed by an "h", eg. hrwxr-x-r-x

Full Access
Question # 31

You've downloaded an image file of a boot floppy disk to your hard drive. What is the best utility to create a boot floppy from the disk image? (Specify a single command without options.)

Full Access
Question # 32

What command will print the shared libraries for the file /usr/lib/libpng12.so? (Provide the full command with library name but without any other options or parameters)

Full Access
Question # 33

You want to save vi changes to the file myfile with :w!, but vi complains it can not write to the file. Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type:

A.

:!ls -l myfile

B.

:\ls -l myfile

C.

esc :ls -l myfile

D.

:?ls -l myfile

Full Access
Question # 34

Which command line option would you use to restrict the GNU find command to searching a particular number of subdirectories?

A.

--max-dirs

B.

-dirmax

C.

-maxdepth

D.

-s

E.

-n

Full Access
Question # 35

You wish to execute two commands, one after the other. However, you only want the second command to execute if the first is successful. Which character(s) do you put between the commands on the command line to accomplish this?

Full Access
Question # 36

What command returns the first few lines of a given file?

Full Access
Question # 37

What file is read by the program ldconfig?

A.

/lib/ld.so

B.

/etc/ld.so.conf

C.

/etc/ld.so.cache

D.

/etc/modules.conf

Full Access
Question # 38

You are about to install a new program on an RPM based Linux system. Which of the following would be the best way to accomplish this?

A.

Get the source code in a tarball and install from that source.

B.

Get a source RPM and use rpm to install it.

C.

Use rpm to install the program's binaries from an RPM package.

D.

Use cpi to extract the binaries from a source RPM and use rpm to install those sources.

Full Access
Question # 39

You installed a beta rpm package, but are experiencing some problems with it. How can you remove this package?

A.

rpm -qe rpmname

B.

rpm -V --remove rpmname

C.

rpm -r rpmname

D.

rpm -d rpmname

E.

rpm -ev rpmname

Full Access
Question # 40

What command would help you identify the I/O address range being used by the network card?

A.

cat/proc/modules

B.

cat/proc/devices

C.

cat/proc/meminfo

D.

cat/io/dma

E.

cat/proc/ioports

Full Access
Question # 41

What is the proper option to put in /etc/fstab to enable group quotas for a particular parition?

A.

groupquota

B.

grpquota

C.

groupquoatas

D.

grpquotas

Full Access
Question # 42

To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which option will need to be added to the corresponding line in /etc/fstab?

A.

nouidchk

B.

alluser

C.

user

D.

auto

Full Access
Question # 43

What umask will set the file permissions on a newly created file to -rw-r--r-- (644)?

A.

0002

B.

0022

C.

0224

D.

0246

Full Access