wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

LPI Linux Essentials (40 Questions)

Total questions: 40

Worksheet time: 40mins

Name
Class
Date
1.

Which of the following is an example of embedded Linux?

a)

Android

b)

Red Hat Linux

c)

Fedora

d)

Linux Mint

2.

Which Linux distribution is used as a basis for the creation of Ubuntu Linux?

a)

Arch

b)

SUSE

c)

Gentoo

d)

Debian

3.

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

a)

Pages

b)

Pico

c)

Writer

d)

Nano

4.

Which of the following programs on a Linux system could you use instead of Windows Media Player?

a)

VLC

b)

QuickTime

c)

iTunes

d)

Winamp

5.

Which of the following is TRUE about open source software?

a)

Open source software is always free

b)

Open source software is a prominent example of open collaboration

c)

Open source software is more secure than closed source software

d)

Open source software does not have any support

6.

What does GUI stand for?

a)

General User Interface

b)

Great User Interface

c)

Generic Unique Interlink

d)

Graphical User Interface

7.

Which of the following is NOT a Linux desktop environment?

a)

KDE

b)

XFCE

c)

Dwarf

d)

Gnome

8.

The output of the program date should be saved in the variable datenow. What is the correct statement to enter into the shell to set this variable?

a)

set datenow='date'

b)

date | datenow

c)

datenow='date'

d)

date > $datenow

9.

Which of the following is NOT a valid rule for naming a variable?

a)

Variable names must start with a letter

b)

Variable names must start with numbers

c)

Underscores are used instead of embedded spaces

d)

Punctuation marks are not allowed

10.

To see all the variables that are in the user's environment, use the ____ command.

a)

printer

b)

ping

c)

printenv

d)

processvar

11.

What could provide a set of electronic pages that explains a specific command available on the system?

a)

Man pages

b)

Help pages

c)

Master pages

d)

Informational pages

12.

Which of the following are not man page sections?

a)

Name

b)

Mistakes

c)

Configuration

d)

Return Value

13.

How can the current directory and its subdirectories be searched for the file named MyFile.xml?

a)

find . -name MyFile.xml

b)

grep MyFile.xml | find

c)

grep -r MyFile.xml

d)

find -P MyFile.xml | grep

14.

The "cd" command is short for ____.

a)

Check Directory

b)

Change Directory

c)

Change Disk

d)

Check Disk

15.

Which command is used to copy files from one directory to another?

a)

mv

b)

copy

c)

cp

d)

rm

16.

What does the "rm -rf" command do in Linux?

a)

Remove all files from the directory and subdirectories

b)

Remove all the files in the current directory

c)

Rename all the files in the directory and subdirectories

d)

Rename all the files in the current directory

17.

Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?

a)

tar -cf backup.tar /home

b)

tar -cf /home backup.tar

c)

tar -xf /home backup.tar

d)

tar -xf backup.tar /home

18.

Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?

a)

tar --new work.tar ./work/

b)

tar -cf work.tar ./work/

c)

tar --create work.tgz --content ./work/

d)

tar work.tar < ./work/

19.

How can the normal output of a command be written to a file while discarding the error output?

a)

command < output > /dev/null

b)

command > discard-error > file

c)

command > /dev/null 2&> 1 output

d)

command > file 2> /dev/null

20.

Which command will display the last line of the file document.txt?

a)

head -n 1 document.txt

b)

tail -n 1 document.txt

c)

tail document.txt

d)

last -n 1 document.txt

21.

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

a)

Because sort cannot sort text files, only binary files

b)

Because sort detects that both files are the same

c)

Because the file gets truncated before sort is executed

d)

Because the file gets executed before sort is truncated

22.

What is the output of the following command?

a)

anbncn

b)

abc

c)

$token$token$token

d)

{a}{b}{c}

23.

Which of the following statements may be used to access the second command line argument to a script?

a)

$arg2

b)

$2

c)

$1

d)

$var2

24.

What keyword should be used to fill in the blank in the following segment of the given shell script?

a)

do

b)

then

c)

when

d)

fi

25.

How is it possible to determine if an executable file is a shell script which is read by Bash?

a)

The file must end with .sh

b)

The first line starts with #!/bin/bash

c)

/bin/bash has to be run in debug mode

d)

Only if you are logged in as root

26.

Which of the following is NOT TRUE about the Linux Distribution Life Cycle?

a)

Linux distros are always short term releases

b)

Most of the release schedules are publicly announced months or years in advance

c)

Some developers come up with catchy names for versions

d)

The final-release version is considered to be the stable version

27.

What does HCL mean?

a)

Hindustan Computer Limited

b)

Hardware Compatibility List

c)

Hardware Computer License

d)

House Computer Linux

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/hdb3

b)

/dev/hd1b3

c)

/dev/hdc1d2p3

d)

/dev/hdc1a3

29.

After installing a new package, in which directory are you most likely to find its configuration file?

a)

/lib

b)

/etc

c)

/conf

d)

/usr

30.

Which of the following directories is often used to store log files?

a)

/var

b)

/temp

c)

/dev/hdc1d2p3

d)

/usr

31.

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

a)

echo

b)

lspci

c)

dmesg

d)

display system boot

32.

Which network interface always exists in a Linux system?

a)

lo

b)

eth0

c)

wlan0

d)

vlan0

33.

Which of the following displays network connections for Transmission Control Protocol, routing tables, and a number of network interface and network protocol statistics?

a)

net

b)

ping

c)

netstat

d)

traceroute

34.

Which of the following commands can determine the time of the last login of a given user?

a)

showlog

b)

recent

c)

last

d)

history

35.

Which command shows who is logged in and what they are doing in the system?

a)

who

b)

w

c)

whoami

d)

id

36.

Which of the following files holds the definition of the local user accounts?

a)

c/users

b)

/etc/passwd

c)

c/id

d)

c/home

37.

Which command adds the new user tux and creates the user's home directory with default configuration files?

a)

usercreate tux

b)

useradd -o default tux

c)

useradd -m tux

d)

passwd -a tux

38.

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

a)

ls -a

b)

ls -h

c)

ls -all

d)

ls -hidden

39.

What does the letter t at the end of drwxrwxrwt indicate within the following directory permissions? drwxrwxrwt 14 root root 36864 2012-03-02 11:17 /tmp

a)

The t is used to show that the directory is globally writable, but only the owner can delete their own files within the directory

b)

The directory is accessible by everyone

c)

The directory contains only temporary files that can be deleted by the system when more space is needed

d)

The files contained in this directory can only be accessed by the root user

40.

What command would you use to create a symbolic link in Linux?

a)

ln -d

b)

ln -s

c)

link -d

d)

link -s