Chapter 2 Review

25 Questions | Total Attempts: 114

SettingsSettingsSettings
Chapter 2 Review - Quiz

Fundamentals of Operating System - Disk Partitions, File System and related commands


Questions and Answers
  • 1. 
    Where is virtual memory located?
  • 2. 
    You receive a message that you’ve successfully backed up hda2 on your Linux system. What is hda2?
    • A. 

      2nd disk on a 2 disk system

    • B. 

      2nd partition on your main HD

    • C. 

      The files on a CD

    • D. 

      Subdirectory under root that houses backup

  • 3. 
    You have purchased a special monitor for your computer and the instructions tell you to make a minor modification to the inittab file. Where would you locate this file on a typical Linux system?
    • A. 

      /var

    • B. 

      /fastboot

    • C. 

      /home/users

    • D. 

      /etc

  • 4. 
    While you are typing a command, you misspell the name of a file you want to specify with the command. Which of the following command line key combinations enables you to go back and fix your error?
    • A. 

      Alt+a

    • B. 

      Alt+b

    • C. 

      Ctl+a

    • D. 

      Ctl+b

  • 5. 
    You haven’t changed your user account password for several months and now decide to create a new password. Which of the following commands should you use?
    • A. 

      Password

    • B. 

      Pword

    • C. 

      Passwd

    • D. 

      Psswd

  • 6. 
    The default command interpreter for Linux is ----------------
  • 7. 
    You’re frantically trying to get ready for a meeting and want to access a file in your home directory, but you are currently working in a public directory open to all users. What command can you enter to instantly go to your home directory?
  • 8. 
    Your new colleague asks which partitions vendors recommend setting up on a Linux system. Which of the following partitions do you include in your response?
    • A. 

      Root

    • B. 

      Swap

    • C. 

      /boot

    • D. 

      All the above

  • 9. 
    You have mounted a remote network drive and now you want to unmount that drive. Which of the following commands do you use? (Choose all that apply.)
    • A. 

      Unmount

    • B. 

      Umount

    • C. 

      Driveoff

    • D. 

      Disconnect

  • 10. 
    When you connect a printer via a USB port on your Linux computer, which type of device special file is used to handle streams of data sent to and from the printer?
    • A. 

      Character special file

    • B. 

      Block special file

    • C. 

      Root device file

    • D. 

      Port device file

  • 11. 
    Some of the users in your company create and delete so many files that they have problems with fragmented disks. Which of the following new features in the ext4 file system help to reduce fragmentation problems?
    • A. 

      Hot swap

    • B. 

      Fragmonitor

    • C. 

      Smaller file sizes

    • D. 

      Extents

  • 12. 
    In UNIX and Linux systems, what source of extra memory space is used when working on tasks and files that exceed the RAM capacity on chips in the computer?
    • A. 

      Register memory

    • B. 

      Swap partition

    • C. 

      /mem directory

    • D. 

      /users/mem

  • 13. 
    You are always scheduled for two or three meetings each day and need to keep an eye on the time. What PS1 variable parameter can you set in order to have your command prompt display the current time?
    • A. 

      \t

    • B. 

      \v

    • C. 

      /time

    • D. 

      /date

  • 14. 
    A member of your department has given you permissions to view the contents of the accounting directory under her home directory. The name of her home directory is sweet. Which of the following commands should you use to display the contents of the accounting directory?
    • A. 

      Dir accounting

    • B. 

      Ls /home/sweet/accounting

    • C. 

      Ls ~/accounting

    • D. 

      Cd -l /sweet/accounting

  • 15. 
    It’s late and you have been working all day to finish a report. Before you go home you want to copy several files including your report file. What copy command should you use to ensure that you don’t inadvertently copy an older report file over the newer report file you’ve been working on for the last four hours?  cp -u
    • A. 

      Cp --warn

    • B. 

      Copy -w

    • C. 

      cp -u

    • D. 

      Copy --caution

  • 16. 
    Which of the following are file systems supported by UNIX and Linux operating systems? (Choose all that apply.)
    • A. 

      NTFS

    • B. 

      Vfat

    • C. 

      Ufs

    • D. 

      Ext

    • E. 

      All the above

  • 17. 
    Your boss is planning to do some house cleaning by deleting several old files. However, she mentions that she doesn’t want to delete an important file inadvertently. What command can she use so that she is prompted to make sure she wants to delete a particular file?
    • A. 

      Del ?

    • B. 

      Write -del -q

    • C. 

      Rm -i

  • 18. 
    A friend of yours is trying to make more space on his hard disk drive and is considering deleting the /lib directory because he has heard it mostly contains games that he doesn’t use. What is your recommendation?
    • A. 

      Go ahead and delete but before deletion, copy its contents elsewhere

    • B. 

      Delete /mnt directory instead

    • C. 

      Keep the /lib directory because it holds security information, shared library images, kernel modules and other important files

  • 19. 
    You are curious about the error and system logs kept by your operating system. In what main directory under the root (/) would you most likely find these logs?
    • A. 

      /sbin

    • B. 

      /tmp

    • C. 

      /var

    • D. 

      /sys

  • 20. 
    You have created many notes to yourself that end in .txt. Which of the following commands enables you to list all of the .txt files in your home directory while you are in the Bash shell?
    • A. 

      Dir ##.txt

    • B. 

      Ls *.txt

    • C. 

      Cp .txt -all

    • D. 

      Cat $.txt

  • 21. 
    Which command enable you to set permissions on a directory after you create it?
  • 22. 
    You have many files that begin with the word “account” and that end with two digits to designate a year, such as account00, account 01, and so on. What is the command that enables you to view all of these files that start with account?
    • A. 

      Ls *

    • B. 

      Ls account**

    • C. 

      Ls account??

    • D. 

      Ls account!!

  • 23. 
    When your system boots, it reads a list of mounting instructions from 
    • A. 

      /etc/fstab

    • B. 

      /dev/

    • C. 

      /mnt/

  • 24. 
    Your company is discussing plans to migrate desktop and laptop users to Linux. One concern raised by the users is whether Linux supports the use of CDs and DVDs for both work files and for listening to music. Which of the following is an appropriate answer?
    • A. 

      User can copy music files to HD to play

    • B. 

      Reiser File System of Linux supports CD & DVD files of all types

    • C. 

      Users can mount CDs and DVDs using /removable partition

    • D. 

      Linux supports both the UDF and iso9660 file systems for CD and DVD use

  • 25. 
    New users can be added using the command
    • A. 

      Useradd

    • B. 

      Adduser

    • C. 

      Add -user

Related Topics
Back to Top Back to top