Linux Essentials Midterm Exam
Which of the following commands can be used to rename a file? rm cp name mv
mv
Which of the following commands can be used to compress a file? (choose three) zip bzip2 gzip bunzip2 cat
zip bzip2 gzip
Source code refers to: A human-readable version of computer software The interface that software uses to talk to the kernel The version of a program that the computer runs on the CPU The license that dictates how you may use and share the software
A human-readable version of computer software
The most common shell used for Linux distributions is the ________ shell. Zsh Fish Tsch Bash
Bash
The touch command can be used to: (choose two) Change ownership of a file Create new files Change a file's name Update the timestamp of existing files
Create new files Update the timestamp of existing files
Compression of a file works by: Removing the high order bit from each byte Eliminating gaps within the file Storing most of the data on removable media and just leaving a pointer Removing redundant information Consolidating multiple files into one
Removing redundant information
The following sections commonly appear on a man page: (choose three) SYNOPSIS NAME LICENSE DESCRIPTION
SYNOPSIS NAME DESCRIPTION
In graphical mode, you can get to a shell by running which applications? (choose two) Gbash Guiterm Terminal Xterm console
Terminal Xterm
The asterisk character is used to represent zero or more of any character in a filename. True or False? True False
True
The main purpose of using glob characters is to be able to provide a list of filenames to a command. True or False? True False
True
The shell program interprets the commands you type into the terminal into instructions that the Linux operating system can execute. True or False? True False
True
The cd command by itself will take you to what directory? The directory above the current working directory None; it is not a valid command Your home directory The system root directory
Your home directory
What command will allow you to change your current working directory? ls list chdir cd
cd
The top-level directory on a Linux system is represented as: / /home C: /root
/
Virtualization means: Many users can share one hard drive A user can connect to a server over the network and use a virtual console A machine can swap memory to disk A single host can be split up into multiple guests Two users get different memory spaces on the same machine
A single host can be split up into multiple guests
The tilde (~) is used to represent: Nothing; it has no special meaning Any two single characters The directory above the current working directory A user's home directory
A user's home directory
Creative Commons licenses allow you to: (choose three) Receive royalties on the use of the work Allow or disallow commercial use Specify whether or not people may distribute changes Get a veto on where the work is used Specify whether or not changes must be shared
Allow or disallow commercial use Specify whether or not people may distribute changes Specify whether or not changes must be shared
The most popular Linux platform for mobile phones is: Android Slackware BlackBerry IOS MobileLinux
Android
The acronym CLI stands for: Command Line Interface Computer Link Interpreter Command Line Interpreter Computer Line Interface
Command Line Interface
A maintenance cycle: Describes how often updates for software come out Should be short so you always have the freshest releases Describes how long a version of software will be supported Only has meaning for paid software Should be long so that you have time before you need to upgrade
Describes how long a version of software will be supported
The release cycle: Only has meaning for paid software Describes how long software will be supported Should be long so that you have time before you need to upgrade Should be short so you always have the freshest releases Dictates how often software is updated
Dictates how often software is updated
When choosing a distribution of Linux, you should consider: (choose five) Popularity on social media Does the distribution offer a "stable" version Does your organization require long-term support for the system If the application software is supported by the distribution Will users require a GUI Will commercial support be required for the OS
Does the distribution offer a "stable" version Does your organization require long-term support for the system If the application software is supported by the distribution Will users require a GUI Will commercial support be required for the OS
A pair of double quotes (" ) will prevent the shell from interpreting any metacharacter. True or False? True False
False
Linux is distributed under which license? MIT GPLv2 GPLv3 Linux Foundation BSD
GPLv2
The Linux shell: (choose three) Is responsible for tracking the location of configuration files Has a scripting language Has a built-in text editor Is customizable Allows you to launch programs
Has a scripting language Is customizable Allows you to launch programs
The first character in a long listing (ls -l) indicates: If something is a file, directory, or symbolic link The size The permissions The owner
If something is a file, directory, or symbolic link
A copyleft provision in a software license means: You give up your copyright to the software You may not link against third party closed source software You must provide support for your modifications You must provide free copies of the software if you use it If you redistribute the software, you must distribute the source to any changes you make
If you redistribute the software, you must distribute the source to any changes you make
The three main modes of tar are: (choose three) Copy List Compress Extract Create
List Extract Create
Which of the following are examples of desktop software? (choose two) File share Compiler Music player Web server Web browser
Music player Web browser
Which of the following pieces of software deal with file sharing? (choose three) Netatalk Samba X-Windows NFS PostgreSQL
Netatalk Samba NFS
Which environment variable contains a list of directories that is searched for commands to execute? PS2 PATH EXEC PS1
PATH
What does a distribution provide to add and remove software from the system? Package Manager Application Programming Interface (API) Partitioning tool Compiler Bash
Package Manager
In the command tar -czf foo.tar.gz bar, what is the purpose of the f flag? Tells tar to write to the file that follows the flag Tells tar to print the name of each file as it is processed Tells tar to read from the file that follows the flag Specifies extra compression is to be used Tells tar to copy only files, and not directories
Tells tar to write to the file that follows the flag
The statement that describes the difference between a man page and an info page is: The man page is a long detailed reference; the info page is very terse. There is very little difference between them. The man page is like a guide; the info page is a more concise reference. The info page is like a guide; a man page is a more concise reference.
The info page is like a guide; a man page is a more concise reference.
Which of the following are glob characters? (choose three) The question mark "?" The dash character "-" The square brackets "[" and "]" The asterisk "*"
The question mark "?" The square brackets "[" and "]" The asterisk "*"
Lossy compression: (choose three) Usually results better compression than lossless Is often used with images Sacrifices some quality Is often used with documents Decompresses to an identical version as the original
Usually results better compression than lossless Is often used with images Sacrifices some quality
Open source means: (choose two) You can modify the software's source code You must share your changes You must support the software you share You cannot charge anything for the software You can view the software's source code
You can modify the software's source code You can view the software's source code
To search the man page sections for the keyword example, which of the following command lines could you execute? (choose two) man -k example apropos example man -f example whatis example
man -k example apropos example
Which two pager commands are used by the man command to control movement within the document? (choose two) more page grep less
more less
Select the command that can report the location of a command: what where which
which
