wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

M2-18

Total questions: 70

Worksheet time: 38mins

Name
Class
Date
1.

Embedded Systems means:

a)
  • Businesses cannot charge anything for the software, only the hardware


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


c)
  • Users must support the systems themselves


d)
  • You can view the software’s source code


2.

Linux originally only ran on:


a)
  • Specialized processor chips


b)
  • Raspberry Pi computers


c)
  • Xerox copy machines


d)
  • Intel 386 PCs


e)
  • Macintosh

3.

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


a)
  • A text editor


b)
  • A type of hardware


c)
  • A distribution of Linux


d)
  • A trademark


4.

A software release cycle describes:


a)
  • How often the software’s memory is released back to the operating system


b)
  • How often the computer must be rebooted


c)
  • How often upgrades come out for software


d)
  • How often security fixes are implemented


e)
  • How often the computer must be upgraded to support new software


5.

Apple’s OS X is:


a)
  • Tightly integrated with Apple hardware


b)
  • A fully certified UNIX distribution


c)
  • Primarily used to manage network services


d)
  • Able to natively run Windows binaries


e)
  • Partially based on code from the FreeBSD project


6.

Microsoft Windows:


a)
  • Offers both desktop and server products


b)
  • Has a short maintenance cycle


c)
  • Is generally backwards compatible with previous versions


d)
  • Has a scripting environment called PowerShell


e)
  • Has a new desktop version every year.


7.

An interpreted programming language:


a)
  • Takes fewer resources to run than a compiled language


b)
  • Tends to offer more features than compiled languages


c)
  • Requires a compilation step but no linking step


d)
  • Is converted into machine specific instructions as the program runs


e)
  • Requires a linking step but no compilation step


8.

The two main families of Linux shells are:


a)
  • Bourne Shell


b)
  • Korn shell


c)
  • Emacs


d)
  • C Shell


e)
  • Python Shell


9.

In virtualization, what are the host and guest?


a)
  • The guest is the machine that runs the virtual machines


b)
  • The terms can be used interchangeably


c)
  • The host is the machine that runs the virtual machines


d)
  • A guest is a virtual machine


e)
  • A host is a virtual machine


10.

Cloud computing is:


a)
  • Is made possible by faster internet speeds


b)
  • Is useful for both business and home users


c)
  • All are correct


d)
  • Requires fewer resources because systems are shared among many users


e)
  • Allows users in different geographical regions to work together in real time


11.

Which of the following are properties of a strong password?


a)
  • Includes symbols


b)
  • At least 10 characters long


c)
  • A mix of upper and lower case


d)
  • Based on easy to remember items like birthdays


e)
  • Long so that it can be reused on multiple sites


12.

A license where you don’t have access to the source code is called:


a)
  • Closed source


b)
  • Sourceless


c)
  • Impaired source


d)
  • Open source


13.

A copyleft provision in a software license means:


a)
  • You must provide support for your modifications


b)
  • You must provide free copies of the software if you use it


c)
  • You may not link against third party closed source software


d)
  • You give up your copyright to the software


e)
  • If you redistribute the software, you must distribute the source to any changes you make


14.

The Free Software Foundation believes that:


(choose two)


a)
  • Software should be free to modify


b)
  • Software should be free to share


c)
  • No money should ever change hands


d)
  • People should write software with no expectation of making money


e)
  • Software should not have copyright


15.

What does it mean when a work is placed in the public domain?


a)
  • The author has relinquished the copyright on the work


b)
  • The author has died


c)
  • You must redistribute changes to the software


d)
  • You may not use the work for commercial purposes


e)
  • The work was done by a government agency


16.

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


True or False?


a)
  • True


b)
  • False


17.

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


a)
  • print


b)
  • type


c)
  • echo


d)
  • display


18.

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


a)
  • history


b)
  • exec

c)
  • eval

d)
  • list

19.

HOME is an example of _________.


a)
  • An internal command


b)
  • An alias


c)
  • A path variable


d)
  • A local variable


e)
  • An environment variable


20.

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


a)
  • /usr/share/doc


b)
  • /var/share/doc


c)
  • /var/lib/doc


d)
  • /usr/software/doc


21.

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


a)
  • s


b)
  • !

c)
  • /

d)
  • f

22.
  • To get help on using the info command, execute:

    (choose two)



a)
  • help info


b)
  • man info


c)
  • info -q


d)
  • info info


23.

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


a)
  • whatis


b)
  • whereis


c)
  • apropos


d)
  • locate


24.

Hidden files are files that begin with what character?


a)
  • A dash (-)


b)
  • A plus (+)


c)
  • A period (.)


d)
  • An asterisk (*)


25.

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


a)
  • C:


b)
  • /home


c)
  • /


d)
  • /root


26.

The ls command without options or arguments…


a)
  • …lists the contents of the current directory.


b)
  • …prompts for a directory to list.


c)
  • …generates an error as this command requires arguments.


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


27.

The command ls -S will sort files:


a)
  • By size, smallest to largest


b)
  • By size, largest to smallest


c)
  • By number of symlinks, largest to smallest


d)
  • By modification date, newest to oldest


28.

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

True or False?



a)
  • True


b)
  • False

29.

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


a)
  • l


b)
  • -i


c)
  • A

d)
  • -P


30.

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]!


31.

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


a)
  • An mp3 audio file


b)
  • A movie


c)
  • A JPEG image


d)
  • A log file


e)
  • An encrypted email


32.

You type gzip myfile.tar. What happens?

(choose two)


a)
  • myfile.tar is removed


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


c)
  • myfile.tar is unarchived into the current directory


d)
  • myfile.tar.gz holds a compressed version of myfile.tar


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


33.

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


a)
  • tar –tf foo.tar.gz


b)
  • tar –lf foo.tar.gz


c)
  • tar –tzf foo.tar.gz


d)
  • tar –tjf foo.tar.gz


e)
  • tar –xf foo.tar.gz


34.

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

True or False?

a)
  • True


b)
  • False


35.

Error messages generated by commands are sent where by default?


a)
  • STDOUT


b)
  • Log files


c)
  • STDERR


d)
  • STDIN


36.

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


37.

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


38.

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


a)
  • Nothing, this is a comment


b)
  • This is a Perl script


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


d)
  • The operator should not be using /bin/csh


e)
  • C Shell compatibility mode is enabled


39.

Most of nano’s commands take the form of:


a)
  • Alt and another character


b)
  • Control and another character


c)
  • The F1 through F12 function keys


d)
  • Mouse clicks


e)
  • Escape followed by another character


40.

The if command looks for what exit code to consider a condition to be true?


a)
  • 0


b)
  • 10


c)
  • 255


d)
  • 2

e)
  • 1

41.

The number of users logged in is in a variable called USERS. How would you test to see if there are 5 users logged in?


a)
  • test –f USERS=5


b)
  • test $USERS –eq 5


c)
  • test $USERS = 5


d)
  • test $USERS –a 5


e)
  • test $USERS,5


42.

Which of the following are valid partitioning types?

(choose two)



a)
  • GPT


b)
  • PC

c)
  • MBR

d)
  • BIOS


43.

Software that allows hardware devices to communicate with the installed operating system is called?


a)
  • Packages


b)
  • Drivers


c)
  • Instructions


d)
  • Programs

44.

Which of the following commands will check hard disk GPT partitions?(choose three)


a)
  • gdisk

b)
  • sfdisk


c)
  • gfdisk


d)
  • sgdisk


e)
  • cgdisk

45.

The process (ps) command shows only processes running in the current shell by default.

True or False?

a)
  • True

b)
  • False

46.

The free command outputs statistics about:


a)
  • Disk usage


b)
  • Memory usage


c)
  • Software usage


d)
  • CPU usage


47.

Which file contains the information passed to the kernel at boot time?


a)
  • /proc/kernel


b)
  • /proc/kargs


c)
  • /proc/kopts


d)
  • /proc/cmdline


48.

To make changes permanent for kernel parameter files found under /proc/sys, the following file can have entries added to it:


a)
  • /etc/sysinfo.conf


b)
  • /etc/sysctl.conf


c)
  • /etc/procctl.conf


d)
  • /etc/procsys.conf


49.

Which of the following commands will display the IP address on a Linux system?


a)
  • dig


b)
  • ifconfig


c)
  • route


d)
  • ipconfig


50.

The RSA key fingerprint allows the dig command to connect to remote systems.

True or False?

a)
  • True

b)
  • False

51.

When issuing the service network restart command, which of the following occurs?


a)
  • …the networking for the system is stopped and then started back up.


b)
  • …brings up all network interfaces, re-reads all related configuration files and then the networking for the system is restarted.


c)
  • …takes down all network interfaces, re-reads all related configuration files and then the networking for the system is restarted.


52.

Which of the following commands can be used to display socket statistics, and supports all major packet and socket types?


a)
  • route

b)
  • ss


c)
  • top


d)
  • ifconfig


53.

Which of the following commands will display the groups that the user bob belongs to?


a)
  • groups -a


b)
  • group bob


c)
  • all bob


d)
  • id bob


54.

Traditional UNIX systems allowed users to belong to how many groups?


a)
  • 256

b)
  • 65,000


c)
  • 1


d)
  • 10,000


e)
  • 16

55.

A value of 0 in the “minimum” password aging field means the user cannot change their password.

True or False?

a)
  • True

b)
  • False

56.

Sudo privileges allow users to execute commands as another user.

True or False?

a)
  • True


b)
  • False

57.

The first line of this command displays how long the system has been running since being rebooted.


a)
  • getent

b)
  • id

c)
  • w

d)
  • su


e)
  • who

58.

Which option for the usermod command can be used to specify a user’s group ID (either primary or secondary)?

(choose two)



a)
  • -G


b)
  • -s


c)
  • -S


d)
  • -g

59.

The groupmod command can be used to add users to a group.

True or False?

a)
  • True


b)
  • False


60.

Which of the following files contains user IDs?


a)
  • /etc/usr


b)
  • /etc/shadow


c)
  • /etc/group


d)
  • /etc/passwd


61.

Which of the following commands, run as root, will prevent the user bob from logging in?


a)
  • usermod -D bob


b)
  • usermod -d bob


c)
  • usermod -L bob


d)
  • usermod -l bob


62.

What directory contains a user’s home directory?


a)
  • /rootfs


b)
  • /

c)
  • /home


d)
  • /user


63.

GIDs under 500 (or 1000) are usually reserved for what kind of groups?


a)
  • Administrators

b)
  • System use


c)
  • User private groups (UPG)


d)
  • Are not used for groups, but for user accounts


64.

A user cannot delete a file if they do not own it. True or False?


a)
  • True


b)
  • False

65.

The chown command permits changing group ownership done by root only. True or False?


a)
  • True

b)
  • False


66.

Which of the following commands will list hidden files as well as their ownership?


a)
  • ls -l


b)
  • ls -z


c)
  • ls -a


d)
  • ls -la


67.

Which of the following commands will set setuid for the /usr/bin/program?


a)
  • chmod 1755 /usr/bin/program


b)
  • None of the above


c)
  • chmod 2755 /usr/bin/program


d)
  • chmod 4755 /usr/bin/program


68.

Setting setgid on a directory…


a)
  • …will set the group owner of all files created in the directory to the group owner of the directory.


b)
  • …will allow scripts in the directory to be executed as the group owner of the directory.


c)
  • …does nothing.


d)
  • …is not allowed by the system.


69.

Deleting a source file will break an associated hard link. True or False?


a)
  • True

b)
  • False

70.

Which of the following commands would create a hard link, link to file?


a)
  • ln link file


b)
  • ln -s file link


c)
  • ln -s link file


d)
  • ln file link