Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtick70

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

LCP-001 Linux Certified Professional (LCP) Powered by LPI Questions and Answers

Questions 4

Which command will convert all tab characters in a file to spaces and print that to standard out?

Options:

A.

convert

B.

expand

C.

retab

D.

untab

Buy Now
Questions 5

Which shell built-in command can be used to create a shortcut or pseudonym for a longer command?

Assume a modern bourne-like shell, such as bash.

Options:

A.

shortcut

B.

ln

C.

sudo

D.

link

E.

alias

Buy Now
Questions 6

When you start XWindows, which series of programs and/or scripts would most closely describe the start-up process?

Options:

A.

xdm --> xinit --> xinitrc --> Xclients

B.

kde --> xinitrc --> xinit --> Xclients

C.

startx --> xinitrc --> Xclients --> kde

D.

startx --> xinit --> xinitrc --> Xclients

E.

startx-->xinit-->Xclients-->xinitrc

Buy Now
Questions 7

When you are looking for brief information about a program in your PATH with its associated man pages, you would use?

Options:

A.

which

B.

whereis

C.

locate

D.

where

Buy Now
Questions 8

An installed package is broken. In order to go back to the previous version of the same package which RPM option should be used?

Options:

A.

--replacefiles

B.

--replacepkgs

C.

--oldpackage

D.

--nodeps

Buy Now
Questions 9

Which RPM command will output the name of the package which installed 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 -ql /etc/exports

Buy Now
Questions 10

What command with all options and/or parameter will send the signal USR1 to any executing process of program apache2?

Options:

Buy Now
Questions 11

What command is used to display a file in octal format?

Options:

Buy Now
Questions 12

You just started X for the first time and noticed that the display does not use the entire screen. What program can you use to fix this?

Options:

A.

xvidtune

B.

xf86config

C.

XF86Setup

D.

tweakscreen

Buy Now
Questions 13

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 14

The/etc/ ________ file lists currently mounted devices.

Options:

Buy Now
Questions 15

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) Answer:

Options:

Buy Now
Questions 16

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

Options:

A.

depmod

B.

insmod

C.

modprobe

D.

module_install

E.

loadmod

Buy Now
Questions 17

You want to search the file myfile for all occurances of string containing at least five characters, where character number 2 and 5 are 'a' and character number 3 is NOT 'b'. Which command would you use?

Options:

A.

grep a*^b*a myfile

B.

grep .a[^b].a myfile

C.

grep .[a].*.[a] myfile

D.

grep .a*^b..a myfile

Buy Now
Questions 18

What does the following command do? cat '$TEST'

Options:

A.

Displays a bash syntax error message.

B.

Displays the contents of the file named $TEST if it exists.

C.

Waits for the user to enter text and then echos the text back.

D.

Displays the contents of the file named inside the back quotes.

E.

Displays the contents of the named by the environment variable TEST.

Buy Now
Questions 19

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

Options:

A.

To allow disks to be mounted remotely.

B.

To automate the export of variables for subsequently executed commands.

C.

To make the command history available to sub-shells.

D.

To run a command as a process in a sub-shell.

E.

To save variable settings for future shell invocations.

Buy Now
Questions 20

You are the system administrator for a consulting firm where several people use Linux as their desktop operating system. One of your users has installed a commercial publishing program that works under X on a variety of UNIX and Linux platforms. The user made a series of configuration changes regarding the initial window size, location and color. Now, he is having difficulty undoing these changes and is asking for your help. In which file would you think you would most likely find the configuration settings you are seeking to change?

Options:

A.

~/.xinitrc

B.

~/.xconfig

C.

~/.Xdefaults

D.

~/.XF86Config

E.

/etc/X11/XF86Config

Buy Now
Questions 21

What umask value will result in the default access permissions of 600 (rw-------) for files and 700

(rwx ------) for directories? (Provide only the numerical umask value)

Options:

Buy Now
Questions 22

When installing XWindows the monitor wasn't recognised but now a data sheet with its specification is available. Which xorg.conf section must be edited to specify the correct values for several variables?

Options:

A.

Screen

B.

Monitor

C.

Border

D.

Modeline

E.

Device

Buy Now
Questions 23

What command should be invoked to give the user sally read and write, but not execute, access to the file strategy.txt using Extended ACL entries?

Options:

A.

setfacl -setperm sally:rw strategy.txt

B.

setfacl -m user::sally+rw strategy.txt

C.

setfacl -m user:sally:rw strategy.txt

D.

setfacl -setperm user:sally+rw strategy.txt

Buy Now
Questions 24

To prevent a command run as root from sending both standard out (stdout) and standard error (stderr) to any terminal or other file or device, which of the following strings should be appended to the command?

Options:

A.

>/dev/null

B.

>/dev/null 1>&2

C.

>/dev/null 2>&1

D.

1>&2 >/dev/null

E.

2>&1 >/dev/null

Buy Now
Questions 25

Which of the following commands will find the string foo in the file filel.txt, regardless of foo being in upper or lowercase letters?

Options:

A.

cat file1.txt | grep -i foo

B.

cat file1.txt > grep -n foo

C.

grep -i foo | file1.txt

D.

grep -n file1.txt < foo

E.

grep -n foo file1.txt

Buy Now
Questions 26

You are running X in networked environment. You want to allow anyone on your network to display their X applications on your desktop. What command can you use to disable all access control for X?

Options:

Buy Now
Questions 27

Which chown command will change the ownership to foo and the group to bar on a file named biglist?

Options:

A.

chown foo/bar biglist

B.

chown -u foo -g bar biglist

C.

chown foo:bar biglist

D.

chown --user foo --group bar biglist

Buy Now
Questions 28

The _____________ command displays ISA plug-and-play devices resource information.

Options:

Buy Now
Questions 29

What command changes the priority of the process running with process id of 12345 to the highest priority?

Options:

A.

/usr/bin/renice +20 1234

B.

/usr/bin/renice -20 12345

C.

/bin/setpriority +20 12345

D.

/bin/setpriority -20 12345

Buy Now
Questions 30

Which of the following commands is equivalent to kill 1234?

Options:

A.

kill -1 1234 or kill -s SIGHUP 1234

B.

kill -2 1234 or kill -s SIGINT 1234

C.

kill -3 1234 or kill -s SIGQUIT 1234

D.

kill -9 1234 or kill -s SIGKILL 1234

E.

kill -15 1234 or kill -s SIGTERM 1234

Buy Now
Questions 31

You are installing Linux on a workstation for a new employee. Which partition should be largest?

Options:

A.

/

B.

/boot

C.

/lib

D.

/usr

Buy Now
Questions 32

What tool can you use to print shared library dependencies?

Options:

A.

ldconfig

B.

ldd

C.

libdep

D.

libpath

E.

ldev

Buy Now
Questions 33

You need to install a fax server. Which type of fax/modem should you install to insure Linux compatibility?

Options:

A.

External Serial Fax/modem

B.

External USB Fax/modem

C.

Internal ISA Fax/modem

D.

Internal PCI Fax/modem

Buy Now
Questions 34

In the vi editor, which of the following commands will delete the current line at the cursor and the 16 lines following it (17 lines total)?

Options:

Buy Now
Questions 35

Keyboards and mice are members of which class of USB devices?

Options:

A.

Communication Device Class

B.

Human Interface Device Class

C.

Mass Storage Device Class

D.

Data Interface Device Class

Buy Now
Questions 36

When reading man pages, a lot of extra characters are shown on screen. Which of the following commands can help to deal with this problem?

Options:

A.

col

B.

grep

C.

more

D.

pg

E.

row

Buy Now
Questions 37

You have just set up the Gnome Display Manager as your default display manager. What file should you edit to change the default greeting for it?

Options:

A.

/etc/X11/prefdm

B.

/etc/X11/XF86Config

C.

/etc/X11/gdm.conf

D.

/etc/X11/gdm/lnit/Default

Buy Now
Questions 38

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

Options:

Buy Now
Questions 39

A Makefile typically contains which targets?

Options:

A.

CFLAGS, CPPFLAGS, LIBS, LDFLAGS

B.

clean, install, uninstall

C.

PATHS, DESTDIR, LIBS, LDFLAGS

D.

prefix, exec_prefix, bindir, mandir

Buy Now
Questions 40

Consider the following output:

prompt> myapp

[1]+ Stopped myapp

This output was the result of the user pressing the keyboard combination of the Ctrl key and what

letter key? Enter only the single (1) letter as your answer

Options:

Buy Now
Questions 41

What key combination is used to forcibly halt the X server in the event of the graphical session becoming unusable (e.g., desktop manager or full screen application hanging)?

Options:

A.

press CTRL+ALT+DEL

B.

press CTRL+ALT+BACK_SPACE

C.

press CTRL+ALT+DEL twice

D.

press CTRL+ALT+F1 then run

Buy Now
Questions 42

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 drives?

Options:

Buy Now
Questions 43

You have just upgraded your PC to a 60 gigabyte IDE drive. While partitioning the drive, you notice that only 32 gigabytes are available. Which of the following will most likely allow you to use the entire drive?

Options:

A.

Create two smaller partitions of 30 gigabytes each.

B.

Set the PC BIOS to use LBA mode.

C.

Create a partition that resides entirely below the first 1024 cylinders.

D.

Use GRUB or the latest version of LILO as a bootloader.

E.

Upgrade the PC BIOS to the latest version available.

Buy Now
Exam Code: LCP-001
Exam Name: Linux Certified Professional (LCP) Powered by LPI
Last Update: May 11, 2025
Questions: 289