wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux File Permissions & Text Editors Quiz

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

What command is used to change file permissions in Linux?

a)

chown

b)

chmod

c)

passwd

d)

ls

2.

In Linux, which of the following is NOT a file permission type?

a)

Read

b)

Write

c)

Modify

d)

Execute

3.

Which command displays a user’s identity and group information?

a)

id

b)

whoami

c)

pwd

d)

su

4.

If a file has permissions set to 755, what does the groups and world can do?

a)

Read and write

b)

Read and execute

c)

Only execute

d)

No access

5.

What is the numeric equivalent of the permission rwxr--r--?

a)

744

b)

644

c)

755

d)

700

6.

What does the command chmod 777 filename do?

a)

Allows only the owner to read, write, and execute

b)

Allows everyone full access

c)

Restricts all access

d)

Gives read and execute access only

7.

What command changes the owner of a file?

a)

chown

b)

chmod

c)

passwd

d)

ls -l

8.

What does the umask command do?

a)

Sets the default file permissions

b)

Changes file ownership

c)

Lists file permissions

d)

Modifies user accounts

9.

What is the symbolic notation for removing write permission from group?

a)

g-w

b)

o-w

c)

g+x

d)

u-w

10.

What does the command chmod u+x script.sh do?

a)

Removes execute permission from the user

b)

Adds execute permission for the user

c)

Removes all permissions for the user

d)

Adds write permission for the user

11.

Which file type is represented by d in the output of ls -l?

a)

Regular file

b)

Directory

c)

Symbolic link

d)

Block device

12.

What happens when you set file permissions to 600?

a)

Only the owner can read and write

b)

Everyone can read and write

c)

Only the owner can execute

d)

The file is made public

13.

What does chgrp do in Linux?

a)

Changes file permissions

b)

Changes group ownership

c)

Changes user passwords

d)

Lists directory contents

14.

If a directory has rwxr-xr-x permissions, what does it mean?

a)

Everyone has full access

b)

Only the owner has full access, others can read and execute

c)

Others cannot access the directory

d)

The directory is private

15.

What is the purpose of the passwd command?

a)

Change file permissions

b)

Change user password

c)

Display user identity

d)

Delete a file

16.

Which Linux text editor is beginner-friendly?

a)

nano

b)

vi

c)

emacs

d)

vim

17.

How do you save and exit in vi editor?

a)

Ctrl+X

b)

Esc :wq

c)

Shift+Q

d)

Alt+F4

18.

Which of the following is NOT a mode in vi editor?

a)

Command Mode

b)

Insert Mode

c)

Replace Mode

d)

Terminal Mode

19.

What command opens a file in vi editor?

a)

nano filename

b)

vi filename

c)

gedit filename

d)

vim -w filename

20.

How do you enter Insert Mode in vi?

a)

Press Esc

b)

Press i

c)

Press x

d)

Press Ctrl+I

21.

What does dd do in vi editor?

a)

Deletes the current line

b)

Saves the file

c)

Moves to the next line

d)

Copies the current line

22.

How do you undo the last change in vi?

a)

Ctrl+Z

b)

u

c)

:undo

d)

Ctrl+U

23.

How do you delete a single character in vi?

a)

x

b)

dd

c)

yy

d)

d0

24.

What does the yy command do in vi?

a)

Deletes a line

b)

Copies a line

c)

Pastes a line

d)

Undoes a change

25.

Which key moves the cursor to the beginning of the current line in vi?

a)

0

b)

$

c)

G

d)

H

26.

What is the main difference between vi and nano editors?

a)

vi is GUI-based; nano is text-based

b)

vi is command-driven; nano is menu-driven

c)

vi does not allow text editing

d)

nano cannot be used in Linux

27.

Which LibreOffice application is used for spreadsheets?

a)

Writer

b)

Impress

c)

Calc

d)

Base

28.

Which LibreOffice tool is used for database management?

a)

Draw

b)

Calc

c)

Base

d)

Math

29.

Which command is used to search for text in vi editor?

a)

/text

b)

find text

c)

Ctrl+F

d)

search text

30.

What is the purpose of LibreOffice Impress?

a)

To create and edit spreadsheets

b)

To edit images

c)

To create presentations

d)

To manage databases