wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux Fundamentals Review

Total questions: 130

Worksheet time: 1hrs 6mins

Name
Class
Date
1.

What is the purpose of configuring systems with or without external peripherals?

a)

To enhance system security

b)

To improve system aesthetics

c)

To ensure compatibility with various devices

d)

To increase processing speed

2.

Which tool is used to list various hardware information in Linux?

a)

lsusb

b)

grep

c)

nano

d)

chmod

3.

What is the difference between coldplug and hotplug devices?

a)

Coldplug devices can be connected while the system is running, hotplug cannot

b)

Hotplug devices can be connected while the system is running, coldplug cannot

c)

Coldplug devices are faster than hotplug devices

d)

Hotplug devices are more secure than coldplug devices

4.

Which command is used to change the boot target or runlevel in Linux?

a)

shutdown

b)

reboot

c)

systemctl

d)

ls

5.

What is the role of the superuser in Linux?

a)

To manage network settings

b)

To perform administrative tasks

c)

To create user interfaces

d)

To develop software applications

6.

What is the purpose of allocating filesystems and swap space in Linux installation?

a)

To increase the speed of the system

b)

To separate partitions or disks

c)

To enhance the graphical interface

d)

To improve network connectivity

7.

Which feature rich Linux boot loader is commonly installed and can be configured?

a)

BOOTSTRAP

b)

GRUB/GRUB2

c)

NTLDR

d)

SYSLINUX

8.

Which package management tool is used for managing Debian-based software?

a)

YUM

b)

APT

c)

DNF

d)

Zypper

9.

What is one of the tasks involved in managing Red Hat-based software?

a)

Using APT for package management

b)

Installing, upgrading, and removing packages using RPM

c)

Configuring the boot loader

d)

Allocating swap space

10.

Which command is used to list directory contents in Unix?

a)

cd

b)

ls

c)

cat

d)

rm

11.

Which command is used to copy files and directories recursively in Linux?

a)

cp -r

b)

mv

c)

rm -r

d)

ls

12.

What is the function of the 'find' command in Unix?

a)

To locate and act on files based on type, size, or time

b)

To delete files

c)

To change file permissions

d)

To list directory contents

13.

How can you redirect standard output to a file in Linux?

a)

Using the 'ls' command

b)

Using the 'cd' command

c)

Using the '>' operator

d)

Using the 'rm' command

14.

What is the purpose of using pipes in Unix?

a)

To delete files

b)

To send the output of one command to the input of another

c)

To change file permissions

d)

To list directory contents

15.

What is the default priority of a job that is created in Linux?

a)

High

b)

Low

c)

Normal

d)

Critical

16.

Which command is used to change the priority of a running process in Linux?

a)

chmod

b)

nice

c)

grep

d)

vi

17.

What tool can be used to search text files using regular expressions?

a)
search
b)
locate
c)
grep
d)
find
18.

What command is used to create partitions and filesystems in Linux?

a)

mkfs

b)

fdisk

c)

mount

d)

ls

19.

Which filesystem types can be created using mkfs?

a)

ext3, ext4, nfs

b)

ntfs, fat32, hfs

c)

btrfs, zfs, xfs

d)

apfs, exfat, reiserfs

20.

What is the purpose of monitoring free space and inodes in a filesystem?

a)

To increase system speed

b)

To maintain filesystem integrity

c)

To enhance security

d)

To improve user interface

21.

How can you configure a filesystem to mount on bootup?

a)

Edit /etc/fstab

b)

Use the mount command

c)

Modify /etc/passwd

d)

Change /etc/hosts

22.

What is the purpose of setting up a disk quota for a filesystem?

a)

To limit user access

b)

To manage disk usage

c)

To enhance performance

d)

To increase security

23.

What is one of the tasks involved in managing file permissions and ownership according to best practices?

a)

Create symbolic links

b)

Use the group field to grant file access to group members

c)

Discuss workplace skills

d)

Identify softlinks

24.

What is the difference between copying and linking files?

a)

Copying creates a new file, linking does not

b)

Linking creates a new file, copying does not

c)

Both create new files

d)

Neither creates new files

25.

What is the purpose of using access modes such as suid, sgid, and the sticky bit?

a)

To create symbolic links

b)

To maintain security

c)

To discuss legal requirements

d)

To identify softlinks

26.

To log out of the shell program, use...

a)

logout

b)

exit

c)

df

d)

close

27.

Get rid of a mess of useless information on the terminal screen

a)

cls

b)

clear

c)

wipe

d)

blank

28.

A partition that is used to form virtual memory is called ___________.

a)

RAM space

b)

Test space

c)

Swap space

d)

Normal space

29.

A Linux distribution is a collection of, usually open source, software on top of a Linux kernel

a)

True

b)

False

30.

What is the core of a Linux Operating System?

a)

Kernel

b)

Shell

c)

Command

d)

GUI

31.

What is Shell?

a)

Main processing Unit

b)

Default interface to Linux

c)

Interpreter/bridge between hardware and the operating system

d)

A program which enables you to access a shell

32.

What is Terminal?

a)

A program which enables you to access a shell

b)

Default interface to Linux

c)

Interpreter/bridge between hardware and the operating system

d)

The hard candy coating on an M&M

33.

Which of the following commands in Linux is used to display information about files and directories contained within the current working directory?

a)

pwd

b)

ls

c)

cat

d)

ps

34.

A Linux command displaying an absolute path to (i.e. full filename of) the current working directory is called:

a)

mv

b)

pwd

c)

rm

d)

dir

35.

What is the name of a Linux command used for renaming files and directories?

a)

rm

b)

ps

c)

mv

d)

ls

36.

Which of the Linux command-line commands listed below is used for directory creation?

a)

touch

b)

cd

c)

mkdir

d)

create

37.

What is a characteristic of a hard link in a Linux file system?

a)

It can link to files in different file systems

b)

It has a different inode number than the original file

c)

It has the same inode number than the original file

d)

It breaks when the original file is deleted

38.

What is a characteristic of a soft link (symbolic link) in a Linux file system?

a)

It can link to files across different file systems

b)

It has the same inode number as the original file

c)

It increases the link count of the original file

d)

It remains valid if the original file is deleted

39.

What is the correct syntax for creating a symbolic link in Linux

a)

ln original_file symbolic_link_name

b)

ln -s original_file symbolic_link_name

c)

ln -l symbolic_link_name original_file

d)

ln -l original_file symbolic_link_name

40.

What directory contains files related to booting the system.

a)

/boot

b)

/dev

c)

/proc

d)

/sys

41.

What directory contains mostly plaintext configuration files for the system?

a)

/tmp

b)

/var

c)

/dev

d)

/etc

42.

What directory contains system binaries meant for administrators?

a)

/bin

b)

/var/run

c)

/dev/null

d)

/usr/sbin

43.

Where do removable automount devices get mounted?

a)

/mnt

b)

/boot

c)

/home

d)

/media

44.

What directory contains things like logs and databases and is, therefore, often put on its own drive or partition?

a)

/proc

b)

/tmp

c)

/var

d)

/usr

45.

What directory is the kernel stored in?

a)

/var/kern

b)

/etc/linux

c)

/dev

d)

/boot

46.

Where is a standard user's home directory located?

a)

/home/user_name

b)

/user_name

c)

/var/user_name

d)

/Users/user_name

47.

Where is the super user's home directory located?

a)

/

b)

/root

c)

/home/root

d)

/etc/root

48.

Which directory contains installed software programs and libraries?

a)

/dev

b)

/soft

c)

/usr

d)

/etc

49.

What is the name for the full path to a directory or file?

a)

Recursive Path

b)

Relative Path

c)

Absolved Path

d)

Absolute Path

50.

What is the topmost level directory ( / ) on Linux called?

a)

home

b)

trunk

c)

root

d)

foot

51.

What single character can be used to refer to the active user's home directory?

a)

^

b)

$

c)

~

d)

there is none

52.

What command is used to move between directories at the Linux terminal or console?

a)

mv

b)

cd

c)

pwd

d)

rd

53.

What command can be used to show the absolute path to the directory that you are currently in?

a)

pcd

b)

ppd

c)

pud

d)

pwd

54.

If I am in the /home/tator directory and run the command cp Desktop/file1.txt Desktop/file2.txt I am using what type of path for the files?

a)

Parent

b)

Absolute

c)

Relative

d)

Cousin

55.

What command can be used to move to the parent of the current directory?

a)

cd .

b)

cd ..

c)

cd ...

d)

upone

56.

Type the command to perform an action as super user

(a)  

57.

What makes a file or folder hidden on Linux?

a)

the -h attribute

b)

having a period ( . ) at the beginning of its name

c)

the "hidden" command

d)

no files or folders can be hidden on Linux

58.

What directory is the kernel stored in?

a)

/var/kern

b)

/etc/linux

c)

/dev

d)

/boot

59.

What does the 'r' permission stand for in Linux file permissions?

a)

Rename

b)

Read

c)

Run

d)

Remove

60.

Which command is used to change file permissions in Linux?

a)

chown

b)

chmod

c)

chgrp

d)

chperm

61.

In the octal representation of permissions, what does the number '7' represent?

a)

Read and write

b)

Read, write, and execute

c)

Write and execute

d)

Execute only

62.

If a file has permissions set to 644, what permissions does the group have?

a)

Read and write

b)

Read only

c)

Write only

d)

Execute only

63.

How would you change the permissions of a file to allow the owner to read and write, the group to read, and others to have no permissions using chmod?

a)

chmod 640 filename

b)

chmod 750 filename

c)

chmod 644 filename

d)

chmod 600 filename

64.

Explain the significance of the three sets of permissions in Linux file systems.

a)

They determine the file size.

b)

They control who can read, write, or execute the file.

c)

They define the file type.

d)

They set the file's creation date.

65.

A file has permissions set to 755. What does this mean for the 'others' category?

a)

No permissions

b)

Read and execute

c)

Read, write, and execute

d)

Write and execute

66.

Why might a system administrator choose to set a directory's permissions to 700?

a)

To allow everyone to access the directory

b)

To restrict access to only the owner

c)

To allow group members to modify the directory

d)

To make the directory read-only for everyone

67.

How would you verify the current permissions of a file named 'document.txt'?

a)

ls -l document.txt

b)

chmod document.txt

c)

chown document.txt

d)

chgrp document.txt

68.

Which chmod command sets the "other" permissions on a file to read, write, and execute?

a)

A) chmod 776 file

b)

B) chmod 777 file

c)

C) chmod 775 file

d)

D) chmod 774 file

69.

What does the chmod command do?

a)
The chmod command changes file and directory permissions.
b)
The chmod command deletes files.
c)
The chmod command creates new directories.
d)
The chmod command compresses files.
70.

What does the command "su" do when executed in a terminal?

a)

A. Switches to the root user without changing the current directory.

b)

B. Switches to the root user and changes to the root user's home directory.

c)

C. Switches to the specified user without changing the current directory.

d)

D. Switches to the specified user and keeps the environment variables unchanged.

71.

Explain the significance of the three sets of permissions in Linux file systems.

a)

They determine the file size.

b)

They control who can read, write, or execute the file.

c)

They define the file type.

d)

They set the file's creation date.

72.

What does the command su - do when executed in a terminal?

a)

A. Switches to the root user without changing the current directory.

b)

B. Switches to the root user and changes to the root user's home directory.

c)

C. Switches to the specified user without changing the current directory.

d)

D. Switches to the specified user and keeps the environment variables unchanged.

73.

What is utility is a menu-driven program that is used to create, modify, or delete partitions on a storage drive?

a)

mkdir

b)

fdisk

c)

mkfs

d)

chown

74.

The command is used to build a Linux file system on a device, which is usually a drive partition

a)

chmod

b)

mkdir

c)

mkfs

d)

htop

75.

Where is a configuration file that stores information about storage devices and partitions and where and how the partitions should be mounted.

a)

/mnt/sdb

b)

/etc/mnt

c)

/mnt/data

d)

/etc/fstab

76.

What does LVM stand for?

a)

Logical Volume Master

b)

Logical Volume Manager

c)

Logic Volume Manage

d)

Logical Virtual Manager

77.

What directory contains files related to booting the system.

a)

/boot

b)

/dev

c)

/proc

d)

/sys

78.

What directory contains mostly plaintext configuration files for the system?

a)

/tmp

b)

/var

c)

/dev

d)

/etc

79.

Which directory contains installed software programs and libraries?

a)

/dev

b)

/soft

c)

/usr

d)

/etc

80.
Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO.)
a)
ext3
b)
JFS
c)
ext2
d)
XFS
e)
procfs
81.

What is the purpose of the mkfs command in Linux?

a)

To create, modify, or delete partitions

b)

To update the kernel with changes in the partition table

c)

To build a Linux file system on a specified device

d)

To list existing partitions

82.

Which protocol enables file sharing between systems on a network and is commonly used in Unix and Linux environments?

a)

Network File System (NFS)

b)

Server Message Block (SMB)

c)

Common Internet File System (CIFS)

d)

mdadm

83.

Which filesystem offers built-in capabilities for copy-on-write, snapshots, pooling, and logical volumes?

a)

XFS

b)

EXT4

c)

btrfs

d)

JFS

84.

Which of the following directories is specified by Filesystem Hierarchy Standard (FHS) as a mount point for removable media, such as USB storage media, DVDs, and CD-ROMs?

a)

/media

b)

/mnt

c)

/mount

d)

/

85.

You have partitioned and formatted a new sdc hard drive. You want to mount the first partition on sdc to directory /mnt/newdisk.

Which command will perform the mount correctly?

a)

mount /dev/sdc1 /mnt/newdisk

b)

mount /dev/sdc /mnt/newdisk

c)

mount /mnt/newdisk /dev/sdc1

d)

mount /sdc1 /mnt/newdisk

86.

A number of new file systems have been added to a Linux server and you want to activate them. You also do not want to bring the server down.

What command will activate the file systems without bringing the server down?

a)

mount -r

b)

mount -a

c)

init q

d)

mount -t

87.

Which of the following commands shows the number of inodes, number of free inodes, and number of used inodes?

a)
ls -l
b)
df -h
c)
df -i
d)
du -sh
88.

What command would you enter at the command prompt to list all files and directories in a directory, along with file size and the total amount of space taken up by the directory?

a)

ls -l

b)

df -h

c)

find

d)

du -ac

89.

Which command do you use to verify the integrity of a filesystem?

a)
fsck
b)
checkdisk
c)
verifyfs
d)
chkfs
90.

What does the command edquota used for?

a)
To edit user quotas on a filesystem.
b)
To monitor system performance metrics.
c)
To delete user files from the system.
d)
To create new user accounts.
91.

Which of the following commands displays the disk usage and quota limits for the development group?

a)
ls -l development
b)
du -sh development
c)
quota -g development
d)
df -h
92.

Which command displays a summary of the disc usage and quotas for the specified file systems, including the specific number of files and space by user.

a)

repquota

b)

quota

c)
du
d)
df
93.

Choose the BEST explaination about ~/ .bash_profile

a)

It is the online help for Linux command

b)

It is executed once the user log in and then receives the shell

c)

It is a database of the installed shell

94.

What is the primary function of the Linux kernel?

a)

Run applications

b)

Manage system resources

c)

Connect to the internet

d)

Provide a graphical user interface

95.

What does the 'echo' command do in Linux?

a)

Display a message

b)

Change the password

c)

List files in a directory

d)

Show system information

96.

Where are system-wide configuration files typically stored in a Linux system?

a)

/bin

b)

/etc

c)

/lib

d)

/tmp

97.

Which command displays the current username?

a)

whoami

b)

id -u

c)

echo $USER

d)

logname

98.

Which commands show your current shell type?

a)

echo $0

b)

echo $SHELL

c)

bash

d)

echo /$0

99.

What is the default shell used in most Linux distributions?

a)

bash

b)

zhh

c)

chs

d)

sh

100.

Which command allows you to switch users without logging out

a)

uname

b)

uname -i

c)

su

d)

pwd

101.

Which command prints system information?

a)

su -i

b)

uname

c)

whoami

d)

exec

102.

How do you see the list of commands that have been run on the system?

a)

chsh

b)

clear

c)

hist -a

d)

history

103.

How do you change the default shell for a user?

a)

chsh -u

b)

chsh -s /bin/ksh [username]

c)

chsh -s /bin/ksh -all

d)

csh -s /bin/ksh [username]

104.

How is export used in linux?

a)
The 'export' command is used to set environment variables in Linux.
b)
The 'export' command is used to manage user permissions in Linux.
c)
The 'export' command is used to compile programs in Linux.
d)
The 'export' command is used to delete files in Linux.
105.

If your shell window looks like this picture. Which two commands will display the content of the "hosts" file on your screen (stdout)?

a)

cat hosts

b)

cat /etc/hosts

c)

ls hosts

d)

ls -l hosts

106.

What is a variable?

a)

A fixed value in a program

b)

A storage location identified for data that can change

c)

A type of hardware component

d)

A constant in mathematics

107.

What does an environment variable provide?

a)

Hardware specifications

b)

Network configurations

c)

Settings and configurations

d)

User interface design

108.

What is a shell variable?

a)

A variable inherited by child shells and processes

b)

A variable that is not inherited by child shells and processes

c)

A variable used in web development

d)

A variable that stores user passwords

109.

What is a local variable?

a)

A variable that is always available

b)

A variable defined in scripts and script functions

c)

A variable used for network settings

d)

A variable that stores system logs

110.

What does the HISTSIZE variable determine?

a)

The size of the user's home directory

b)

The number of lines or commands stored in a history list

c)

The number of active users

d)

The size of the system memory

111.

What does OLDPWD represent?

a)

The current working directory

b)

The previous directory the user accessed

c)

The user's password

d)

The user's email address

112.

What does the HISTFILE variable store?

a)

User passwords

b)

Past commands

c)

User emails

d)

System logs

113.

Which variable is typically defined in scripts and does not exist after the script is run?

a)

Environment variable

b)

Shell variable

c)

Local variable

d)

User variable

114.

What does the command `export [name]=[value]` do?

a)

Deletes an environment variable.

b)

Creates a new environment variable.

c)

Lists all environment variables.

d)

Displays the value of a variable.

115.

How does the command `echo $[name]` function in a shell?

a)

Deletes a variable.

b)

Displays the contents of a variable.

c)

Creates a new variable.

d)

Lists all variables.

116.

What is the function of the `env` or `printenv` command?

a)

Deletes environment variables.

b)

Displays current environment variables and their values.

c)

Creates new environment variables.

d)

Modifies existing environment variables.

117.

What does the `set` command do in a shell environment?

a)

Deletes all variables.

b)

Displays a list of all variables and functions.

c)

Creates a new shell function.

d)

Modifies the shell prompt.

118.

What is the purpose of the `unset [name]` command?

a)

Creates a new variable.

b)

Displays the value of a variable.

c)

Removes a variable and its value.

d)

Lists all environment variables.

119.

What does impact does modifying /etc/profile have in a shell environment?

a)
It modifies the kernel parameters for the system.
b)
It only affects the current user's environment variables.
c)
It is used to set file permissions for user directories.
d)
It sets system-wide environment variables and configurations for all users in the shell.
120.

In a Linux system, how can you list all groups a user belongs to?

a)

groups username

b)

listgroups username

c)

usergroups username

d)

showgroups username

121.

Which Linux command allows you to see a list of previously used commands?

a)
list
b)
history
c)
display
d)
show
122.

What does GNU do?

a)
GNU provides a free software operating system and tools that promote software freedom.
b)
GNU is a proprietary software company.
c)
GNU is a type of programming language.
d)
GNU only develops hardware components.
123.

What does an asterisk (*) mean in Linux?

a)
The asterisk (*) is a wildcard character in Linux.
b)
The asterisk (*) is used for file permissions.
c)
The asterisk (*) indicates a hidden file.
d)
The asterisk (*) is a command to execute scripts.
124.

How do you determine the size of a file in Linux?

a)
Use 'cp filename' to copy the file
b)
Use 'ls -l', 'du -h', or 'stat filename' commands.
c)
Use 'rm filename' to delete the file
d)
Use 'cat filename' to display the file contents
125.

How do you run jobs in foreground?

a)
Execute the command with 'bg' to run it in the background.
b)
Execute the command directly in the terminal.
c)
Use the 'nohup' command to detach the job.
d)
Run the command in the background using '&'.
126.

How do you run jobs in the background?

a)
Add 'bg' before the command.
b)
Use '&' at the end of the command.
c)
Run the command in a separate terminal window.
d)
Use '#' at the beginning of the command.
127.

How do you monitor active processes in Linux?

a)

tskmgr

b)

ping

c)

chmod

d)

top

128.

When using vi, how do you insert new information into a file?

a)

press x

b)

press i

c)

press s

d)

press d

129.

Which command in Linux opens the boot log file?

a)
journalctl -b
b)
systemctl status boot.service
c)
cat /var/log/boot.log
d)
dmesg
130.

In Linux, when would you use cpio?

a)
You would use cpio for creating and extracting file archives in Linux.
b)
To monitor system performance in real-time.
c)
For managing user permissions in Linux.
d)
For editing text files in Linux.