NDG 2.0 Flashcards

1
Q

When choosing a distribution of Linux, you should consider: (choose four)

Does your organization require long-term support for the system
Does the distribution offer a “stable” version
If the application software is supported by the distribution
Will commercial support be required for the OS
Popularity on social media

A

Does your organization require long-term support for the system
Does the distribution offer a “stable” version
If the application software is supported by the distribution
Will commercial support be required for the OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Embedded Systems means:

-Users must support the systems themselves
-You can view the software’s source code
-Companies must share their changes
-Businesses cannot charge anything for the software, only the hardware
-Systems designed to do a specific task on hardware optimized for only that purpose

A

Systems designed to do a specific task on hardware optimized for only that purpose

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The most popular Linux platform for mobile phones is:

IOS
Android
BlackBerry
Slackware
MobileLinux

A

Android

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Linux distributions use this to add and remove software from the system:

Application Programming Interface (API)
Partitioning tool
Package manager
Bash
Compiler

A

Package manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In Linux, RPM can be defined as:

Random program memory
Relational peak monitoring
Radical performance machine
The speed a record plays back at
The Package Manager program for Red Hat Linux

A

The Package Manager program for Red Hat Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Linux originally only ran on:

Macintosh
Intel 386 PCs
Raspberry Pi computers
Specialized processor chips
Xerox copy machines

A

Intel 386 PCs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A long software release cycle is:

Better because old hardware can be utilized beyond its service life
Only offered by Red Hat and SUSE
Makes programming more difficult since new features cannot be used
Valued by businesses that want stability
Characterized by infrequent security fixes

A

Valued by businesses that want stability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which distribution is related to Red Hat?

Raspbian
Debian
Ubuntu
Slackware
Fedora

A

Fedora

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

SUSE is derived from which distribution?

Fedora
Debian
Red Hat Enterprise Linux
Slackware
Scientific Linux

A

Slackware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

IoT is one application of embedded systems:

True or False?

True
False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The Raspberry Pi is popular with experimenters because:

It runs Microsoft Office
End users have to pay for programming expenses
It’s cheap and adaptable
The hardware never changes
It takes months or years to develop an application

A

It’s cheap and adaptable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The release cycle:

Only has meaning for paid software
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 software will be supported
Dictates how often software is updated

A

Dictates how often software is updated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Linux Mint is:

Compatible with Android systems
A fork of Ubuntu Linux
A proprietary version of Ubuntu with advanced features
A refreshing after dinner treat
Distributed in every country without license restrictions

A

A fork of Ubuntu Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A computer running Linux can:

Outperform proprietary systems at certain tasks
All of the above
Function as a web server
Serve a government agency
Be used to create new programs

A

All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Bundling utilities, management tools, and application software with a Linux kernel is called a:

A distribution of Linux
A text editor
A type of hardware
A trademark

A

A distribution of Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A network of inexpensive computers connected to sensors and controllers is called:

Internet of Things (IoT)
Creative commons
Open source networking
Closed source computing
Relationational database

A

Internet of Things (IoT)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does a distribution provide to add and remove software from the system?

Compiler
Application Programming Interface (API)
Bash
Package Manager
Partitioning tool

A

Package Manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

A software release cycle describes:

How often upgrades come out for software
How often the software’s memory is released back to the operating system
How often the computer must be upgraded to support new software
How often security fixes are implemented
How often the computer must be rebooted

A

How often upgrades come out for software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Which distributions are made by, or are clones of, RedHat?

(choose two)

Debian
CentOS
Fedora
Ubuntu
Slackware

A

CentOS
Fedora

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Ubuntu is derived from which distribution?

Slackware
Debian
Scientific Linux
Red Hat Enterprise Linux

A

Debian

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The most important consideration when choosing an operating system is:

What the intended use of the system is
How much performance is needed
The licensing model of the operating system
The total cost of ownership
Whether or not it is cloud-friendly

A

What the intended use of the system is

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

A maintenance cycle:

Describes how often updates for software come out
Should be short so you always have the freshest releases
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

A

Describes how long a version of software will be supported

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Software is backward compatible if:

It can be upgraded without downtime
People still use old versions
It still supports old file formats or applications
If the next version still works the same way
It works across Linux/Mac/Windows

A

It still supports old file formats or applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Apple’s OS X is:

(choose three)

Derived from Linux
Able to natively run Windows binaries
Primarily used to manage network services
A fully certified UNIX distribution
Tightly integrated with Apple hardware
Partially based on code from the FreeBSD project

A

A fully certified UNIX distribution
Tightly integrated with Apple hardware
Partially based on code from the FreeBSD project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Microsoft Windows: (choose three) Has a scripting environment called PowerShell Is generally backwards compatible with previous versions Offers both desktop and server products Has a short maintenance cycle Has a Linux compatibility mode Has a new desktop version every year.
Has a scripting environment called PowerShell Is generally backwards compatible with previous versions Offers both desktop and server products
26
When choosing a distribution of Linux, you should consider: (choose five) Does the distribution offer a “stable” version Will users require a GUI Will commercial support be required for the OS Does your organization require long-term support for the system Popularity on social media If the application software is supported by the distribution
Does the distribution offer a “stable” version Will users require a GUI Will commercial support be required for the OS Does your organization require long-term support for the system If the application software is supported by the distribution
27
The Samba application is a: Security Server File Server Mail Server Web Server
File Server
28
Which of the following are examples of desktop software? (choose two) Music player File share Web browser Compiler Web server
Music player Web browser
29
If you wanted to set up a blog, which software would be most helpful? Samba MySQL Postfix Dovecot WordPress
WordPress
30
Which of the following pieces of software deal with file sharing? (choose three) X-Windows PostgreSQL Netatalk Samba NFS
Netatalk Samba NFS
31
If you wanted to create and print an invoice, which software could you use? Evolution LibreOffice GNOME Compiz Firefox
LibreOffice
32
POP and IMAP are related to: Serving web pages Reading and writing music Email Letting users log in to multiple servers with 1 set of credentials Sharing files
Email
33
When a computer boots, it can get its network information through: LDAP DNS DHCP SMTP X11
DHCP
34
Which of the following are examples of text editors? (choose four) nano Yum pico vim emacs
nano pico vim emacs
35
A package manager: (choose two) Downloads software from the Internet Keeps track of which files belong to which packages Can optionally repartition your disk to make room for Linux Performs a fresh install of Linux Emails you when software is out of date
Downloads software from the Internet Keeps track of which files belong to which packages
36
An interpreted programming language: (choose two) Takes fewer resources to run than a compiled language Is converted into machine specific instructions as the program runs Requires a linking step but no compilation step Tends to offer more features than compiled languages Requires a compilation step but no linking step
Is converted into machine specific instructions as the program runs Tends to offer more features than compiled languages
37
Which of the following are true about compiled programming languages? Ruby is a compiled language Compiled languages are great for system administration tasks like scripting C is a compiled language Perl is a compiled language A programmer is usually more productive when using a compiled language
C is a compiled language
38
Which package manager is used in Fedora, a Red Hat derived system? tar bash yum vim apt-get
yum
39
The Linux shell: (choose three) Is customizable Has a built-in text editor Allows you to launch programs Has a scripting language Is responsible for tracking the location of configuration files
Is customizable Allows you to launch programs Has a scripting language
40
Which application would you use to edit and piece together sound files to make podcast? GIMP Bash Thunderbird Audacity Audiolicious
Audacity
41
The two main families of Linux shells are: (choose two) Python Shell Korn shell emacs Bourne Shell C Shell
Bourne Shell* C Shell*
42
Which server software would you use to create a company directory that you could search and authenticate against? ISC DHCP Netatalk OpenLDAP bind Samba
OpenLDAP
43
A Mail Transfer Agent’s primary purpose is to: Filter out spam Manage the end user’s inbox Serve email to end clients Deliver mail between servers Act as a gateway between faxes and email
Deliver mail between servers
44
Which of the following are examples of a web server? (choose two) postfix NFS Nginx WordPress Apache
Nginx* Apache*
45
If you wanted to let a Linux machine share files with Windows clients and servers, you would use: Netatalk DNS Samba NFS bind
Samba
46
Richard Stallman is associated with: The Open Source Initiative Microsoft The Free Software Foundation BSD Unix
The Free Software Foundation
47
A “copyleft provision” in a software license means: If you redistribute the software, you must distribute the source to any changes you make You may not link against third party closed source software You must provide free copies of the software if you use it You must provide support for your modifications You give up your copyright to the software
If you redistribute the software, you must distribute the source to any changes you make
48
The largest difference between the GPLv2 and BSD licenses is: GPLv2 is not approved by the OSI Only BSD allows commercial use Nothing, they are virtually identical BSD has no copyleft provision GPLv2 requires assigning copyright to the FSF
BSD has no copyleft provision*
49
The Free Software Foundation believes that: (choose two) Software should be free to modify No money should ever change hands Software should be free to share People should write software with no expectation of making money Software should not have copyright
Software should be free to modify* Software should be free to share*
50
Which of the following licenses was made by the FSF? MIT BSD GPLv3 Creative Commons Apache
GPLv3
51
A permissive free software license: (choose two) Means you can use the software for anything you want Does not allow the software to be locked to certain hardware Places no restrictions on sharing modifications Places the software in the public domain Requires you share software changes but not binaries
Means you can use the software for anything you want* Places no restrictions on sharing modifications*
52
Linux is distributed under which license? Linux Foundation MIT BSD GPLv2 GPLv3
GPLv2
53
Who founded the Open Source Initiative? (choose two) Richard Stallman University of California at Berkeley Eric Raymond Linus Torvalds Bruce Perens
Eric Raymond* Bruce Perens*
54
A generic term for Open Source and Free Software is: SLOFF Libre Software FLOSS GPL OS/FS
FLOSS
55
Which are examples of permissive software licenses? (choose two) GPLv3 GPLv2 LGPLv3 MIT BSD
MIT* BSD*
56
What does it mean when a work is placed in the public domain? The work was done by a government agency The author has died You must redistribute changes to the software You may not use the work for commercial purposes The author has relinquished the copyright on the work
The author has relinquished the copyright on the work*
57
Creative Commons licenses allow you to: (choose three) Specify whether or not people may distribute changes Receive royalties on the use of the work Specify whether or not changes must be shared Allow or disallow commercial use Get a veto on where the work is used
Specify whether or not people may distribute changes* Specify whether or not changes must be shared* Allow or disallow commercial use*
58
If a podcast is licensed under the CC BY-ND license, you may: (choose two) Use an interview or song from it for your own podcast Post it to your website Add ads to it and post it to your website. Share it as long as you give credit to the author Sell it as part of a compilation
Post it to your website* Share it as long as you give credit to the author*
59
How can you make money from open source software? (choose three) Charge a yearly fee for the right to use the software Take payments for fixing bugs Sell hardware that’s built to work with the software Provide paid consulting services for users Unlock premium features for people that pay
Take payments for fixing bugs* Sell hardware that’s built to work with the software* Provide paid consulting services for users*
60
To place software under an open source license, you must give up your copyright.True or False? True False
False*
61
The difference between the GPL and LGPL licenses are: LGPL is shorter than GPL LGPL allows linking to non GPLed software LGPL applies to web services LGPL was made by the OSI while GPL was made by the FSF LGPL allows you to distribute the software in binary-only form
LGPL allows linking to non GPLed software*
62
Permissive free software licenses: (choose three) Are not approved by the OSI Are not approved by the FSF Include the GPLv2 and BSD Can allow software to be used inside closed source software Don’t have a copyleft provision
Are not approved by the FSF* Can allow software to be used inside closed source software* Don’t have a copyleft provision*
63
The Creative Commons version of Public Domain licensing is: Attribution-NonCommercial-ShareAlike Attribution-NonCommercial Attribution NoAttribution-ShareAlike No Rights Reserved
No Rights Reserved*
64
Your company makes a hardware firewall that runs a custom Linux kernel. What are your obligations under GPLv2? You must ensure your custom kernel runs on a regular Intel machine You must make the source to your kernel available There are no requirements You must make the source to your custom web interface available You must make your hardware designs available
You must make the source to your kernel available*
65
Participating in open source projects can improve your technical skills, even if it is not your day job. True or False? True False
True
66
Which of the following is true about graphical mode? (choose three) 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 command prompt After login, you are provided with a desktop* You access this mode by logging into a graphical display*
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*
67
Which of the following is provided by a graphical interface that isn’t normally provided to a non graphical interface? (choose four) Windows Desktop Menus Popups Shell
Windows* Desktop* Menus* Popups*
68
A server is likely to be running in graphical mode.True or False? True False
False*
69
In graphical mode, you can get to a shell by running which applications? (choose two) gbash guiterm terminal xterm xconsole
terminal* xterm*
70
Which of the following are traits of a multiuser operating system? (choose three) Each user can only log in once per day Users can protect their information from other users Many users can log in simultaneously with a unique account An administrative user gets a dedicated CPU Resources are shared between users
Users can protect their information from other users* Many users can log in simultaneously with a unique account* Resources are shared between users*
71
Virtualization means: A single host can be split up into multiple guests A user can connect to a server over the network and use a virtual console A machine can swap memory to disk Many users can share one hard drive Two users get different memory spaces on the same machine
A single host can be split up into multiple guests*
72
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 The terms can be used interchangeably A guest is a virtual machine 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*
73
Which of the following are traits of cloud computing? (choose two) You own the hardware but pay for it over time You pay for what you use Only Linux works in cloud computing You don’t have to worry about performance any more The resources are virtualized
You pay for what you use* The resources are virtualized*
74
If you wanted to write a report that was to be printed, you would probably use: Chrome A wiki Adobe Flash LibreOffice Firefox
LibreOffice*
75
If you want to store logins and passwords for different websites in a secure manner, you could use: Firefox A LibreOffice Document KeePassX A sticky note on your monitor A text file in your home directory
KeePassX*
76
You can configure your computer to check for updates automatically.True or False? True False
True*
77
Two components that provide the ability to implement a firewall include: (choose two) ipfw iptables Cerberus Uncomplicated Firewall gufw
iptables* gufw*
78
What are tradeoffs of increasing the level of privacy you have in your web browser? (choose two) Sites may not work properly Images won’t load properly You may get viruses Websites may load slower You may have to explicitly permit some cookies to be saved
Sites may not work properly* You may have to explicitly permit some cookies to be saved*
79
Which of the following is a tool that helps you anonymize your Internet browsing? The onion router iptables AnonFirefox Web proxy CookieCleaner
The onion router*
80
Social network “like” buttons can track your activity across the Internet.True or False? True False
True*
81
Which of the following are properties of a strong password? (choose three) A mix of upper and lower case Includes symbols Long so that it can be reused on multiple sites At least 10 characters long Based on easy to remember items like birthdays
A mix of upper and lower case* Includes symbols* At least 10 characters long*
82
What can be done to prevent remote people from running programs on your computer? (choose two) Use strong passwords on all user accounts Block all cookies Turn on a firewall Don’t use wireless networks – only wired Block third party cookies
Use strong passwords on all user accounts* Turn on a firewall*
83
Which environment variable contains a list of directories that is searched for commands to execute? PATH PS1 PS2 EXEC
PATH
84
Select the command that can report the location of a command: what which where
which
85
A pair of single quotes ( ‘ ) will prevent the shell from interpreting any metacharacter. True or False? True False
True
86
A pair of double quotes (” ) will prevent the shell from interpreting any metacharacter. True or False? True False
False
87
Using a pair of back quotes ( ` ) will cause a shell to execute the back-quoted text as a command and substitute the output back into the original command. True or False? True False
True
88
The semicolon (;) can be used to separate multiple commands to be executed in order. True or False? True False
True
89
The double ampersand characters (&& ) are used to separate commands to be executed conditionally, where if the command to the left of the ampersands fails, then the command to the right of the ampersands will be executed. True or False? True False
False
90
To be able to output messages to the screen, use the _______ command: echo print display type
echo
91
The _______ command will print a list of the commands that you’ve previously executed. list eval history exec
history
92
To execute the same command as previously executed five commands ago, you would type: @-5 !5 !-5 &5
!-5
93
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
94
The echo command: Copies variables from one to another Tests a variable for duplication Is used for variable assignment Is used to output text to the console Duplicates the input stream to the output stream
Is used to output text to the console
95
The most common shell used for Linux distributions is the ________ shell. Fish Bash Tsch Zsh
Bash
96
HOME is an example of _________. An environment variable A path variable A local variable An internal command An alias
An environment variable
97
What is the standard option to provide a command line program to view its documentation? -h –info –help –doc
–help
98
The command man -k is the same as the command apropos. True or False? True False
True
99
The whatis command is the same as man -w. False True
False
100
The directory where additional documentation for software packages most likely can be found is: /usr/software/doc /var/lib/doc /usr/share/doc /var/share/doc
/usr/share/doc
101
Which two pager commands are used by the man command to control movement within the document? (choose two) grep less page more
less more
102
Commands typically executed by a user are covered in what section of the manual? 5 3 2 1
1
103
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
104
The statement that describes the difference between a man page and an info page is: 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 man page is a long detailed reference; the info page is very terse. There is very little difference between them.
The info page is like a guide; a man page is a more concise reference.
105
If you are reading the synopsis of a command from a man page, then items in square brackets are: Required arguments Comments Optional Required options
Optional
106
The following sections commonly appear on a man page: (choose three) NAME LICENSE DESCRIPTION SYNOPSIS
NAME DESCRIPTION SYNOPSIS
107
Section 5 of the manual pages covers: System administration commands Games User commands File Formats
File Formats
108
To start searching a man page, the first key you press is: f / s !
/
109
To get help on using the info command, execute: (choose two) man info info -q info info help info
man info info info
110
To get help while using the info command, press: g A Shift+H Shift+z
Shift+H
111
When interpreting the SYNOPSIS of a command found on a man page, the “|” means: The items it separates can be used together The items it separates cannot be used together
The items it separates cannot be used together
112
The _____ command is normally executed daily to update the database of all files that are on the system. find locate search updatedb
updatedb
113
The _____ command is normally executed to search for a command or man page. updatedb whereis find man -k
whereis
114
The _____ command can be used to find any file, not just commands or man pages. apropos whereis whatis locate
locate
115
The info command merges all available documentation into a single “book”. True or False? True False
True
116
Section 9 of man pages relates to what? Library Calls Games Kernel Routines System Calls Miscellaneous
Kernel Routines
117
The man command searches each of the sections in order until it finds a match. True or False? True False
True
118
The whatis command will only return the first result for which section a man page is stored in. True or False? True False
False
119
Hidden files are files that begin with what character? A plus (+) An asterisk (*) A dash (-) A period (.)
A period (.)
120
What option for the ls command will display all files, including hidden files? -a -L -H -w
-a
121
The top-level directory on a Linux system is represented as: /home C: /root /
/
122
Is the following path absolute or relative? /etc/ppp Absolute Relative
Absolute
123
Is the following path absolute or relative? sysadmin/Documents Absolute Relative
Relative
124
Is the following path absolute or relative? ../../home/sysadmin Absolute Relative
Relative
125
The tilde (~) is used to represent: Any two single characters Nothing; it has no special meaning The directory above the current working directory A user’s home directory
A user’s home directory
126
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 && cd /home/bob cd ~bob ~bob
cd /home/bob cd ~bob
127
The double dot (..) can be used with the cd command to represent: A user’s home directory. Any two single characters Nothing; it has no special meaning. The directory above the current working directory
The directory above the current working directory
128
The cd command by itself will take you to what directory? None; it is not a valid command The system root directory Your home directory The directory above the current working directory
Your home directory
129
The ls command without options or arguments… …prompts for a directory to list. …generates an error as this command requires arguments. …lists the contents of a user’s home directory. …lists the contents of the current directory.
…lists the contents of the current directory.
130
The first character in a long listing (ls -l) indicates: The permissions The owner If something is a file, directory, or symbolic link The size
If something is a file, directory, or symbolic link
131
Which option for the ls command, when used in conjunction with the -l option, will display human-readable file sizes? -S -H -h -M
-h
132
Which of the following commands will prevent any aliased options to the ls command? %ls /ls `ls \ls
\ls
133
The ls command color codes results by default. True or False? True False
False
134
The command ls -S will sort files: By modification date, newest to oldest By size, largest to smallest By number of symlinks, largest to smallest By size, smallest to largest
By size, largest to smallest
135
When using the cp command, you must provide both a source and a destination. True or False? True False
True
136
Which option(s) can be used to prevent cp from overwriting an existing file? (choose two) -z -n -N -i
-n -i
137
The command rm -r will… remove a directory along with any files or subdirectories. generate an error; -r isn’t a valid option. remove only empty directories. prompt for each confirmation before deleting each file in a directory.
remove a directory along with any files or subdirectories.
138
Which option can be used with the rm command to prompt before deleting? A -P l -i
-i
139
The rm command can delete multiple files at once. True or False? True False
True
140
Which of the following commands can be used to rename a file? cp rm mv name
mv
141
The touch command can be used to: (choose two) Update the timestamp of existing files Change ownership of a file Create new files Change a file’s name
Update the timestamp of existing files Change a file’s name
142
Which of the following are glob characters? (choose three) The square brackets “[” and “]” The question mark “?” The dash character “-“ The asterisk “*”
The square brackets “[” and “]” The question mark “?” The asterisk “*”
143
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
144
The asterisk character is used to represent zero or more of any character in a filename. True or False? True False
True
145
Which of these commands will return /etc/gai.conf /etc/pam.conf /etc/ucf.conf? (choose two) ls /etc/???.???? echo /etc/???.*f echo /etc/*?.*o? ls /etc/p???.**
ls /etc/???.???? echo /etc/???.*f
146
Brackets cannot be used to a represent a range of characters. True or False? True False
False
147
Which command would list files that do not begin with a “T” or a “W”? echo /etc/*[TW!] echo /etc/!TW echo /etc/[!TW]* echo /etc/[*TW]!
echo /etc/[!TW]*
148
Compression of a file works by: Eliminating gaps within the file Consolidating multiple files into one Removing redundant information Storing most of the data on removable media and just leaving a pointer Removing the high order bit from each byte
Removing redundant information
149
In general, for which of the following would you want to use lossless compression? An mp3 audio file An encrypted email A JPEG image A log file A movie
A log file
150
Lossy compression: (choose three) Usually results better compression than lossless Is often used with images Is often used with documents Decompresses to an identical version as the original Sacrifices some quality
Usually results better compression than lossless Is often used with images Sacrifices some quality
151
You type gzip myfile.tar. What happens? (choose two) myfile.tar is unarchived into the current directory An error; you forgot to pass the name of the output file myfile.tar.gz holds a compressed version of myfile.tar An error; you forgot to specify the file with -f myfile.tar is removed
myfile.tar.gz holds a compressed version of myfile.tar myfile.tar is removed
152
Which command would you use to archive the Documents directory and compress it with bzip2 compression? tar –fzc Documents documents.tbz tar –cf Documents documents.tbz tar –cjf Documents tar –cjf documents.tbz Documents tar –czf documents.tbz
tar –cjf documents.tbz Documents
153
Which flag would you pass to tar in order to have it make a new archive? -t -c -n -x -j
-c
154
Which command will show what is inside the compressed tarball with a name of foo.tar.gz? tar –tjf foo.tar.gz tar –lf foo.tar.gz tar –tf foo.tar.gz tar –xf foo.tar.gz tar –tzf foo.tar.gz
tar –tzf foo.tar.gz
155
In the command tar -cvjf foo.tbz a b c, what are a, b, and c? Nothing; -cvjf only expects one parameter File names to be added to the archive a is the directory that will be prepended to files; b and c are files inside it Matching operators; anything starting with a, b, or c will be added Extra flags passed to tar
File names to be added to the archive
156
Given the command tar –cvjf homedirs.tbz /home, which of the following are true? (choose two) Only files starting with /home will be extracted from the archive The command will print out each filename as it is processed 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 output file will be compressed
The command will print out each filename as it is processed The output file will be compressed
157
You archived your users’ directories into a file called backup.tar.gz. You then view the archive and see the filenames follow this convention: home/username/somefile How will you extract just the files for the user called fred? tar –xzf backup.tar.gz home/fred/ tar –tjf backup.tar.gz /home/fred tar –xjf backup.tar.gz home/fred/ tar –xzf backup.tar.gz fred tar –tzf /home/fred < backup.tar.gz
tar –xzf backup.tar.gz home/fred/
158
Which of the following commands will create a zipfile with the contents of your Documents directory? zip –f mydocs.zip Documents zip -r mydocs.zip Documents zip –c mydocs.zip Documents zip mydocs.zip Documents zip -cf mydocs.zip Documents
zip -r mydocs.zip Documents
159
Given a file called documents.zip, how can you see what’s in it without extracting the files? zip -lf documents.zip unzip -l documents.zip unzip –list documents.zip zip -l documents.zip showzip documents.zip
unzip -l documents.zip
160
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/*
161
You try to compress a file that is already compressed. Which of the following statements is true? The file will not be compressed any further than it already was The compression algorithm needs to be set to the “currently compressed” mode for it to be compressed further The file changed while you were compressing it The file will be deleted The file will actually be uncompressed
The file will not be compressed any further than it already was
162
Which of the following commands can be used to compress a file? (choose three) bunzip2 cat zip bzip2 gzip
zip bzip2 gzip
163
The three main modes of tar are: (choose three) List Create Compress Copy Extract
List Create Extract
164
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 Tells tar to write to the file that follows the flag Tells tar to print the name of each file as it is processed Specifies extra compression is to be used
Tells tar to write to the file that follows the flag
165
Which two commands do the same thing? (choose two) tar -czf foo.tar.gz foo tar -tzf foo.tar.gz tar -c foo | gzip > foo.tar.gz tar -x foo | gzip tar -xzf foo.tar.gz
tar -czf foo.tar.gz foo tar -tzf foo.tar.gz tar -c foo | gzip > foo.tar.gz
166
Which two programs use the Lempel-Ziv-Markov chain algorithm? (choose two) xz lossless lossy bzip gzip
xz gzip
167
By default, the zip command replaces uncompressed files with compressed files. True or False? True False
True