wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux - Up to Disk Partition (Assesment)

Total questions: 53

Worksheet time: 57mins

Name
Class
Date
1.

What is the default file system for most Linux distributions?

a)

NTFS

b)

ext4

c)

FAT32

d)

HFS+

2.

Which of the following commands is used to create a directory in Linux?

a)

mkdir

b)

rmdir

c)

ls

d)

touch

3.

Which of these commands is used to display the current working directory in Linux?

a)

pwd

b)

cd

c)

dir

d)

ls

4.

Which of the following file systems is used by CentOS 7 by default?

a)

ext4

b)

NTFS

c)

Btrfs

d)

FAT32

5.

Which command is used to change file permissions in Linux?

a)

chmod

b)

chown

c)

ls

d)

mv

6.

What does the ls -l command display?

a)

List of files

b)

Long listing format of files

c)

Detailed file content

d)

Size of files

7.

What is the purpose of the tar command in Linux?

a)

Compress files

b)

Archive files

c)

Uncompress files

d)

Create directories

8.

Which command is used to terminate a Linux session?

a)

exit

b)

logout

c)

shutdown

d)

quit

9.

What is the Linux kernel?

a)

A hardware component

b)

The core of the operating system

c)

A file system

d)

A graphical interface

10.

Which of the following is a Linux text editor?

a)

nano

b)

Notepad

c)

WordPad

d)

Microsoft Word

11.

Which of these commands is used to view the contents of a file in Linux?

a)

cp

b)

mv

c)

cat

d)

touch

12.

In Linux, what command is used to display a list of users currently logged into the system?

a)

who

b)

users

c)

ls

d)

id

13.

What is the function of the fdisk command in Linux?

a)

Manage partitions

b)

View file contents

c)

Display system info

d)

Archive files

14.

Which of the following command is used to compress files using gzip?

a)

zip

b)

gzip

c)

bzip2

d)

unzip

15.

Which of the following is NOT a valid Linux user account type?

a)

Normal user

b)

Root user

c)

System user

d)

Admin user

16.

Which command is used to move or rename files in Linux?

a)

mv

b)

cp

c)

rm

d)

touch

17.

What does the chmod 755 command do?

a)

Sets read and write permissions for the user and read-only for others

b)

Sets full permissions for the user and read and execute permissions for others

c)

Sets read-only permissions for everyone

d)

Sets execute permissions for the user

18.

Which of the following commands is used to display disk usage statistics in Linux?

a)

df

b)

du

c)

ls

d)

fdisk

19.

What is the file extension for a compressed tar archive in Linux?

a)

.tar.gz

b)

.zip

c)

.tar.bz2

d)

.rar

20.

In Linux, what command is used to view all running processes?

a)

ls

b)

ps

c)

top

d)

process

21.

What command is used to display the current system date and time in Linux?

a)

date

b)

time

c)

clock

d)

datetime

22.

What is the purpose of the lsblk command in Linux?

a)

List block devices

b)

List processes

c)

List files

d)

List network interfaces

23.

What does the cat command do when used with a file in Linux?

a)

Copies the file

b)

Displays the content of the file

c)

Creates the file

d)

Deletes the file

24.

What does the grep command do in Linux?

a)

Searches for a pattern in a file

b)

Views a file

c)

Deletes a file

d)

Compresses a file

25.

Which of the following commands is used to check disk space usage on a Linux system?

a)

df

b)

du

c)

lsblk

d)

free

26.

What is the function of the mv command in Linux?

a)

Move or rename files

b)

View files

c)

Compress files

d)

Delete files

27.

Which of the following is a valid partition type in Linux?

a)

Primary

b)

Extended

c)

Logical

d)

All of the above

28.

What command is used to display the list of all mounted file systems in Linux?

a)

mount

b)

df

c)

lsblk

d)

fdisk

29.

What is the default shell used in most Linux distributions?

a)

C shell

b)

Z shell

c)

Bourne-Again Shell (Bash)

d)

Fish shell

30.

Which of the following is used for Logical Volume Management (LVM) in Linux?

a)

fdisk

b)

lvcreate

c)

pvcreate

d)

vgcreate

31.

The command used to list all files in a directory is (a)   .

32.

The file system used by most Linux distributions is (a)   .

33.

The root user in Linux has the highest level of (a)   .

34.

The command to view all mounted file systems is (a)   .

35.

In Linux, the (a)   command is used to copy files or directories.

36.

The (a)   command is used to change the owner of a file.

37.

The Linux file system structure begins with the (a)   directory.

38.

The (a)   command is used to compress files using the gzip algorithm.

39.

The Linux partitioning tool used for creating and managing partitions is (a)   .

40.

The command used to view currently running processes in Linux is (a)   .

41.

Create a directory named projects in your home directory. Then, create a text file named notes.txt inside the projects directory.
Write the commands used. (5 Marks)

4 lines
42.

Using the tar command, create an archive of the projects directory, compress it with gzip, and then uncompress the archive.
Write all the commands used. (5 Marks)

4 lines
43.

Change the file permissions of a file named file1.txt so that only the user has read and write permissions, and others have no permissions.
Provide the command. (5 Marks)

4 lines
44.

List all the disk partitions on the system using fdisk.
Write the command used and describe the output. (5 Marks)

4 lines
45.

Create a new partition on /dev/sdb, format it with the ext4 filesystem, and mount it to the /mnt/data directory. Write the commands used for this task. (5 Marks)

4 lines
46.

Explain the basic structure of the Linux file system.

4 lines
47.

What is the purpose of the grep command in Linux, and how would you use it to search for a word in a file? (3 Marks)

4 lines
48.

What is the significance of the /etc/passwd file in Linux? (3 Marks)

4 lines
49.

Describe the steps to create a new user and set up a password for that user in Linux. (3 Marks)

4 lines
50.

What are the different types of partitions available in Linux? Explain each briefly. (3 Marks)

4 lines
51.

The command rm -rf is used to delete a file or directory and its contents recursively.

a)

True

b)

False

52.

The chmod command is used to change the ownership of a file in Linux.

a)

True

b)

False

53.

The root user in Linux has the highest level of privileges and can perform any administrative task.

a)

True

b)

False