Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free GAQM Linux Certified Professional (LCP) LCP-001 Exam Questions

Page: 1 / 20 Total 289 questions

Want more questions? Get Premium Access.

Question 1

To what environment variable will you assign or append a value if you need to tell the dynamic linker to look in a build directory for some of a program's shared libraries?

Correct Answer: C. LD_LIBRARY_PATH

Question 2

What command will remove duplicate lines from a sorted file?

Correct Answer: C. uniq
Explanation:

uniq - remove duplicate lines from a sorted file


Question 3

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

Correct Answer: B. kbdmap

Question 4

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

Correct Answer: A. /etc/X11/xdm/Xsetup

Question 5

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

Correct Answer: A. head

Question 6

Which command will disable paging and swapping on a device? (Provide only the command with no additional options or parameters)

Correct Answer: A. /sbin/swapoff

Question 7

You have just added a CD-ROM drive (/dev/hdd) to your system and have added it to your fstab. Typically you can use which of the following commands to mount media in that drive to /mnt/cdrom?

Correct Answer: D. mount/mnt/cdrom

Question 8

Which command will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?

Correct Answer: B. /bin/grep -v ^# foobar

Question 9

Which file is used by ld.so to find libraries quickly without actually having to search the directories in its library path?

Correct Answer: A. /etc/ld.so.cache

Question 10

The/etc/ ________ file lists currently mounted devices.

Correct Answer: A. mtab

Question 11

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

Correct Answer: B. grpquota

Question 12

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

Correct Answer: B. apt-cache

Question 13

You are preparing a new set of shared libraries in /usr/local/applib and you have written and compiled some code that uses these libraries. You have already performed and ldconfig, however the system still cannot find the shared libraries. What is most likely the cause of this?

Correct Answer: D. You forgot to put the library path in ld.so.conf

Question 14

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.

Correct Answer: A. expand
Explanation:

The expand command is used to convert from tab to space. Example: expand -t 2 test a. It will convert the tab into two spaces.


Question 15

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

Correct Answer: B. uname