wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

لينكس

Total questions: 149

Worksheet time: 1hrs 23mins

Name
Class
Date
1.

The Samba application is a

a)

Security Server

b)

File Server

c)

Mail Server

d)

Web Server

2.

Which of the following are examples of desktop software?

(choose two)

a)

Music player

b)

File share

c)

Web browser

d)

Compiler

e)

Web server

3.

If you wanted to set up a blog, which software would be most helpful?

a)

Samba

b)

MySQL

c)

Postfix

d)

Dovecot

e)

WordPress

4.

Which of the following pieces of software deal with file sharing?

(choose three)

a)

X-Windows

b)

PostgreSQL

c)

Netatalk

d)

Samba

e)

NFS

5.

If you wanted to create and print an invoice, which software could you use?

a)

Evolution

b)

LibreOffice

c)

GNOME

d)

Compiz

e)

Firefox

6.

POP and IMAP are related to

a)

Serving web pages

b)

Reading and writing music

c)

Email

d)

Letting users log in to multiple servers with 1 set of credentials

e)

Sharing files

7.

When a computer boots, it can get its network information through

a)

LDAP

b)

DNS

c)

DHCP

d)

SMTP

e)

X11

8.

Which of the following are examples of text editors?

(choose four)

a)

nano

b)

Yum

c)

pico

d)

vim

e)

emacs

9.

A package manager (choose two)

a)

Downloads software from the Internet

b)

Keeps track of which files belong to which packages

c)

Can optionally repartition your disk to make room for Linux

d)

Performs a fresh install of Linux

e)

Emails you when software is out of date

10.

An interpreted programming language:

(choose two)

a)

Takes fewer resources to run than a compiled language

b)

Is converted into machine specific instructions as the program runs

c)

Requires a linking step but no compilation step

d)

Tends to offer more features than compiled languages

e)

Requires a compilation step but no linking step

11.

Which of the following are true about compiled programming languages?

a)

Ruby is a compiled language

b)

Compiled languages are great for system administration tasks like scripting

c)

C is a compiled language

d)

Perl is a compiled language

e)

A programmer is usually more productive when using a compiled language

12.

Which package manager is used in Fedora, a Red Hat derived system?

a)

tar

b)

bash

c)

yum

d)

vim

e)

apt-get

13.

The Linux shell:

(choose three)

a)

Is customizable

b)

Has a built-in text editor

c)

Allows you to launch programs

d)

Has a scripting language

e)

Is responsible for tracking the location of configuration files

14.

Which application would you use to edit and piece together sound files to make a podcast?

a)

Audiolicious

b)

GIMP

c)

Thunderbird

d)

Bash

e)

Audacity

15.

The two main families of Linux shells are:

(choose two)

a)

Emacs

b)

C Shell

c)

Bourne Shell

d)

Python Shell

e)

Korn shell

16.

Which server software would you use to create a company directory that you could search and authenticate against?

a)

bind

b)

OpenLDAP

c)

Samba

d)

ISC DHCP

e)

Netatalk

17.

A Mail Transfer Agent’s primary purpose is to:

a)

Serve email to end clients

b)

Deliver mail between servers

c)

Manage the end user’s inbox

d)

Filter out spam

e)

Act as a gateway between faxes and email

18.

Which of the following are examples of a web server?

(choose two)

a)

NFS

b)

postfix

c)

WordPress

d)

Nginx

e)

Apache

19.

If you wanted to let a Linux machine share files with Windows clients and servers, you would use:

a)

Netatalk

b)

DNS

c)

Samba

d)

NFS

e)

bind

20.

Virtualization means:

a)

A user can connect to a server over the network and use a virtual console

b)

Many users can share one hard drive

c)

A machine can swap memory to disk

d)

A single host can be split up into multiple guests

e)

Two users get different memory spaces on the same machine

21.

In virtualization, what are the host and guest?

(Choose two)

a)

The terms can be used interchangeably

b)

A guest is a virtual machine

c)

A host is a virtual machine

d)

The host is the machine that runs the virtual machines

e)

The guest is the machine that runs the virtual machines

22.

Which of the following are traits of cloud computing?

(choose two)

a)

You don’t have to worry about performance any more

b)

Resources can be accessed from anywhere over a network

c)

Scales IT resources so you pay for what you use

d)

You own the hardware but pay for it over time

e)

Only Linux works in cloud computing

23.

If you wanted to write a report that was to be printed, you would probably use:

a)

A wiki

b)

Adobe Flash

c)

Firefox

d)

Chrome

e)

LibreOffice

24.

To protect your privacy online, you can configure your computer to check for updates periodically.

True or False?

a)

True

b)

False

25.

Which of the following is a tool that helps you anonymize your Internet browsing?

a)

Web proxy

b)

Tor Browser

c)

Iptables

d)

AnonFirefox

e)

CookieCleaner

26.

Cloud computing is:

a)

Is made possible by faster internet speeds

b)

Is useful for both business and home users

c)

Allows users in different geographical regions to work together in real time

d)

Requires fewer resources because systems are shared among many users

e)

All are correct

27.

The term for individual computers running multiple systems at the same time is:

a)

MultiRun

b)

Cloud priority

c)

Distribution

d)

Virtualization

e)

Googleization

28.

Which of the following are traits of a multiuser operating system?

(choose three)

a)

Many users can log in simultaneously with a unique account

b)

Users can protect their information from other users

c)

Resources are shared between users

d)

Each user can only log in once per day

e)

An administrative user gets a dedicated CPU

29.

If you want to store logins and passwords for different websites in a secure manner, you could use:

a)

A text file in your home directory

b)

A LibreOffice document

c)

A sticky note on your monitor

d)

KeePassX

e)

In a spiral bound notebook in your file cabinet

30.

Two components that provide the ability to implement a firewall include:

(choose two)

a)

iptables

b)

gufw

c)

ifconfig

d)

Cerberus

e)

ipfw

31.

What are tradeoffs of increasing the level of privacy you have in your web browser?

(choose two)

a)

You may have to explicitly permit some cookies to be saved

b)

Sites may not work properly

c)

You may get viruses

d)

Websites may load slower

e)

Images won’t load properly

32.

Social network “like” buttons can track your activity across the Internet.

True or False?

a)

True

b)

False

33.

Which of the following are properties of a strong password?

(choose three)

a)

At least 10 characters long

b)

Based on easy to remember items like birthdays

c)

Includes symbols

d)

Long so that it can be reused on multiple sites

e)

A mix of upper and lower case

34.

What can be done to prevent unauthorized users from accessing your computer remotely?

(choose two)

a)

Block third party cookies

b)

Turn on a firewall

c)

Block all cookies

d)

Use strong passwords on all user accounts

e)

Don’t use wireless networks – only wired

35.

In graphical mode, you can get to a shell by running which applications?

(choose two)

a)

Terminal

b)

Gbash

c)

console

d)

Xterm

e)

Guiterm

36.

Which environment variable contains a list of directories that is searched for commands to execute?

a)

PATH

b)

PS1

c)

PS2

d)

EXEC

37.

Select the command that can report the location of a command:

a)

what

b)

which

c)

where

38.

A pair of single quotes ( ‘ ) will prevent the shell from interpreting any metacharacter.

True or False?

a)

True

b)

False

39.

A pair of double quotes (” ) will prevent the shell from interpreting any metacharacter.

True or False?

a)

True

b)

False

40.

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?

a)

True

b)

False

41.

The semicolon (;) can be used to separate multiple commands to be executed in order.

True or False?

a)

True

b)

False

42.

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?

a)

True

b)

False

43.

To be able to output messages to the screen, use the _______ command:

a)

echo

b)

print

c)

display

d)

type

44.

The _______ command will print a list of the commands that you’ve previously executed.

a)

list

b)

eval

c)

history

d)

exec

45.

To execute the same command as previously executed five commands ago, you would type:

a)

@-5

b)

!5

c)

!-5

d)

&5

46.

The shell program interprets the commands you type into the terminal into instructions that the Linux operating system can execute.

True or False?

a)

True

b)

False

47.

The acronym CLI stands for:

a)

Computer Line Interface

b)

Command Line Interpreter

c)

Command Line Interface

d)

Computer Link Interpreter

48.

What one character treats the character that follows it as if it was surrounded by single quotes?

a)

/

b)

#

c)

%

d)

\

49.

The echo command:

a)

Copies variables from one to another

b)

Tests a variable for duplication

c)

Is used for variable assignment

d)

Is used to output text to the console

e)

Duplicates the input stream to the output stream

50.

The most common shell used for Linux distributions is the ________ shell.

a)

Fish

b)

Bash

c)

Tsch

d)

Zsh

51.

HOME is an example of _________.

a)

An environment variable

b)

A path variable

c)

A local variable

d)

An internal command

e)

An alias

52.

What is the standard option to provide a command line program to view its documentation?

a)

-h

b)

–info

c)

–help

d)

–doc

53.

The command man -k is the same as the command apropos.

True or False?

a)

True

b)

False

54.

The whatis command is the same as man -w.

a)

False

b)

True

55.

The directory where additional documentation for software packages most likely can be found is:

a)

/usr/software/doc

b)

/var/lib/doc

c)

/usr/share/doc

d)

/var/share/doc

56.

Which two pager commands are used by the man command to control movement within the document? (choose two)

a)

grep

b)

less

c)

page

d)

more

57.

Commands typically executed by a user are covered in what section of the manual?

a)

5

b)

3

c)

2

d)

1

58.

To search the man page sections for the keyword example, which of the following command lines could you execute?

(choose two)

a)

man -k example

b)

apropos example

c)

man -f example

d)

whatis example

59.

The statement that describes the difference between a man page and an info page is:

a)

The man page is like a guide; the info page is a more concise reference.

b)

The info page is like a guide; a man page is a more concise reference.

c)

The man page is a long detailed reference; the info page is very terse.

d)

There is very little difference between them.

60.

If you are reading the synopsis of a command from a man page, then items in square brackets are:

a)

Required arguments

b)

Comments

c)

Optional

d)

Required options

61.

The following sections commonly appear on a man page:

(choose three)

a)

NAME

b)

LICENSE

c)

DESCRIPTION

d)

SYNOPSIS

62.

Section 5 of the manual pages covers:

a)

System administration commands

b)

Games

c)

User commands

d)

File Formats

63.

To start searching a man page, the first key you press is:

a)

f

b)

/

c)

s

d)

!

64.

In order to exit viewing a man page, press:

a)

q

b)

z

c)

x

d)

y

65.

To get help on using the info command, execute:

(choose two)

a)

man info

b)

info -q

c)

info info

d)

help info

66.

To get help while using the info command, press:

a)

g

b)

A

c)

Shift+H

d)

Shift+z

67.

To exit the info page, press:

a)

Q

b)

x

c)

z

d)

x

68.

When interpreting the SYNOPSIS of a command found on a man page, the “|” means:

a)

The items it separates can be used together

b)

The items it separates cannot be used together

69.

The _____ command is normally executed daily to update the database of all files that are on the system.

a)

find

b)

locate

c)

search

d)

updatedb

70.

The _____ command is normally executed to search for a command or man page.

a)

updatedb

b)

whereis

c)

find

d)

man -k

71.

The _____ command can be used to find any file, not just commands or man pages.

a)

apropos

b)

whereis

c)

whatis

d)

locate

72.

The info command merges all available documentation into a single “book”. True or False?

a)

True

b)

False

73.

Section 9 of man pages relates to what?

a)

Library Calls

b)

Games

c)

Kernel Routines

d)

System Calls

e)

Miscellaneous

74.

The man command searches each of the sections in order until it finds a match.

True or False?

a)

True

b)

False

75.

The whatis command will only return the first result for which section a man page is stored in.

True or False?

a)

True

b)

False

76.

Hidden files are files that begin with what character?

a)

A plus (+)

b)

An asterisk (*)

c)

A dash (-)

d)

A period (.)

77.

What option for the ls command will display all files, including hidden files?

a)

-a

b)

-L

c)

-H

d)

-w

78.

The top-level directory on a Linux system is represented as:

a)

/home

b)

C:

c)

/root

d)

/

79.

Is the following path absolute or relative?

/etc/ppp

a)

Absolute

b)

Relative

80.

Is the following path absolute or relative?

sysadmin/Documents

a)

Relative

b)

Absolute

81.

Is the following path absolute or relative?

../../home/sysadmin

a)

Absolute

b)

Relative

82.

The tilde (~) is used to represent:

a)

Any two single characters

b)

Nothing; it has no special meaning

c)

The directory above the current working directory

d)

A user’s home directory

83.

Which of the following commands can be used to access the home directory of the user “bob” while logged in as root? (choose two)

a)

cd &&

b)

cd /home/bob

c)

cd ~bob

d)

~bob

84.

The double dot (..) can be used with the cd command to represent:

a)

A user’s home directory.

b)

Any two single characters

c)

Nothing; it has no special meaning.

d)

The directory above the current working directory

85.

The cd command by itself will take you to what directory?

a)

None; it is not a valid command

b)

The system root directory

c)

Your home directory

d)

The directory above the current working directory

86.

What command will allow you to change your current working directory?

a)

list

b)

chdir

c)

ls

d)

cd

87.

The double dot (..) can be used to represent the directory…

a)

…below the current directory.

b)

…above the current directory.

c)

…with any two single numbers.

d)

…above the current directory only when using the cd command.

88.

The ls command without options or arguments…

a)

…prompts for a directory to list.

b)

…generates an error as this command requires arguments.

c)

…lists the contents of a user’s home directory.

d)

…lists the contents of the current directory.

89.

The first character in a long listing (ls -l) indicates:

a)

The permissions

b)

The owner

c)

If something is a file, directory, or symbolic link

d)

The size

90.

Which option for the ls command, when used in conjunction with the -l option, will display human-readable file sizes?

a)

-S

b)

-H

c)

-h

d)

-M

91.

Which of the following commands will prevent any aliased options to the ls command?

a)

%ls

b)

/ls

c)

`ls

d)

\ls

92.

The ls command color codes results by default. True or False?

a)

True

b)

False

93.

The command ls -S will sort files:

a)

By modification date, newest to oldest

b)

By size, largest to smallest

c)

By number of symlinks, largest to smallest

d)

By size, smallest to largest

94.

When using the cp command, you must provide both a source and a destination.

True or False?

a)

True

b)

False

95.

Which option(s) can be used to prevent cp from overwriting an existing file?

(choose two)

a)

-z

b)

-n

c)

-N

d)

-i

96.

The command rm -r will…

a)

remove a directory along with any files or subdirectories.

b)

generate an error; -r isn’t a valid option.

c)

remove only empty directories.

d)

prompt for each confirmation before deleting each file in a directory.

97.

Which option can be used with the rm command to prompt before deleting?

a)

A

b)

-P

c)

l

d)

-i

98.

The rm command can delete multiple files at once.

True or False?

a)

True

b)

False

99.

Which of the following commands can be used to rename a file?

a)

cp

b)

rm

c)

mv

d)

name

100.

The touch command can be used to:

(choose two)

a)

Update the timestamp of existing files

b)

Change ownership of a file

c)

Create new files

d)

Change a file’s name

101.

Which of the following are glob characters?

(choose three)

a)

The square brackets “[” and “]”

b)

The question mark “?”

c)

The dash character “-“

d)

The asterisk “*”

102.

The main purpose of using glob characters is to be able to provide a list of filenames to a command.

True or False?

a)

True

b)

False

103.

The asterisk character is used to represent zero or more of any character in a filename.

True or False?

a)

True

b)

False

104.

Which of these commands will return /etc/gai.conf /etc/pam.conf /etc/ucf.conf?

(choose two)

a)

ls /etc/???.????

b)

echo /etc/???.*f

c)

echo /etc/*?.*o?

d)

ls /etc/p???.**

105.

Brackets cannot be used to a represent a range of characters.

True or False?

a)

True

b)

False

106.

Which command would list files that do not begin with a “T” or a “W”?

a)

echo /etc/*[TW!]

b)

echo /etc/!TW

c)

echo /etc/[!TW]*

d)

echo /etc/[*TW]!

107.

Compression of a file works by:

a)

Eliminating gaps within the file

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)

Removing the high order bit from each byte

108.

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

a)

An mp3 audio file

b)

An encrypted email

c)

A JPEG image

d)

A log file

e)

A movie

109.

Lossy compression: (choose three)

a)

Usually results better compression than lossless

b)

Is often used with images

c)

Is often used with documents

d)

Decompresses to an identical version as the original

e)

Sacrifices some quality

110.

You type gzip myfile.tar. What happens?

(choose two)

a)

myfile.tar is unarchived into the current directory

b)

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

c)

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

d)

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

e)

myfile.tar is removed

111.

How would you obtain output similar to the following?

compressed uncompressed ratio uncompressed_name

278168 1016950 72.6% tags

a)

gzip –l tags

b)

gunzip –t tags

c)

file tags

112.

Which command would you use to archive the Documents directory and compress it with bzip2 compression?

a)

tar –fzc Documents documents.tbz

b)

tar –cf Documents documents.tbz

c)

tar –cjf Documents

d)

tar –cjf documents.tbz Documents

e)

tar –czf documents.tbz

113.

Which flag would you pass to tar in order to have it make a new archive?

a)

-t

b)

-c

c)

-n

d)

-x

e)

-j

114.

Which command will show what is inside the compressed tarball with a name of foo.tar.gz?

a)

tar –tjf foo.tar.gz

b)

tar –lf foo.tar.gz

c)

tar –tf foo.tar.gz

d)

tar –xf foo.tar.gz

e)

tar –tzf foo.tar.gz

115.

In the command tar -cvjf foo.tbz a b c, what are a, b, and c?

a)

Nothing; -cvjf only expects one parameter

b)

File names to be added to the archive

c)

a is the directory that will be prepended to files; b and c are files inside it

d)

Matching operators; anything starting with a, b, or c will be added

e)

Extra flags passed to tar

116.

Given the command tar –cvjf homedirs.tbz /home, which of the following are true?

(choose two)

a)

Only files starting with /home will be extracted from the archive

b)

The command will print out each filename as it is processed

c)

The /home directory will be restored with the contents of homedirs.tbz

d)

Files that are present in the archive might overwrite files in /home

e)

The output file will be compressed

117.

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?

a)

tar –xzf backup.tar.gz home/fred/

b)

tar –tjf backup.tar.gz /home/fred

c)

tar –xjf backup.tar.gz home/fred/

d)

tar –xzf backup.tar.gz fred

e)

tar –tzf /home/fred < backup.tar.gz

118.

Which of the following commands will create a zipfile with the contents of your Documents directory?

a)

zip –f mydocs.zip Documents

b)

zip -r mydocs.zip Documents

c)

zip –c mydocs.zip Documents

d)

zip mydocs.zip Documents

e)

zip -cf mydocs.zip Documents

119.

Given a file called documents.zip, how can you see what’s in it without extracting the files?

a)

zip -lf documents.zip

b)

unzip -l documents.zip

c)

unzip –list documents.zip

d)

zip -l documents.zip

e)

showzip documents.zip

120.

Given a file called documents.zip, how can you extract just the files under ProjectX?

a)

unzip documents.zip ProjectX/*

b)

unzip documents.zip | grep ProjectX

c)

unzip documents.zip ProjectX

d)

zip -x documents.zip ProjectX

e)

unzip -t documents.zip ProjectX

121.

You try to compress a file that is already compressed. Which of the following statements is true?

a)

The file will not be compressed any further than it already was

b)

The compression algorithm needs to be set to the “currently compressed” mode for it to be compressed further

c)

The file changed while you were compressing it

d)

The file will be deleted

e)

The file will actually be uncompressed

122.

Which of the following commands can be used to compress a file?

(choose three)

a)

bunzip2

b)

cat

c)

zip

d)

bzip2

e)

gzip

123.

The three main modes of tar are:

(choose three)

a)

List

b)

Create

c)

Compress

d)

Copy

e)

Extract

124.

In the command tar -czf foo.tar.gz bar, what is the purpose of the f flag?

a)

Tells tar to copy only files, and not directories

b)

Tells tar to read from the file that follows the flag

c)

Tells tar to write to the file that follows the flag

d)

Tells tar to print the name of each file as it is processed

e)

Specifies extra compression is to be used

125.

Which two commands do the same thing?

(choose two)

a)

tar -czf foo.tar.gz foo

b)

tar -tzf foo.tar.gz

c)

tar -c foo | gzip > foo.tar.gz

d)

tar -x foo | gzip

e)

tar -xzf foo.tar.gz

126.

Which two programs use the Lempel-Ziv-Markov chain algorithm?

(choose two)

a)

xz

b)

lossless

c)

lossy

d)

bzip

e)

gzip

127.

By default, the zip command replaces uncompressed files with compressed files.

True or False?

a)

True

b)

False

128.

Error messages generated by commands are sent where by default?

a)

STDERR

b)

STDIN

c)

Log files

d)

STDOUT

129.

A successful command may, or may not print output to STDOUT. True or False?

a)

True

b)

False

130.

Which of the following commands will direct error messages to the file, error.log?

a)

ls /root >> error.log

b)

ls /root > error.log

c)

ls /root 2> error.log

d)

ls /root $> error.log

131.

A pipe allows you to…

a)

…send the same input to multiple commands.

b)

…type multiple commands at one prompt.

c)

…send the output of one command to another.

d)

…send the output of a command to a file.

132.

Channel 2 is:

a)

STDOUT

b)

STDALL

c)

STDERR

d)

STDIN

133.

Which of the following commands will append its output to output.file?

a)

echo Testing >> output.file

b)

echo Testing > output.file

c)

output.file < echo Testing

d)

echo Testing -> output.file

134.

Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen?

(choose two)

a)

sort < list.file

b)

cat list.file >> sort

c)

echo list.file > sort

d)

cat list.file | sort

135.

Which option of the head command will display only the first five lines of a file?

a)

No option needed; head displays only five lines by default.

b)

-n

c)

-l 5

d)

-n 5

136.

The grep command…

a)

…will display all the lines that begin with the specified Regular Expression.

b)

…will display all the lines in a file containing the specified Regular Expression.

c)

…will display the line numbers in a file that contain a specified Regular Expression.

d)

…is not case sensitive.

137.

The grep command can be used with glob characters. True or False?

a)

True

b)

False

138.

Which of the following commands will display only lines that begin with start?

a)

grep \start file.txt

b)

grep $start file.txt

c)

grep *start file.txt

d)

grep ^start file.txt

139.

Which of the following commands will display only lines that begin with test?

a)

grep $test* file.txt

b)

grep *test file.txt

c)

grep &test file.txt

d)

grep ^test file.txt

140.

Which of the following commands will display lines that contain either start or end?

a)

egrep ‘start|end’ file.txt

b)

egrep (start|end) file.txt

c)

egrep start end file.txt

d)

egrep start&end file.txt

141.

Which of the following commands can be used to scroll through a text file?

(choose two)

a)

some

b)

more

c)

cat

d)

less

142.

Which option for the cut command is used to specify a delimiter?

a)

-D

b)

-f

c)

=

d)

-d

143.

Which option for the cut command is used to specify the field?

a)

-d

b)

#

c)

-D

d)

-f

144.

Which option for the wc command will print the number of lines in a file?

a)

-w

b)

-l

c)

-L

d)

-C

145.

Which option for the wc command will print the total number of words in a file?

a)

-l

b)

-C

c)

-L

d)

-w

146.

Which command can be used to print line numbers?

a)

num

b)

nl

c)

ln

d)

sort

147.

The command echo "text" > file.txt will create file.txt if it does not already exist.

True or False?

a)

True

b)

False

148.

The command echo "text" > file.txt will not overwrite file.txt if it already exists.

True or False?

a)

True

b)

False

149.

The command echo "text" >> file.txt will not overwrite file.txt if it already exists.

True or False?

a)

True

b)

False