wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux-2

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.

What is the name of the file in which details of user accounts are stored?

a)

/etc/uac

b)

/etc/accounts

c)

/etc/passwd

d)

/etc/shadow

2.

What is the name of the file that stores salted/hashed versions of user passwords for authentication?

a)

/etc/uac

b)

/etc/passwd

c)

/etc/.pws

d)

/etc/shadow

3.

What file stores information about groups on Linux systems?

a)

/etc/group

b)

/etc/groupon

c)

/etc/members

4.

What file is used to give user's access so that they can utilize the sudo command?

a)

/etc/passwd

b)

/etc/sudoers

c)

/etc/shadow

d)

/home/kali

5.

How would you show a list of files and directories that are inside the current directory?

a)

cd

b)

ls

c)

cat

d)

head

6.

________ is the command used to create new directory/folder.

a)

dir

b)

mkdir

c)

cd

d)

pwd

7.

what is the Linux command segment used to append data to the "s.txt" file ?

a)

echo "Hello Kali!"

b)

echo "Hello Kali!" > s.txt

c)

echo "Hello Kali!" >> s.txt

d)

ls&passwd

8.

What is the name of a Linux command used for count the number of lines in a file ?

a)

ls a.txt

b)

cat a.txt

c)

wc -l a.txt

9.

What can be done with the 'Shebang'

a)

It's a command for on the prompt

b)

Shutdown your Linux System

c)

Controle the command interpreter in a script

d)

End a bash script

10.

What is the most used compression-command in Linux

a)

7zip

b)

tar

c)

gzip

d)

zip

11.

What can be done with the pipe (|) command?

a)

run a second command only if the first one failed

b)

run a second command only if the first command was succesfull

c)

set an exit-code

send the output of one

d)

send the output of one command to another

12.

How to redirect the output from a cat-command to a file 'testfile.txt'

a)

cat filename > testfile.txt

b)

cat filename | testfile.txt

c)

cat filename&testfile.txt

d)

cat filename&&testfile.txt

13.

What must be done before a script can be executed?

a)

Make the file executable using chmod u+x

b)

Add the shebang in the first line of the script

c)

Place the script in an executable-scripts directory like /bin

d)

Compile the script

14.

What is your favorite text editor in Linux?

4 lines
15.

Which permission amongst the following allows only groups to read and execute the file and denies all user as well as others to read, write and execute ?

a)

rwxrwx---

b)

rw-r-x--x

c)

---r-x---

d)

r-x-w-rwx