Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

GAQM LCP-001 Dumps

Page: 1 / 11
Total 289 questions

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

Question 1

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

Options:

A.

/etc

B.

/home

C.

/var

D.

/lib

E.

/tmp

Question 2

You enter the command date +%M. Wat does the output show you?

Options:

A.

the current year

B.

the current month

C.

the current hour

D.

the current minute

E.

the current second

Question 3

What is the output when the following shell script executes?

Cat <

Hello foobar

foobar

Options:

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

Question 4

The X program _________ is often used to make minor keyboard adjustments, like proper Back space/Delete mapping.

Options:

A.

xkbdmap

B.

kbdmap

C.

xmodmap

D.

modmap

Question 5

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

Options:

Question 6

Which of the following commands will list the quota for the user foobar?

Options:

A.

repquota foobar

B.

quota foobar

C.

lsquota foobar

D.

printquota foobar

Question 7

USB fax/modems that conform to this subclass of the Communication Device Class (CDC) vendor neutral standard are Linux compatible (answer is a 3 letter acronym)

Options:

Question 8

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

Options:

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

Question 9

Given the following output: prompt> myapp [1]+ Stopped myapp prompt> Which of the following commands will resume executing the stopped process and make it the current job?

Options:

A.

bg myapp

B.

continue myapp

C.

exec myapp

D.

fg myapp

E.

myapp &

Question 10

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.

Question 11

When in Normal mode in vi, which command character can be used to begin a reverse search of the text?

Options:

A.

?

B.

/

C.

F

D.

r

Question 12

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

Options:

Question 13

Which of the following is a limitation of the cut command?

Options:

A.

The cut command can only select output by field position.

B.

The cut command cannot reorder fields.

C.

The cut command only works on ASCII text.

D.

The cut command will always print one line of output for every line of input.

Question 14

An administrator has sent their current vi process with a PID of 1423 to the background on the command line. Assuming no other processes are in the background, what single command with no options or parameters will bring the vi process to the foreground?

Options:

Question 15

________ /dev/sda3 will create a swap area on the device/dev/sda3.

Options:

Question 16

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.

Question 17

Which of the following commands will produce the following output: USERPID %CPU %MEMVSZ RSS TTY STAT STARTTIME COMMAND root 1255 4.4 0.9 6071634824 tty7 Ss+ 09:25 19:04 /usr/bin/X :0 - root 2016 0.0 0.0 792 560 tty1 Ss+ 09:26 0:00 /sbin/getty -8 matt 5204 0.0 0.1 6320 3696 pts/4 Ss 13:12 0:00 bash matt 5219 0.0 0.0 3988 624 pts/4 S+ 13:12 0:00 man bash matt 5229 0.0 0.0 3584 932 pts/4 S+ 13:12 0:00 pager -s matt 6768 0.0 0.1 10504 3880 pts/2 S+ 15:11 0:00 vi README.txt

Options:

A.

jobs

B.

proclist

C.

netstat

D.

ps

Question 18

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

Options:

A.

/dev/hda3

B.

/dev/sd0a3

C.

/dev/sda3

D.

/dev/sd1p3

Question 19

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:

Options:

Question 20

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

Question 21

When should grep -F or the fgrep command be used to search the content of text files?

Options:

A.

When files need to be searched that contain non-ASCII text.

B.

When only the presence of the search pattern needs to be reported and not every line that matches the search.

C.

When the text being searched for does not contain any regular expression patterns.

D.

When the text files will be searched multiple times. Subsequent calls to fgrep will run faster.

Question 22

You are writing text in vi. Now you want to save your changes and exit. Which TWO sequence of inputs will accomplish this?

Options:

A.

esc ZZ

B.

ctrl :w!

C.

esc zz

D.

esc :wq!

E.

ctrl XX

Question 23

Which command will display messages from the kernel that were output during the normal bootup sequence? Answer:

Options:

Question 24

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

Options:

A.

bcast

B.

mesg

C.

print

D.

wall

E.

yell

Question 25

After a minor security incident you are instructed by your lead sys-admin to verify the RPM's installed on running system. Which command will create a complete report which you can analyze for changes which may be security related?

Options:

A.

.rpm-Va>report

B.

rpm-Qavy > report

C.

rpm-Vqt-- nomd5>report

D.

rpm-checkfiles >report

E.

rpm-Va-nofiles > report

Question 26

You have read/write permission on an ordinary file foo. You have just run ln foo bar. What would happen if you ran rm foo?

Options:

A.

foo and bar would both be removed.

B.

foo would be removed while bar would remain accessible.

C.

foo would be removed. bar would still exist but would be unusable.

D.

Both foo and bar would remain accessible.

E.

You would be asked whether bar should be removed.

Question 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

Question 28

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

Question 29

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

Question 30

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.

Question 31

You are formatting a single hard disk for a Linux install. What is the maximum number of primary partitions you can create?

Options:

A.

0

B.

1

C.

2

D.

3

E.

4

F.

5

Question 32

In order to append the output of ls to a file called bazz, which of the following command lines would you use?

Options:

A.

ls > bazz

B.

ls >& bazz

C.

ls &> bazz

D.

ls >> bazz

Question 33

What command will remove duplicate lines from a sorted file?

Options:

A.

filter

B.

trim

C.

uniq

D.

wc

Question 34

Which of the following GNU commands would be the most likely command you'd use to find the system load average?

Options:

A.

top

B.

nice

C.

loadavg

D.

cpustat

E.

ps

Question 35

You have an updated RPM called screensaver-1.1.i386. rpm. You have version 1.0 installed. Using RPM, how do you view the changelog of this file to see if you should install the update?

Options:

A.

rpm -qp --changelog screensaver-1.1.i386. rpm

B.

rpm --changelog screensaver-1.1.i386. rpm

C.

rpm -qc screensaver-1.1.i386. rpm

D.

rpm -showchangelog screensaver-1.1.i386. rpm

Question 36

You have a text file with tab-separated values, but your application needs them space-separated. What command would you use from the Bash shell to achieve this? Please fill in the command only, without any options.

Options:

Question 37

Which TWO commands will find the path for the binary vim?

Options:

A.

man vim

B.

whereis vim

C.

apropos vim

D.

which vim

Question 38

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:

Question 39

You wish to send the output of a command to standard output (stdout) and save it to a file. The command to use is ______________. (Do not specify arguments)

Options:

Question 40

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

Question 41

Given the following output:

Prompt > myapp

[1]+ Stopped myapp prompt>

Which of the following commands will resume executing the stopped process while allowing the user to continue to type commands at the command prompt?

A . bg myapp

Options:

A.

continue myapp

B.

exec myapp

C.

fg myapp

D.

myapp &

Question 42

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

Options:

A.

To allow disks to be mounted remotely.

B.

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

C.

To make the command history available to sub-shells.

D.

To setup environment variables for applications.

E.

To share NFS partitions for use by other systems on the network.

Question 43

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:

Page: 1 / 11
Total 289 questions