wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux Pro Chapters 1-3

Total questions: 44

Worksheet time: 23mins

Name
Class
Date
1.

Users are complaining that the clocks for their operating systems do not match the current time for the location in which they live.

Which of the following server roles is BEST for correcting this issue?

a)

Proxy

b)

NTP

c)

DHCP

d)

SSH

2.

Users are complaining that they are unable to connect to any servers or the internet. Based on the symptoms they describe, you suspect that the users are not being assigned the correct IP addresses.

Which of the following server roles would be the BEST role to work with to correct this issue?

a)

Proxy

b)

DHCP

c)

SNMP

d)

VPN

3.

Your company develops applications to run on Linux systems. You currently have four teams working on a different aspect of the same application.

Which of the following server roles would give you the BEST method for testing all team members' code without effecting your part of the project or your operating system and personal files?

a)

Clustering

b)

Containers

c)

Load balancer

d)

Monitoring

4.

Dan, a system administrator, wants to simplify the provisioning and disabling of user accounts. 

Which of the following server roles should Dan install and configure?

a)

Proxy

b)

Containers

c)

Load balancer

d)

Authentication server

5.

Your company recently setup a VPN and wants to use a digital certificate for authentication instead of a pre-shared key.

Which of the following server roles would allow the company to provide this functionality internally instead of using an external provider?

a)

SSH

b)

Certificate Authority

c)

Name server

d)

SNMP

6.

Alex, a webmaster, is implementing an order processing system on the company's website. 

Which of the following server roles should Alex implement with the order processing application?

a)

Clustering

b)

Monitoring

c)

Database

d)

VPN

7.

Your company uses both Linux desktops and Windows desktops. 

Which of the following server roles should be used to provide a central location for users of both operating systems to share files?

a)

Proxy

b)

Authentication server

c)

File servers

d)

Database

8.

Which of the following is the primary role of a mail transfer agent (MTA)?

a)

Control the bandwidth used by mail user agent (MUA).

b)

Transfer mail to a print server queue.

c)

Provide redundant online storage for the mail sever.

d)

Store messages so they can be downloaded or send email to a destination MTA.

9.

A technician has been given a work order to install the Apache webserver on a system configured with a YUM repository.  Which of the following commands will install the webserver?

a)

rpm -ivh apache2

b)

yum install httpd

c)

yum install apache2

d)

dnf install httpd

10.

Which of the following is the standard shell for MOST Linux computers?

a)

Bourne shell

b)

C-shell

c)

Bourne-again shell

d)

tcsh

11.

A Linux user has an executable file named ni that can save a snapshot of network information with the date and time in a log file. The executable ni file is in the /root directory, and /root is the current working directory. Which of the following commands would run the executable file? (Select TWO).

a)

/root/ni

b)

ni

c)

source ni

d)

./ni

e)

exec ni

12.

Which of the following commands should a Linux user enter to see a list of all the commands the user recently ran at the command prompt?

a)

chsh

b)

uname

c)

clear

d)

history

13.

Which of the following is displayed when the uname -a command is run?

a)

All system information

b)

The current username

c)

The current working directory

d)

The names of files and directories in the current directory

14.

Which of the following commands searches man pages for a specific keyword? (Select THREE.)

a)

slocate

b)

whatis

c)

man -k

d)

find

e)

apropos

15.

Which of the following man page sections shows a list of options available for a Linux command and explains what the options do?

a)

TITLE

b)

NAME

c)

SYNOPSIS

d)

DESCRIPTION

16.

Which of the following vi key combinations should you press while in Insert Mode to save the file you are working on and quit?

a)

<Esc>:q

b)

<Esc>S

c)

<Esc>s

d)

<Esc>:wq

17.

While in vi Command Mode, you copy a whole line of text to the general buffer. You then navigate to a different location in the file. Which of the following commands will paste the copied text?

a)

cc

b)

dw

c)

u

d)

p

18.

Which of the following nano editor keyboard shortcuts will display help text which includes a list of all keyboard shortcuts.

a)

M-A (Alt+A or Esc+A)

b)

^G (Ctrl+G)

c)

^O (Ctrl+O)

d)

M-Space (Alt+Space or Esc+Space)

19.

Which of the following commands creates a shortcut that can be used to run the tail -f /var/log/messages command?

a)

export sysmesg="tail -f /var/log/messages"

b)

alias sysmesg="tail -f /var/log/messages"

c)

export alias="tail -f /var/log/messages"

d)

env alias="tail -f /var/log/messages"

20.

Which of the following actions can be used to define a persistent alias?

a)

Add the command defining the alias to the appropriate shell configuration file.

b)

Use the alias command at the shell prompt with the -P option.

c)

Add the command defining the alias to the /etc/default/alias.conf file.

d)

Add the command defining the alias to the $ALIAS environment variable.

21.

Which of the following commands gives the same results as cat < turbo?

a)

cat turbo

b)

cat &> turbo

c)

cat 1> turbo

d)

cat 2> turbo

22.

Joe, a bash script developer, is trying to debug a shell script named myscript. Which of the following commands would record the output of the script in a text file?

a)

myscript | echo | testfile.txt

b)

echo myscript >> testfile.txt

c)

myscript >> testfile.txt

d)

myscript | testfile.txt

23.

Which of the following commands utilize command substitution?  (Choose TWO.)

a)

echo -e "sort -r names.txt"

b)

myvar=$(sort -r names.txt)

c)

myvar="echo 'sort -r names.txt'"

d)

myvar=`sort -r names.txt`

24.

Which of the following commands displays an expanded listing that includes the owner and size of all the files in the /etc directory?

a)

ls -ae /etc

b)

ld -ae /etc

c)

ls -al /etc

d)

dir -al /etc

25.

Which of the following commands will move a file from one location to another?

a)

move

b)

mv

c)

cp -d

d)

copy -r

26.

Which of the following commands will display the attributes of a /boot/grub/grub.conf file?

a)

lsattr /boot/grub/grub.conf

b)

ls -l /boot/grub/grub.conf

c)

cat /boot/grub/grub.conf

d)

vi /boot/grub/grub.conf

27.

A user attempts to view the contents of a directory, but the output of the ls -l command scrolls beyond the limit of one console window.

Which of the following commands would allow the users to see the full listing of the directory?

a)

ls -p

b)

ls -l | less

c)

ls -paged

d)

ls -l >> less

28.

Which of the following commands can be used to combine the content of three files into a single text stream?

a)

cat

b)

cut

c)

nl

d)

pr

29.

Which of the following is a characteristic of a hard link?

a)

Valid inode for the file data even if the original file is deleted.

b)

Distinct (non-duplicate) inode.

c)

Lowercase L (l) as the first character in the permission string.

d)

Works across volumes and file systems.

30.

Which of the following is a characteristic of a symbolic link?

a)

Valid pointer to the linked file's data even if the original linked file is deleted.

b)

Indistinguishable from the original linked file.

c)

Distinct (non-duplicate) inode.

d)

Dash (-) as the first character in the permission string.

31.

Which of the following paths represents the root directory?

a)

/boot

b)

/root

c)

/home/root

d)

/

32.

According to the Filesystem Hierarchy Standard (FHS), which of the following directories contains information about the system state and processes?

a)

/tmp

b)

/bin

c)

/root

d)

/proc

33.

Which of the following directories is the home directory for the root user account?

a)

/root

b)

/

c)

/home

d)

/home/root

34.

Which of the following commands finds files with the .txt extension in the /home/gshant directory?

a)

find /home/gshant -type f -name '*text*'

b)

find /home/gshant -name '*.txt'

c)

find /home/gshant -name '*txt*'

d)

find /home/gshant -type d -name '*text*'

35.

Which of the following utilities would you use to search a path for files that match a given name?

a)

cat

b)

locate

c)

tail

d)

type

36.

Which of the following commands displays all lines within the MTS file that have the word "world" within them?

a)

grep world MTS

b)

grep MTS world

c)

find world MTS

d)

find MTS world

37.

Which of the following commands would display this output?

Frank said, "Linux is fun!"

a)

echo Frank said, "Linux is fun\!"

b)

echo Frank said, "Linux is fun!"

c)

echo "Frank said," "Linux is fun!"

d)

echo Frank said, \"Linux is fun\!\"

38.

Which sed flag or option allows you to exchange one string of characters for another string of characters in a file?

a)

-f

b)

d

c)

s

d)

g

39.

Which of the following sed commands replaces all the occurrences of the string foo with the string bar in myfile.txt?

a)

sed -e 's/foo/bar/' myfile.txt

b)

sed -e '/foo/bar/g' myfile.txt

c)

sed -e 's/foo/bar/g' myfile.txt

d)

sed -e 'sub/foo/bar/glob' myfile.txt

40.

Which of the following directories MUST be part of the partition that holds the root (/) directory? (Select THREE).

a)

/proc

b)

/bin

c)

/usr

d)

/var

e)

/etc

41.

You have a Linux system with 8 GB of RAM installed. You plan to use this system as a server.

How much space should you plan to partition for the swap file?

a)

8 GB

b)

12 GB

c)

4 GB

d)

6.5 GB

42.

For which of the following directories should you create separate partitions? (Select TWO).

a)

/home

b)

/bin

c)

/var

d)

/lib

43.

During installation, you need to make sure there is plenty of hard disk space allocated to the partition that is going to hold the entire Linux operating system.

Which of the follwoing is the BEST mount point for this partition?

a)

/home

b)

/

c)

/boot

d)

/usr

44.

Which of the following character sets is a variable length encoding standard of Unicode that uses one to four 8-bit bytes to support many languages and most commonly used on Linux?

a)

LC_ALL

b)

UTF-8

c)

LANG

d)

ASCII