Linux Essentials Final Exam

72 Questions | Total Attempts: 464

SettingsSettingsSettings
Linux Essentials Final Exam - Quiz

.


Questions and Answers
  • 1. 
    One of the jobs of the kernel is to:
    • A. 

      Manage the system's recources

    • B. 

      Turn source code into machine code

    • C. 

      Load the operating system after the computer is turned on

    • D. 

      Transfer mail from one machine to another

  • 2. 
    Unix is: (Choose two)
    • A. 

      An operating system

    • B. 

      A type of hardware

    • C. 

      A trademark

    • D. 

      A distribution of Linux

    • E. 

      A text editor

  • 3. 
    Linux is written in:
    • A. 

      C

    • B. 

      NET

    • C. 

      C++

    • D. 

      Java

    • E. 

      Perl

  • 4. 
    Source code refers to:
    • A. 

      The version of a program that the computer runs on the CPU

    • B. 

      The license that dictates how you may use and share the software

    • C. 

      The interface that software uses to talk to the kernel

    • D. 

      A human readable version of computer software

  • 5. 
    What is the standard option to provide a command line program to view its documentation?
    • A. 

      -info

    • B. 

      -doc

    • C. 

      -help

    • D. 

      -h

  • 6. 
    The command man -k is the same as the command apropos. True or false?
    • A. 

      True

    • B. 

      False

  • 7. 
    The whatis command is the same as man -w.
    • A. 

      True

    • B. 

      False

  • 8. 
    The directory where additional documentation for software packages most likely can be found is:
    • A. 

      /var/lib/doc

    • B. 

      /usr/software/doc

    • C. 

      /usr/share/doc

    • D. 

      /var/share/doc

  • 9. 
    Hidden files are files that begin with what character?
    • A. 

      A plus (+)

    • B. 

      A dash (-)

    • C. 

      A period (.)

    • D. 

      An asterisk (*)

  • 10. 
    What option for the ls command will display all files, including hidden files?
    • A. 

      -w

    • B. 

      -H

    • C. 

      -L

    • D. 

      -a

  • 11. 
    The top-level directory on a Linux system is represented as:
    • A. 

      /

    • B. 

      /root

    • C. 

      /home

    • D. 

      C:

  • 12. 
    Is the following path absolute or relative? /etc/ppp
    • A. 

      Relative

    • B. 

      Absolute

  • 13. 
    Is the following path absolute or relative? Sysadmin/Documents
    • A. 

      Relative

    • B. 

      Absolute

  • 14. 
    Compressing on a file works by:
    • A. 

      Removing the high order bit from each byte

    • B. 

      Consolidating multiple files into one

    • C. 

      Removing redundant information

    • D. 

      Storing most of the data on removable media and just leaving a pointer

    • E. 

      Eliminating gaps within the file

  • 15. 
    In general, for which of the following would you want to use lossless compression?
    • A. 

      An mp3 audio file

    • B. 

      A movie

    • C. 

      A log file

    • D. 

      A JPEG image

    • E. 

      An encrypted email

  • 16. 
    Lossy compression: (choose three)
    • A. 

      Is ofter used with documents

    • B. 

      Decompresses to an identical version as the original

    • C. 

      Sacrifices some quality

    • D. 

      Usually results better compression than lossless

    • E. 

      Is often used with images

  • 17. 
    You type gzip myfile.tar. What happens? (choose two)
    • A. 

      Myfile.tar.gz holds a compressed version of myfile.tar

    • B. 

      An error; you forgot to pass the name of the output file

    • C. 

      An error; you forgot to specify the file with -f

    • D. 

      Myfile.tar is unarchived into the current directory

    • E. 

      Myfile.tar is removed

  • 18. 
    Error messages generated by commands are sent where by default?
    • A. 

      STDIN

    • B. 

      Log files

    • C. 

      STDERR

    • D. 

      STDOUT

  • 19. 
    A successful command will print output to STDOUT True or False?
    • A. 

      True

    • B. 

      False

  • 20. 
    Which of the following commands will direct error messages to the file, error.log? (choose one)
    • A. 

      Ls /root > error.log

    • B. 

      Ls /root >> error.log

    • C. 

      Ls /root 2> error.log

    • D. 

      Ls /root $> error.log

  • 21. 
    A pipe allows you to...
    • A. 

      Send the same input to multiple commands

    • B. 

      Send the output of one command to another

    • C. 

      Send the output of a command to a file

    • D. 

      Type multiple commands at one prompt

  • 22. 
    Channel 2 is:
    • A. 

      STDERR

    • B. 

      STDIN

    • C. 

      STDALL

    • D. 

      STDOUT

  • 23. 
    The echo command:
    • A. 

      Tests a variable for duplication

    • B. 

      Ducplicates the input stream to the output stream

    • C. 

      IS used for variable assignment

    • D. 

      Is used to ouput text to the console

    • E. 

      Copies variables from one to another

  • 24. 
    A file begins with #!/bin/csh. This means:
    • A. 

      C Shell compatibility mode is enabled

    • B. 

      Running the script will invoke /bin/csh to interpret the rest of the file

    • C. 

      The operator should not be using /bin/csh

    • D. 

      This is a Peri script

    • E. 

      Nothing, this is a comment

  • 25. 
    Which are appropriate editors for writing shell script? (choose two)
    • A. 

      Nano

    • B. 

      LibrOffice Writer

    • C. 

      /bin/bash

    • D. 

      Vi

    • E. 

      Firefox

Back to Top Back to top