wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

LINUX 1

Total questions: 80

Worksheet time: 40mins

Name
Class
Date
1.

Which of the following is the on-demand availability of computer system resources, especially data storage and computing power, without direct active management by the user?

a)

Passive Computing

b)

Cloud Computing

c)

On-demand Computing

d)

Remote Computing

2.

Which keyboard shortcut allows copying highlighted text while working in the command line terminal?

a)

CTRL + TAB + C

b)

CTRL + ALT + C

c)

CTRL + SHIFT + C

d)

CTRL + C

3.

Which of the following can be used to represent a single number from 3 to 9?

a)

[9-3]

b)

[three-nine]

c)

[3-9]

d)

[3456789]

4.

Which of the following is a valid option for a typical command to get its built-in usage information?

a)

--help

b)

--manual

c)

help

d)

-?

5.

Your current present working directory is /home/jon/documents/. You just entered cd .. into the command line and then enter pwd. What output do you receive?

a)

/home/jon/documents/..

b)

/home

c)

/home/jon

d)

/home/jon/documents/

6.

Which of the following is true about a recursive directory listing?

a)

It includes details of the users and groups of the directory

b)

It includes details of file system internals such as inodes

c)

It includes the content of sub-directories

d)

It includes the permissions of the directory listed

7.

Typing $ followed by pressing which key twice, in quick succession, will list all of the variables?

a)

TAB

b)

SHIFT

c)

ALT

d)

CTRL

8.

Which of the following are not man page sections?

a)

Return Value

b)

Configuration

c)

Mistakes

d)

Name

9.

Which of the following commands will create a single directory named dir1 dir2?

a)

create directory2

b)

make dir1/dir2

c)

mkdir “dir1 dir2”

d)

mkdir dir1dir2

10.

In order to rename the directory ~

/documents/letters

to

/documents/archive

which of the following commands should be used?

a)

rename ~/documents/letters ~/documents/archive

b)

copy -m ~/documents/letters ~/documents/archive

c)

cp -m ~/documents/letters ~/documents/archive

d)

mv ~/documents/letters ~/documents/archive

11.

What command would a user enter to delete a directory containing no other files or directories within it?

a)

mvdir

b)

cpdir

c)

rmdir

d)

mkdir

12.

Which command is used to print one page of text to the screen at a time?

a)

less

b)

head

c)

tail

d)

cat

13.

Which redirection operator accepts text on the following lines as standard input?

a)

><

b)

<<

c)

>>

d)

<>

14.

What option can be used with cat to display line numbers with the text of a file to the screen?

a)

-1

b)

-n

c)

-x

d)

#

15.

Which command-line tool will create a filename that ends in .gz?

a)

gzip

b)

xz

c)

bzip2

d)

zip

16.

Which of the following commands would be used to display the value of the HOME variable to the terminal's display?

a)

echo "HOME"

b)

echo &HOME

c)

echo HOME

d)

echo $HOME

17.

What option can be used with tail or head to specify the number of lines to display to the screen?

a)

-x

b)

-c

c)

-b

d)

-n

18.

What does the grep command allow a user to do?

a)

Move a file from one folder to another

b)

Repeat the previous command

c)

Search for files that contain a specified string

d)

Rename a file or directory

19.

Which of the following is used to redirect the standard output of a command to a file?

a)

&2

b)

&1

c)

2>

d)

1>

20.

What statement is used to get input from the terminal when a shell script is being run?

a)

in

b)

read

c)

scan

d)

input

21.

Which version of Linux should be installed on a system with a 32-bit processor?

a)

x99

b)

x86

c)

x64

d)

x32

22.

Where is the BIOS located?

a)

Monitor

b)

Hard drive

c)

Motherboard

d)

RAM

23.

Which of the following is used as a virtual or pseudo filesystem used to interface with the kernel and process?

a)

/dev

b)

/sys

c)

/proc

d)

/boot

24.

When the free command is run, what does the Mem: line reveal about the system?

a)

System information

b)

Graphics specifications

c)

RAM statistics

d)

CPU statistics

25.

Which of the following would properly identify the device associated with the second partition on the first hard disk on the first IDE controller of a system?

a)

dev/hdc1a2

b)

/dev/hdc1d2p2

c)

/dev/hd1b2

d)

/dev/hda2

26.

Which of the following is the correct order of a computer's operation?

a)

(1) The computer waits for user input,

(2) The user selects a command and enters it via the keyboard or mouse,

(3) The computer executes the command

b)

(1) The user selects a command and enters it via the keyboard or mouse,

(2) The computer executes the command,

(3) The computer waits for user input

c)

(1) The computer executes the command,

(2) The computer waits for user input,

(3) The user selects a command and enters it via the keyboard or mouse

d)

(1) The computer waits for user input,

(2) The computer executes the command,

(3) The user selects a command and enters it via the keyboard or mouse

27.

What is the command that will show system boot time messages?

a)

display system boot

b)

dmesg

c)

lspci

d)

echo

28.

Which of the following properly identifies the third partition, on the second hard disk, on the first IDE controller on a PC system?

a)

/dev/hdc1a3

b)

/dev/hdc1d2p3

c)

/dev/hd1b3

d)

/dev/hdb3

29.

Where are the passwords stored for users on a Linux system?

a)

/etc/group

b)

/etc/skel

c)

/etc/shadow

d)

/etc/passwd

30.

Which of the following is NOT contained in the /etc/passwd file?

a)

Default login shell

b)

The password of the user's account

c)

Home directory for the user

d)

User Identification Number (UID)

31.

How would you represent rwxr-xr-- in octal notation?

a)

624

b)

724

c)

742

d)

754

32.

Which file contains a list of the user's secondary groups?

a)

/etc/group

b)

/etc/user

c)

/etc/shadow

d)

/etc/passwd

33.

Which of the following commands will display a list of all files in the current directory, including those that may be hidden?

a)

ls -hidden

b)

ls -all

c)

ls -h

d)

ls -a

34.

Which type of link contains the data in the target file?

a)

Smooth link

b)

Sticky link

c)

Symbolic link

d)

Hard link

35.

Which UID is usually used to represent the first regular user on a Linux system?

a)

1000

b)

100

c)

10

d)

1

36.

What is defined by a Free Software license?

a)

The conditions for modifying and distributing the licensed software

b)

Limits on the purposes for which the licensed software may be used

c)

A complete list of libraries required to compile the licensed software

d)

The programming languages which may be used to extend the licensed program

37.

Which of the following is a series of small single-board computers developed to promote the teaching of basic computer science in schools and developing countries?

a)

Raspberry Pi

b)

Blackberry Pi

c)

Blueberry Pi

d)

Strawberry Pi

38.

Which of the following is a Debian-based computer operating system for Raspberry Pi?

a)

Pi

b)

Solaris

c)

Ubuntu

d)

Raspbian

39.

Which is NOT a Linux distribution?

a)

Torvalds

b)

Debian

c)

openSUSE

d)

CentOS

40.

Which of the following can you NOT install Linux on?

a)

Smartcard

b)

Smartphones

c)

Desktops

d)

Cloud servers

41.

Which of the following does Raspbian Linux run on?

a)

Vehicle entertainment system

b)

Raspberry Pi

c)

Smartphone

d)

AWS cloud

42.

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

43.

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

a)

tty

b)

phy

c)

virt

d)

dev

44.

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

45.

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

46.

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

47.

Which character is known as a root directory?

a)

/

b)

*

c)

&

d)

^

48.

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

49.

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

50.

The "cd" command is short for _____________.

a)

Check Disk

b)

Change Disk

c)

Change Directory

d)

Check Directory

51.

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

a)

$clear

b)

-c

c)

/c

d)

-clr

52.

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

53.

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

54.

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

55.

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

56.

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

57.

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

a)

-n

b)

-f

c)

-v

d)

-c

58.

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

59.

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

a)

package

b)

bundle

c)

zip

d)

compress

60.

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

a)

less

b)

head

c)

tail

d)

cat

61.

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 ]

62.

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

a)

less

b)

head

c)

tail

d)

cat

63.

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

64.

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

65.

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

a)

Hub

b)

Wireless access point

c)

Router

d)

Switch

66.

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

67.

Which of the following software packages is a mail server?

a)

GIMP

b)

Postfix

c)

Apache

d)

Thunderbird

68.

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

69.

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

70.

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

71.

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

72.

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

73.

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

74.

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

a)

-D

b)

-M

c)

-G

d)

-N

75.

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

76.

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

77.

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

78.

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

a)

changegroup

b)

chgrp

c)

cgroup

d)

group

79.

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

80.

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