wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux - Week 3

Total questions: 16

Worksheet time: 8mins

Name
Class
Date
1.

What are the process states in Linux?

a)

Ready: The process is created and is ready to run 

b)

Running: The process is being executed

c)

Blocked or wait: Process is waiting for input from the user

d)

Zombie: Process terminated, but the information still exists in the process table

2.

Which affirmation is TRUE:

a)

Is: This command list out all the files in the directed folder

b)

cd: This command is used to change to the directory you want to work from the present directory

c)

mkdir: This command is used to create an entirely new directory

d)

rmdir: This command is used to remove a directory from the system

3.

Check correct linux networking and troubleshooting commands:

a)

Hostname

b)

Ping

c)

Netstat

d)

Code

4.

Which are user-based permission groups in Linux?

a)

All Users

b)

Group

c)

Admin

d)

Owner

5.

What is the tail command in Linux?

a)

Print the last N number of lines of the given data, it prints 10 lines by default

b)

Print the first N number of lines of the given data, it prints 10 lines by default

c)

Print only the last N number of lines of the given data

d)

Print only the first N number of lines of the given data

6.

Enlist some Linux to file content commands?

a)

head: Display top lines of the file

b)

tail: Display the last lines of the file

c)

cat: Concatenate more than 2 files

d)

more: Displays the content in pager form to view in the terminal

7.

Which Linux command is used to list all running processes:

a)

Hostname

b)

Echo

c)

Ps

d)

Man

8.

How to uninstall the libraries in Linux?

a)

apt search (program name)

b)

apt purge (program name) 

c)

apt upgrade (program name) 

d)

apt remove (program name) 

9.

What is cat > filename.txt command doing?

a)

copy files or directories and their content

b)

find a file in the database system

c)

creates a new file 

d)

find files in the current directory 

10.

chmod -wx filename is used to:

a)

to add write and executable permissions 

b)

to take out executable permissions

c)

to take out write and executable permissions

d)

to add write permissions

11.

rm command is used to: - all correct

a)

is used to delete files within a directory 

b)

the user performing this command should have write permissions

c)

you can remove multiple files

d)

removes the file(s) and you can’t undo it

12.

grep command is used for:

a)

lets you find a word by searching through all the texts in a specific file

b)

report the system’s disk space usage

c)

can find a file in the database system

d)

search for files within a specific directory

13.

Command to install a package:

a)

sudo install package_name 

b)

sudo grep install package_name 

c)

grep install package_name

d)

sudo apt install package_name 

14.

The d in ‘drw-rw-r–‘ means:

a)

implies that we have selected a directory

b)

implies that we have selected a file 

c)

implies that we have permissions to execute the file

d)

implies that the permissions are for admin user 

15.

cp command:

a)

displays content in reverse order 

b)

renames files in Linux

c)

copy files or directories and their content

d)

moves files and directories from one directory to another 

16.

chmod -R 777 filename is used to:

a)

to remove rwxrwxrwx permissions from the file 

b)

to add rwxrwxrwx permissions to the file 

c)

to add rwx permissions

d)

to remove rwx permissions