wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux Essentials

Total questions: 22

Worksheet time: 11mins

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

3.

Which of the following is NOT a Linux desktop environment?

a)

KDE

b)

XFCE

c)

Dwarf

d)

Gnome

4.

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

5.

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

a)

mv

b)

copy

c)

cp

d)

rm

6.

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

7.

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

8.

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

a)

/var

b)

/temp

c)

/dev/hdc1d2p3

d)

/usr

9.

Command used to count number of character in a file is

a)

cut

b)

grep

c)

wc

d)

count

10.

Hidden files are

a)

Files that cannot be opened by ordinary user for writing

b)

Permitted for (can be accessed) only super users

c)

Those whose ‘read’ bit is set to ‘h’

d)

Files that begin with a ‘.’

11.

Which of the following information can be viewed using "ifconfig" command in the Linux operating system?

a)

IP address

b)

Mac address

c)

MTU

d)

All of the above

12.

Which directory contains configuration files?

a)

/usr

b)

/bin

c)

/var

d)

/etc

13.

Which of the Linux command-line commands listed below

is used for directory traversal?

a)

cd

b)

dir

c)

ps

d)

dig

14.

Which of the following commands allows for moving one

level up in Linux directory tree?

a)

cd -

b)

cd ..

c)

cd /

d)

cd .

15.

when creating soft link ,if the original file has been removed it won`t be useful any more ?

a)

True

b)

False

16.

what is the Linux command used for displaying the content of the file without opening it ?

a)

ls a.txt

b)

show a.txt

c)

cat a.txt

d)

touch a.txt

17.

What does the following command do?


touch media/popular.txt

a)

It creates a file named popular.txt in your working directory

b)

It creates a file named popular.txt in the media directory.

c)

It changes the working directory to the media directory.

d)

This command is not formed correctly.

18.

You need to change some settings on your Apache server. Which is the best tool to use for logging in remotely?

a)

rsh

b)

ssh

c)

rlogin

d)

telnet

19.

Which of the following commands can be used to modify a user?

a)

moduser

b)

usermod

c)

useradd

d)

adduser

20.

Which command will display the users that are currently logged in to the system?

a)

id

b)

who

c)

about

d)

whoami

21.

Which directory typically contains log files

a)

/log

b)

/usr/log

c)

/var/log

d)

/proc/log

22.

The fdisk command is a tool used for working with the MBR partitioned disks.

True or False?

a)

True

b)

False