Linux LPI 117-101 # 8 Of 9

55 Questions | Total Attempts: 97

SettingsSettingsSettings
Please wait...
Linux Quizzes & Trivia

Linux lpi testing


Questions and Answers
  • 1. 
    What two things does the /etc/fstab file contain references to?
    • A. 

      File Systems

    • B. 

      Mount Points

    • C. 

      User Options

    • D. 

      File System Defaults

    • E. 

      File System Permissions

  • 2. 
    Which is a valid /etc/fstab entry
    • A. 

      Fs1:/proc /mnt/fs1 nfs defaults 9 9

    • B. 

      /mnt/fs1 fs1:/proc nfs defaults 0 0

    • C. 

      Fs1:/home /mnt/fs1 nfs defaults 0 0

    • D. 

      /mnt/home fs1:/home nfs defaults 0 0

    • E. 

      /home:fs1 /mnt/fs1 nfs defaults 0 0

  • 3. 
    Which entry in /etc/fstab will allow any user to mount andunmount /dev/cdrom?
    • A. 

      /dev/cd rom /cd ro,noauto,unhide, all iso9660 0 0

    • B. 

      /dev/cdrom /cd iso9660 ro,noauto,nonroot 0 0

    • C. 

      /dev/cdrom /cd iso9660 ro,user,noauto,unhide 0 0

    • D. 

      /dev/cdrom /cd iso9669 ro,user,noauto,unhide 0 0

    • E. 

      /dev/cdrom /cd iso9660 ro,noauto,defaults 0 0

  • 4. 
    What is the proper option to put in /etc/fstab to enable user quotas for particular partition?
    • A. 

      Usrquoata

    • B. 

      Userquota

    • C. 

      Userquoatas

    • D. 

      Usrquotas

  • 5. 
    What command (with parameter[s]) would you type to mount all partitionsspecified in the /etc/fstab?
  • 6. 
    You have just added a CD-ROM drive (/dev/hdd) to your system and have added itto your fstab. Typically you can use which of the following commands to mountmedia 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

  • 7. 
    You wish to copy the entire contents of the /dev/hda1 to /dev/hdb1 block by block.Type in the simplest command that would do this?
  • 8. 
    You have a floppy image called boot.img in your current working directory andwish to transfer this image to a floppy device /dev/fd0. Type in the simplestcommand that would do this?
  • 9. 
    You are building a server that will have many hardware and operating systemupgrades. The server is the file server for all users on your 100 user network. Whichdirectory should have its own mountpoint and/or hard drive?
  • 10. 
    On boot you see an error message indicating that line 18 of /etc/fstabis bad. Looking at it shows:/dev/fdO /mnt/ floppy auto auto, user 0 0Why is there an error?
    • A. 

      Auto is not allowed in the third field for rernoveable media.

    • B. 

      Auto in the fourth field cannot be used for removeable media.

    • C. 

      The fifth field must be 1 for removeable media.

    • D. 

      The sixth field must be 1 for removeable media

  • 11. 
    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.

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

      Nouidchk

    • B. 

      Alluser

    • C. 

      User

    • D. 

      Auto

  • 13. 
    Which file contains information about filesystems and their respective mount points?
    • A. 

      /etc/mount

    • B. 

      /etc/fs_mount

    • C. 

      /etc/fstab

    • D. 

      /proc/fstab

  • 14. 
    Which option must be listed in /etc/fstab to activate user quotas automatically?
    • A. 

      Quota

    • B. 

      User

    • C. 

      Quotaon

    • D. 

      Usrquota

  • 15. 
    How can you generate a report on the disk usage and quotas for all filesystem whichare defined in /etc/mtab to be read-write with quotas?
    • A. 

      Quotarep -a

    • B. 

      Repquota /dev/hd*

    • C. 

      Repquota -a

    • D. 

      Quotarep /dev/hd*

  • 16. 
    What must be added to the following to enable group quotas for /usr?/dev/hda2 /usr ext2 defaults 1 1
  • 17. 
    Two directories require different quota for file system usage. The /var/maildirectory needs a 20MB quota, and the /home directories require a 40MB quota.What must be true about these directories?
    • A. 

      They must exist on Ext3 partitions

    • B. 

      They must be on different drives

    • C. 

      They must be on different partitions

    • D. 

      They must be mounted by the root user

  • 18. 
    You want to configure user quotas for the /home filesystem. You've installed thequota packages. What else needs to be done to enable the filesystem's quotas?Choose all that apply.
    • A. 

      Add usrquota to the /etc/fstab options column

    • B. 

      Run the quotaon command

    • C. 

      Run the quotacheck -avug command

    • D. 

      Edit the user's quota settings

    • E. 

      Remount the file system

  • 19. 
    Where is the quota information for users of volume /home stored?
    • A. 

      /etc/sysconfig/quota/quota.home.user

    • B. 

      /etc/quota/quota.home.user

    • C. 

      /home/quota.home.user

    • D. 

      /home/quota.user

    • E. 

      /home/quota.home.group

  • 20. 
      What file must be put in the root of a filesystem for quotas to be enabled for users?
  • 21. 
    You are the root user of a system, and need to gather quota information about allusers on the system. Type the command along with any options and arguments toaccomplish this.
  • 22. 
    You are building that what will be a busy email and web server. You have plenty ofspace on a hardware RAID device. You are concerned about heavy log activitycausing problems. Which directory should you give its own partition?
  • 23. 
    To prevent users from being able to fill up the / partition, the _________ directoryshould be on a separate partition if possible because it is world writeable.
  • 24. 
    Which of the following commands is run last during boot on a systemWith quotas enabled?
    • A. 

      Fsck

    • B. 

      Mount

    • C. 

      Quotacheck

    • D. 

      Quotaon

  • 25. 
    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

Back to Top Back to top