Linux+ Networking Chapter 6

18 Questions

Settings
Linux+ Networking Chapter 6

Linux+ Networking Chapter 6


Questions and Answers
  • 1. 
    You want to see the filesystems that are presently in use on the system. What command could you use?
    • A. 

      Cat /etc/fstab

    • B. 

      Ls -l /etc/fstab

    • C. 

      Cat /etc/mtab

    • D. 

      Ls -l /etc/fstab

  • 2. 
    Jim has just purchased two new SCSI hard disk drives and a controller card for them. He properly installs the hardware in his machine. Before he can use them for data storage and retrieval, what must he do? (Choose all that apply.)
    • A. 

      Use the vi editor to edit /etc/mtab and create an entry for the controller card and the hard disk drives.

    • B. 

      Mount a filesystem to each of the hard disk drives.

    • C. 

      Use the fdisk command to create one or more partitions on each of the hard disk drives.

    • D. 

      Mount any partitions created on the two hard drives such that they are accessible by the operating system.

    • E. 

      Format any partitions created with a valid filesystem recognized by Linux.

  • 3. 
    • A. 

      None, as fsck must be run manually for each filesystem

    • B. 

      /, /dev/pts and /dev/shm

    • C. 

      /, /proc and swap

    • D. 

      All of them, as fsck is run automatically at boot for all filesystems

  • 4. 
    A user mounts a device to a mount point directory and realizes afterward there are files previously found within the mount point directory that are needed. What should this user do?
    • A. 

      Nothing; the files are lost and cannot ever be accessed.

    • B. 

      Nothing; the files could not have been there as you can only mount to empty directories.

    • C. 

      Unmount the device from the directory.

    • D. 

      Run the fsck command to recover the file.

    • E. 

      Look in the lost+found directory for the file.

  • 5. 
    Which command is used to display the amount of free space that exists on a filesystem?
    • A. 

      Fsck

    • B. 

      Quota

    • C. 

      Du

    • D. 

      Df

  • 6. 
    What must you do to successfully run the fsck command on a filesystem?
    • A. 

      Run the fsck command with the -u option to automatically unmount the filesystem first.

    • B. 

      Choose yes when warned that running fsck on a mounted filesystem can cause damage.

    • C. 

      Unmount the filesystem.

    • D. 

      Ensure that the filesystem is mounted.

  • 7. 
    What does the command dumpe2fs –h do?
    • A. 

      Backs up an ext2 filesystem

    • B. 

      Displays the number of inodes used and available in an ext2 filesystem

    • C. 

      Dumps an ext2 filesystem

    • D. 

      Is not a valid command

  • 8. 
    • A. 

      The floppy drive cable has come loose.

    • B. 

      There is no floppy disk in the drive.

    • C. 

      The device file has become corrupt.

    • D. 

      The floppy drive is seen as a character device.

  • 9. 
    Which of the following statements are true? (Choose all that apply.)
    • A. 

      Quotas can limit both user space and the number of files a user can own.

    • B. 

      Quotas can only limit user space.

    • C. 

      Hard limits can never be exceeded.

    • D. 

      Hard limits allow a user to exceed them for a certain period of time.

    • E. 

      Soft limits allow a user to exceed them for a certain period of time.

  • 10. 
    Hard disk drives need to be partitioned even if all space on the entire hard drive will be used and configured with one filesystem. True or False?
    • A. 

      True

    • B. 

      False

  • 11. 
    What happens if you type mount /mnt/floppy?
    • A. 

      The system responds with a message prompting for more information.

    • B. 

      The system responds with a message that the command failed due to missing parameters.

    • C. 

      The command succeeds because a line with the necessary parameters exists in /etc/fstab.

    • D. 

      The command succeeds because a line with the necessary parameters exists in /etc/mtab.

  • 12. 
    Which command is used to format a partition on a hard disk drive?
    • A. 

      Format

    • B. 

      None, because the hard disk drive and not the partition must be formatted

    • C. 

      Mkfs -t type device

    • D. 

      MakeFS –type device

  • 13. 
    Character devices typically transfer data more quickly than block devices. True or False?
    • A. 

      True

    • B. 

      False

  • 14. 
    What does the du /var command do?
    • A. 

      Shows the users connected to the /var directory

    • B. 

      Shows the size of all directories within the /var directory

    • C. 

      Dumps the /var directory

    • D. 

      Displays the amount of free space in the /var directory

  • 15. 
    • A. 

      Has no inode section

    • B. 

      Has no data section

    • C. 

      Has no size

    • D. 

      Displays a major and minor number in place of a file size

    • E. 

      Has a fixed size of 300 kilobytes

  • 16. 
     If the filesystem type is not specified with the mkfs command, it _________________.
    • A. 

      Prompts the user for the filesystem to use

    • B. 

      Displays a help screen detailing its usage

    • C. 

      Uses the ext3 filesystem by default

    • D. 

      Uses the ext2 filesystem by default

  • 17. 
    Which command mounts all existing filesystems in /etc/fstab?
    • A. 

      Mount -f

    • B. 

      Mount -a

    • C. 

      Mount /etc/fstab

    • D. 

      Mount /etc/mtab

  • 18. 
    A user runs the fsck command with the -a option on a filesystem that is showing signs of corruption. How would that user locate any files the system was unable to repair?
    • A. 

      Look in the root of the filesystem.

    • B. 

      The system prompts the user for a target location when it comes across a file it cannot repair.

    • C. 

      Mount the filesystem and check the lost+found directory underneath the mount point.

    • D. 

      View the contents of the directory /lost+found.