wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux Test Prep 2

Total questions: 55

Worksheet time: 30mins

Name
Class
Date
1.

Which of the following does Raspbian Linux run on?

a)

Vehicle entertainment system

b)

Raspberry Pi

c)

Smartphone

d)

AWS cloud

2.

Which of the following programs on a Linux system could you use as a replacement for Microsoft Word?

a)

Nano

b)

Writer

c)

​Pico

d)

Pages

3.

Which of the following is the UNIX device name for a physical or virtual terminal connection?

a)

tty

b)

phy

c)

virt

d)

dev

4.

Which of the following is a suite of client-server software for creating and using file hosting services?

a)

​ownCloud

b)

DropCloud

c)

FileOwn

d)

ownHost

5.

Which of the following programs on a Linux system could you use as a replacement for Adobe Photoshop?

a)

Keynote

b)

Draw

c)

Gimp

d)

Paint

6.

What directly controls hardware and translates the commands from a piece of software into something the hardware can understand and act upon?

a)

Procmon

b)

Kernel

c)

Explorer

d)

Finder

7.

Which character is known as a root directory?

a)

/

b)

*

c)

&

d)

^

8.

Which command line can be used to search help files that mention the word 'copy'?

a)

info copy

b)

man -k copy

c)

man copy

d)

help copy

9.

What is a set of pages that explain every command available on the system?

a)

Informational pages

b)

Master pages

c)

Help pages

d)

Man pages

10.

The "cd" command is short for _____________.

a)

Check Disk

b)

Change Disk

c)

Change Directory

d)

Check Directory

11.

Which option of the command history can be used to clear the user's history?

a)

$clear

b)

-c

c)

/c

d)

-clr

12.

What is the ls command used for in Linux?

a)

Lists all saved cookies on a system

b)

Lists all users utilizing a file

c)

Lists all shared files on a system

d)

Lists the files within a directory

13.

Which of the following is true about environment variable names by convention?

a)

Contains only symbols

b)

Contains only numbers

c)

Contains all lowercase letters

d)

Contains all uppercase letters

14.

Which command shows if /usr/bin is in the current shell search path?

a)

​cat $PATH

b)

echo %PATH%

c)

echo $PATH

d)

cat PATH

15.

Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file?

a)

egrep fred data_file

b)

grep '[f]red' data_file

c)

grep -v fred data_file

d)

grep '[Ff]red' data_file

16.

What keyword should be used to fill in the blank in the following segment of the given shell script? for i in *; _____ cat $i done

a)

fi

b)

when

c)

then

d)

do

17.

Which of the following options is used with tar to create a new .tar archive file?

a)

-n

b)

-f

c)

-v

d)

-c

18.

Which option can be used with tail to print the last X bytes of a file to the screen?

a)

-x

b)

-c

c)

-b

d)

-n

19.

Which command would a user type to compress and package several files into a single file?

a)

package

b)

bundle

c)

zip

d)

compress

20.

Which command is used to print the last 10 lines of a file to the display?

a)

less

b)

head

c)

tail

d)

cat

21.

What is the correct statement to be used for comparison in a Linux shell script?

a)

if ( $x -gt $y) if { $x -gt $y }

b)

if $x -gt $y

c)

if [ $x -gt $y ]

22.

Which command is used to print the first 10 lines of a file to the display?

a)

less

b)

head

c)

tail

d)

cat

23.

You have been asked to create a script will present the user with a onboard menu in which they can select 4 different commands to run by entering 1, 2, 3, or 4. Which of the following statements should you use to create the simplest and most effective method of choosing the command to run based on the user's input?

a)

while

b)

for

c)

case

d)

if

24.

Why is the file data.txt empty after executing sort data.txt > data.txt?

a)

Because the file gets executed before sort is truncated

b)

Because the file gets truncated before sort is executed

c)

Because sort detects that both files are the same

d)

Because sort cannot sort text files, only binary files

25.

Which network device serves as the gateway between your internal network and external network?

a)

Hub

b)

Wireless access point

c)

Router

d)

Switch

26.

What is the maximum amount of memory accessible by a 32-bit operating system?

a)

8 GB

b)

4 GB

c)

2 GB

d)

1 GB

27.

Which of the following software packages is a mail server?

a)

GIMP

b)

Postfix

c)

Apache

d)

Thunderbird

28.

Which of the following is used as a virtual or pseudo filesystem used to interface with the kernel and system as a whole but not with individual processes?

a)

/dev

b)

/sys

c)

/proc

d)

/boot

29.

Which of the following commands can be used to resolve a DNS name to an IP address?

a)

iplookup

b)

host

c)

query

d)

dns

30.

Which of the following is a requirement of the GPL license but not the BSD license?

a)

Users who modify and distribute the software under the GPL license must make the modifications they made available to the recipients under the same license

b)

The GPL license requires that any legal disputes be settled with the mediation of the Free Software Foundation

c)

The GPL license contains a disclaimer of warranty requiring users not to hold the software authors liable for any damages

d)

The GPL license forbids the removal of copyright and license notices from source code files that are distributed

31.

Which type of files is an important part of diagnosing problems with daemons?

a)

User files

b)

Configuration files

c)

System files

d)

Log files

32.

Which of the following files contains a mapping of IP addresses to URLs locally on your Linux machine?

a)

/etc/lookup

b)

/etc/dns

c)

/etc/names

d)

/etc/hosts

33.

Which file on a Linux system contains the passwords for each user on the system?

a)

/etc/users

b)

/etc/passwd

c)

/etc/shadow

d)

/etc/password

34.

Which option can be used with useradd to create a new user without a home directory?

a)

-D

b)

-M

c)

-G

d)

-N

35.

Which of the following commands is used to show the information about a directory or a symbolic link?

a)

ln -s

b)

ln -d

c)

ls -s

d)

ls -d

36.

Which file on a Linux system is modified to set the maximum number of days before a password must be changed?

a)

/etc/users

b)

/etc/passwd

c)

/etc/shadow

d)

/etc/groups

37.

Which type of link is used to points to another file like a shortcut in Windows or a Macintosh alias?

a)

Sticky link

b)

Smooth link

c)

Symbolic link

d)

Hard link

38.

What command is used to change the group ownership of a file?

a)

changegroup

b)

chgrp

c)

cgroup

d)

group

39.

What is a special permission bit set on a file or a directory that lets only the owner of the file/directory or the root user delete or rename the file?

a)

Special bit

b)

SUID

c)

Sticky bit

d)

SGID

40.

What is the main difference between Linux and Windows/MAC OS?

a)

You have to install Linux while Windows/MAC OS is pre-installed

b)

Linux is affordable while Windows/MAC OS is expensive

c)

Linux is open source software while the other two are closed source operating systems

d)

There is no real difference

41.

Software that runs on a computing device and manages the hardware and software components that make up the system.

a)

Operating System

b)

Driver

c)

Network Protocol

d)

Database Management System

42.

Which OS is not UNIX based?

a)

Linux

b)

Windows

c)

MacOS

43.

Match the following

a)

Role

1.

Accessed by one user directly (desktop) or many users remotely (server)?

b)

Function

2.

Does it need to run specific software? What is the skill set of users?

c)

Life Cycle

3.

What is the service lifetime?

d)

Stability

4.

Are OS releases beta (not tested “in the wild”) or stable (tested)?

e)

Compatibility

5.

Is it backwards compatible as in is it compatible with software made for earlier versions?

44.

If support is not an issue, which OS is the most cost effective?

a)

Linux

b)

Windows

c)

Mac OS

45.

Which describe the Windows OS?

a)

Offers desktop and server versions.

b)

Slow release cycle (3-5 years), long maintenance cycle.

c)

Emphasis on backward compatibility

d)

Improved scripting and management abilities are being developed to compete with Linux. (Power Shell)

e)

Runs a Graphical User Interface (GUI)

46.

Which describe the macOS?

a)

Runs only on Apple hardware

b)

UNIX certified

c)

New major releases every 18-24 months

d)

Open source operating system

e)

Partially based on code from the FreeBSD project

47.

Match the following

a)

Role:

1.

Distributions available for variety of systems; e.g.: commercial for servers and desktop.

b)

Function:

2.

Distributions can be chosen based on purpose of usage or security needed.

c)

Life Cycle:

3.

Most distributions have major and minor update cycles. Some Linux releases have long-term support.

d)

Stability:

4.

Some distributions offer stable, testing, and unstable releases.

e)

Compatibility:

5.

Distributions are zero cost. Depending on need, paying for support may be worthwhile.

48.

What is the most popular Debian distribution?

a)

Red Hat

b)

Red Hat

c)

Ubuntu

d)

CentOS

49.

Which are Red Hat distributions?

a)

Fedora

b)

Ubuntu

c)

CentOS

d)

Debian

50.

Which is derived from SlackWare?

a)

Red Hat

b)

Ubuntu

c)

Windows

d)

SUSE

51.

Which Linux platform is used on cell phones?

a)

iOS

b)

Windows

c)

Ubuntu

d)

Android

52.

What command is used to display the current working directory in Linux?

a)

ls

b)

pwd

c)

cd

d)

dir

53.

Which of the following commands is used to copy files in Linux?

a)

cp

b)

mv

c)

rm

d)

ls

54.

Which command is used to change the owner of a file in Linux?

a)

chmod

b)

chown

c)

chgrp

d)

ls -l

55.

Which file system is primarily used in Linux?

a)

NTFS

b)

FAT32

c)

ext4

d)

HFS+