DCOM142
Repeat the former command using a history function.
!!
A pair of these special characters will prevent the shell from interpreting some metacharacter, like glob characters and will also allow for variable expansion.
"" or double quotes
Which of the following are glob characters? (choose three) "The asterisk ""*""" "The question mark ""?""" "The dash character ""-""" "The square brackets ""["" and ""]"""
"The asterisk ""*""" "The question mark ""?""" "The square brackets ""["" and ""]"""
A pair of these special characters will prevent the shell from interpreting any metacharacter.
' or singlequotes or ''
A pipe allows you to...
* ...send the output of one command to another
Which flag would you pass to tar in order to have it make a new archive?
-c
Which option for the cut command is used to specify a delimiter? -d -f = -D
-d
"Which option for the ls command, when used in conjunction with the -l option, will display human-readable sizes?" -S -M -h -H
-h
Which option(s) can be used to prevent cp from overwriting an existing file? (choose two) -z -N -i -n
-i -n
$ ls -l /etc $ ls -la /etc $ ls -lat /etc $ ls -latr /etc $ ls -latrR /etc $ ls -lah /etc $ ls -lah /etc
-l - long -a - all files include hidden -t - modification time in descending order -r - sort the output by modification time -R - recursively list -h - human-readable
Which flag would you pass to tar in order to list the contents of an archive?
-t
Which flag would you pass to tar in order to list files that are being processed?
-v
Which option for the wc command will print the total number of words in a file?
-w
Which flag would you pass to tar in order to compress the archive with gzip?
-z
The double dot (..) can be used to represent the directory... ...above the current directory. ...below the current directory. ...above the current directory only when using the cd command. ...with any two single numbers.
...above the current directory.
The ls command without options or arguments... ...lists the contents of the current directory. ...generates an error as this command requires arguments. ...prompts for a directory to list. ...lists the contents of a user's home directory.
...lists the contents of the current directory.
The top-level directory on a Linux system is represented as: /root C: /home /
/
The directory where additional documentation for software packages most likely can be found is: /usr/share/doc /var/share/doc /usr/software/doc /var/lib/doc
/usr/share/doc
Commands typically executed by a user are covered in section __ of the manual pages
1
Which redirection symbol is used to write/overwrite errors to a file?
2>
Section __ of the manual pages covers File Formats.
5
Which redirection symbol is used to write/overwrite or clobber a file?
>
Source code refers to: The interface that software uses to talk to the kernel The version of a program that the computer runs on the CPU A human readable version of computer software The license that dictates how you may use and share the software
A human readable version of computer software
The tilde (~) is used to represent: Any two single characters Nothing; it has no special meaning A user's home directory The directory above the current working directory
A user's home directory
Which of the following are examples of a web server? (choose two) Apache NFS postfix WordPress Nginx
Apache Nginx
Other commercial Unixes: (choose two) Use completely different commands than Linux Do not run the GNU tools Are tied to their vendor's hardware Are UNIX certified Are almost obsolete
Are tied to their vendor's hardware Are UNIX certified
Which application would you use to edit and piece together sound files to make podcast? Bash GIMP Audiolicious Thunderbird Audacity
Audacity
The two main families of Linux shells are: (choose two) Korn shell C Shell Bourne Shell emacs Python Shell
C Shell Bourne Shell
mkdir
Creates a directory
When a computer boots, it can get its network information through: DHCP SMTP DNS X11 LDAP
DHCP
Ubuntu is derived from which distribution? Fedora Red Hat Enterprise Linux Scientific Linux Slackware Debian
Debian
A Mail Transfer Agent s primary purpose is to: Filter out spam Act as a gateway between faxes and email Deliver email to a user's mailbox Deliver mail between servers Manage the end user s inbox
Deliver mail between servers
A maintenance cycle: Should be short so you always have the freshest releases Should be long so that you have time before you need to upgrade Describes how long a version of software will be supported Describes how often updates for software come out Only has meaning for paid software
Describes how long a version of software will be supported
POP and IMAP are related to: Reading and writing music Email Letting users log in to multiple servers with 1 set of credentials Serving web pages Sharing files
Which distributions are made by, or clones of, Red Hat? (choose two) Ubuntu Fedora Slackware CentOS Debian
Fedora CentOS
The Samba application is a: Mail Server File Server Web Server Security Server
File Server
Traditional UNIX command options used a single dash, like -a; _______ command options use two dashes like --all. GNU Kernel shell LINUX
GNU
The first character in a long listing (ls -l) indicates: The permissions The owner The size If something is a file, directory, or symbolic link
If something is a file, directory, or symbolic link
Linux is not Unix because: It's free It hasn't undergone certification It's not made by the Open Group It's not good enough There are too many distributions
It hasn't undergone certification
If you want to store logins and passwords for different websites in a secure manner, you could use: Firefox KeePassX A sticky note on your monitor A text file in your home directory A LibreOffice Document
KeePassX
If you wanted to create and print an invoice, which software could you use? Compiz Firefox GNOME Evolution LibreOffice
LibreOffice
The bootloader's job is to: Load the application into memory Load the kernel after the computer is powered on Assign initial settings such as network address Perform the initial installation of the kernel to hard drive Install software from the Internet or removable media
Load the kernel after the computer is powered on
One of the jobs of the kernel is to: Turn source code into machine code Transfer mail from one machine to another Manage the system s resources Load the operating system after the computer is turned on
Manage the system s resources
Which of the following are traits of a multiuser operating system? (choose three) Many users can log in simultaneously with a unique account Resources are shared between users Each user can only log in once per day Users can protect their information from other users An administrative user gets a dedicated CPU
Many users can log in simultaneously with a unique account Resources are shared between users Users can protect their information from other u
Which of the following is provided by a graphical interface that isn't normally provided to a non graphical interface? (choose four) Menus Desktop Popups Windows Shell
Menus Desktop Popups Windows
After performing a search, you can use the ____ key to return to a previously found match:
N
Which server software would you use to create a company directory that you could search and authenticate against? bind Netatalk ISC DHCP OpenLDAP Samba
OpenLDAP
"If you are reading the synopsis of a command from a man page, then items in square brackets are:" Comments Required options Optional Required arguments
Optional
Which environment variable contains a list of directories that is searched for commands to execute? PATH PS2 PS1 EXEC
PATH
The following sections commonly appear on a man page: (choose three) SYNOPSIS DESCRIPTION NAME LICENSE
SYNOPSIS DESCRIPTION NAME
"To move a page forward one at a time while viewing a man page, press the following:" Enter a Spacebar m
Spacebar
"In the command tar czf foo.tar.gz bar, what is the purpose of the f flag?" "Tells tar to copy only files, and not directories" Tells tar to read from the file that follows the flag Specifies extra compression is to be used Tells tar to print the name of each file as it is processed Tells tar to write to the file that follows the flag
Tells tar to write to the file that follows the flag
Select all the applications that provide access to the Command Line Interface (CLI)? (choose two) Terminal window opera firefox Virtual Terminal
Terminal window Virtual Terminal
Most of the tools that are part of Linux systems come from: The Open Source Initiative Red Hat and Debian Google The Linux foundation The GNU project
The GNU project
"Given the command tar cvjf homedirs.tbz /home, which of the following are true? (choose two)" The command will print out each filename as it is processed The output file will be compressed Only files starting with /home will be extracted from the archive The /home directory will be restored with the contents of homedirs.tbz Files that are present in the archive might overwrite files in /home
The command will print out each filename as it is processed The output file will be compressed
You try to compress a file that is already compressed. Which of the following statements is true? The file changed while you were compressing it The file will be deleted The file will not be compressed any further than it already was The file will actually be uncompressed "The compression algorithm needs to be set to the ""currently compressed"" mode for it to be compressed further"
The file will not be compressed any further than it already was
In virtualization, what are the host and guest? (choose two) The host is the machine that runs the virtual machines A host is a virtual machine A guest is a virtual machine The terms can be used interchangeably The guest is the machine that runs the virtual machines
The host is the machine that runs the virtual machines A guest is a virtual machine
Which of the following are traits of cloud computing? (choose two) Only Linux works in cloud computing The resources are virtualized You don t have to worry about performance any more You own the hardware but pay for it over time You pay for what you use
The resources are virtualized You pay for what you use
What can be done to prevent remote people from running programs on your computer? (choose two) Turn on a firewall Use strong passwords on all user accounts Don t use wireless networks only wired Block all cookies Block third party cookies
Turn on a firewall Use strong passwords on all user accounts
The most important consideration when choosing an operating system is: The operating system s mascot What the computer will do The licensing model of the operating system Whether or not it is cloud-friendly How much performance is needed
What the computer will do
Open source means: (choose two) You cannot charge anything for the software You can modify the software's source code You must support the software you share You can view the software's source code You must share your changes
You can modify the software's source code You can view the software's source code
Which of the following is true about graphical mode? (choose three) Answers: "After login, you are provided with a command prompt" You have menus and tools to help you find what you are looking for "After login, you are provided with a desktop" You access this mode by logging into a graphical display You cannot use your mouse
You have menus and tools to help you find what you are looking for "After login, you are provided with a desktop" You access this mode by logging into a graphical display
What one character treats the character that follows it as if it was surrounded by single quotes? \ % # /
\
/etc/ppp is considered what type of path?
absolute
Which flag would you pass to tar in order to list files that are being processed? cat list.file >> sort cat list.file | sort sort < list.file echo list.file > sort
cat list.file | sort sort < list.file
"Which of the following commands can be used to access the home directory of the user ""bob"" while logged in as root? (choose two)" cd && ~bob cd /home/bob cd ~bob
cd /home/bob cd ~bob
wc -w
count words in a file (-l lines)
This command allows you to extract columns of text from standard input or the contents of a file.
cut
To be able to output messages to the screen, use the _______ command.
echo
Which of the following commands will append its output to output.file?
echo Testing >> output.file
Which of the following commands scans the file to determine file locations? locate search where find
find
grep
find things inside files
This command can be used to filter standard input or the contents of a file for lines matching a specified pattern.
grep
Which of the following commands will display only lines that begin with start?
grep ^start file.txt
Which of the following commands will display only lines that begin with test? grep ^test file.txt grep *test file.txt grep &test file.txt grep $test* file.txt
grep ^test file.txt
Two components that provide the ability to implement a firewall include: (choose two) Cerberus gufw Uncomplicated Firewall ipfw iptables
gufw iptables
Which of the following commands can be used to compress a file? (choose three) gzip zip bzip2 cat
gzip zip bzip2
To get help while using the info command, press:" g z a h
h
This command displays the first ten lines of a file by default.
head
This command is a pager command designed to display only one page of data at a time
less more
"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 whatis example man -f example
man -k example apropos example
Which of the following commands can be used to scroll through a text file? (choose two) some cat more less
more less
The command ___ can be used to relocate a file from one directory to another directory.
mv
The command ___ can be used to rename a file.
mv
When running the ls command, you can change the behavior of the command by passing a -l or -a. These are called ______.
options
command to display your present working directory
pwd
In order to exit viewing a man page, press:
q
sysadmin/Documents is considered what type of path?
relative
rmdir
remove directory
rm
remove files or dir
In order to search an info page, the first key to press is:" g t s f
s
This command rearranges its output lines according to one or more fields you specify.
sort
This command displays the last ten lines of a file by default.
tail
In graphical mode, you can get to a shell by running which applications? (choose two) terminal xconsole xterm guiterm gbash
terminal xterm
"Given a file called documents.zip, how can you extract just the files under ProjectX?" unzip documents.zip ProjectX/* unzip documents.zip | grep ProjectX unzip documents.zip ProjectX zip x documents.zip ProjectX unzip t documents.zip ProjectX
unzip documents.zip ProjectX/*
The _____ command is normally executed daily to update the database of all files that are on the system. find search updatedb locate
updatedb
Select the command that can report the location of a command: what which where
which
Which flag would you pass to tar in order to extract files from an archive?
x or -x or extract
Which package manager is used in Fedora, a Red Hat derived system? tar vim apt-get yum bash
yum
Which of the following commands will create a zipfile with the contents of your Documents directory? zip c mydocs.zip Documents zip -r mydocs.zip Documents zip f mydocs.zip Documents zip mydocs.zip Documents zip cf mydocs.zip Documents
zip -r mydocs.zip Documents
