Linux Certified Professional (LCP) Powered by LPI v5.0 (LCP-001)

Page:    1 / 20   
Total 289 questions

Which command (without options) would you use to display how much space is available on all partitions?



Answer : df /bin/df

You are using quota on your system. How can you see disk quota details?

  • A. repquota
  • B. quota -l
  • C. quota
  • D. quotachech
  • E. quota --list


Answer : A

You are experimenting with a binary in /tmp/foo.d that expects its configuration file at
/etc/foo.conf. You don't want to save it there, but use a symbolic link to /tmp/foo.d/foo.conf instead. Which command would accomplish that?

  • A. ln -s /tmp/foo.d/foo.conf /etc/foo.conf
  • B. ln /tmp/foo.d/foo.conf /etc/foo.conf
  • C. ln -s /etc/foo.conf /tmp/foo.d/foo.conf
  • D. ln /etc/foo.conf /tmp/foo.d/foo.conf


Answer : A

Explanation:
There are two types of link a. Soft link b. Hard link.
b. Soft link Can create for directory also, can span multiple partitions but available until and unless Original Files remain. Syntax for Soft link ln -s originalfile linkfile b. Hard link One separate Physical File, can't create for directory, can't span multiple file but remains the link file if original file removed.
Syntax for Hard link ln originalfile linkfile

Which of the following Linux filesystems pre-allocates a fixed number of inodes at the filesystem's make/creation time, and does NOT generate them as needed?

  • A. ext3
  • B. jfs
  • C. reiserfs
  • D. xfs


Answer : A

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?

  • A. mount/dev/cdrom/mnt/cdrom
  • B. mount/dev/cdrom
  • C. mount -t cdrom/dev/cdrom/mnt/cdrom
  • D. mount/mnt/cdrom
  • E. automount/mnt/hdd/mnt/cdrom


Answer : D

You have written a custom tool on your local system. Following the Filesystem Hierarchy
Standard (FHS), where should you install the binaries to be available to all users on your system?



Answer : /usr/local/bin /usr/local/bin/

What does the command mount -a do?

  • A. It mounts the floppy disk for all users.
  • B. It shows all mounted file systems.
  • C. It opens /etc/fstab to edit.
  • D. It mounts all file systems listed in /etc/fstab.


Answer : D

What would the following line accomplish if run as root? chown -R bert /home/bert/*

  • A. Nothing, this command is invalid.
  • B. It would revoke bert's ownership of all files in /home/bert to bert.
  • C. It would change user ownership of all files in /home/bert to bert.
  • D. It would set the group ownership of the directory /home/bert to bert
  • E. It would set ownership of all files and subdirectories in /home/bert to bert


Answer : E

Which one of the following programs will only find files that are in your PATH?

  • A. locate
  • B. slocate
  • C. which
  • D. find


Answer : C

What does the Filesystem Hierarchy Standard enable? (Select TWO answers)

  • A. Software to predict the location of installed files and directories
  • B. Software to predict the ownership and access rights of installed files and directories
  • C. Users to predict the location of installed files and directories.
  • D. Users to predict how the filesystem should be formatted according to need.


Answer : A,C

You want the default permissions for your files to be -rw-r----- . HOW must you set umask?

  • A. 037
  • B. 640
  • C. 038
  • D. 027


Answer : D

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

  • A. chown foo/bar biglist
  • B. chown -u foo -g bar biglist
  • C. chown foo:bar biglist
  • D. chown --user foo --group bar biglist


Answer : C

Which of the following programs will only find files that are in your PATH?

  • A. locate
  • B. slocate
  • C. which
  • D. find


Answer : C

Which option must be listed in /etc/fstab to activate user quotas automatically?

  • A. quota
  • B. user
  • C. quotaon
  • D. usrquota


Answer : D

Explanation:
To implement quota in partitions, we should mount with usrquota for user quota, grpquota for group quota. Example of mounting /home using usrquota and grpquota options.
LABEL=/home /home ext3 defaults,usrquota,grpquota 1 2

Which of the following commands makes /bin/foo executable by everyone but only writable by its owner?

  • A. chmod 557 /bin/foo
  • B. chmod o +rwx, a+rx /bin/foo
  • C. chown 557 /bin/foo
  • D. chmod 755 /bin/foo


Answer : D

Page:    1 / 20   
Total 289 questions