wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux Basics

Total questions: 16

Worksheet time: 6mins

Name
Class
Date
1.

The Kernel in Linux OS sits in between Hardware and application software

a)

True

b)

False

2.

Following command can be used to list all the directory contents including hidden files :

a)

ls -l

b)

ls -a

c)

ls -t

d)

ls -r

3.

Which command is used for creating folders in linux ?

a)

touch

b)

cat

c)

mkdir

d)

mv

4.

Which command can be used to check Linux distribution ?

a)

whoami

b)

lsb_release

c)

id

d)

find

5.

How to list all the groups a user belongs to ?

a)

id

b)

whoami

c)

which group

d)

sudo

6.

Which of the following is not a Linux file permission?

a)

Read

b)

Write

c)

Execute

d)

Rename

7.

Which command can be used to push the changes to Git branch ?

a)

git commit

b)

git remote

c)

git add

d)

git push

8.

Git can host only public repositories:

a)

True

b)

False

9.

Which command can be used to switch to one branch from another branch ?

a)

git clone

b)

git checkout

c)

git remote

d)

git add

10.

Which directory in linux stores binary files which can only be run by root or sudo user ?

a)

etc

b)

bin

c)

dev

d)

sbin

11.

Which directory should be used to mount the storage devices, either temporarily or permanently ?

a)

/mnt

b)

/etc

c)

/opt

d)

/srv

12.

Which directory mainly stores log files related to system ?

a)

/opt

b)

/etc

c)

/var

d)

/tmp

13.

Which command is used to delete an user in linux?

a)

rm

b)

rm-user

c)

userdel

d)

delete-user

14.

Which amongst the following is not a valid shell in linux ?

a)

bash

b)

zsh

c)

wsh

d)

ksh

15.

Which of the following permissions allow only group members to read and execute the file and denies everything for anyone else ?

a)

rwxrwx---

b)

rw-r-x--x

c)

---r-x---

d)

r-x-w-rwx

16.

How to make a file executable the right way?

a)

chmod 777

b)

chmod a-x

c)

chmod +x

d)

chmod 400