Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux Command Quiz

Total questions: 54

Worksheet time: 30mins

Name
Class
Date
1.

`firewall-cmd --add-service=http` командасы не үшін қолданылады?

a)

FTP қызметін жою үшін

b)

HTTP қызметін қосу үшін

c)

DNS серверін баптау үшін

d)

IP адресін өзгерту үшін

2.

LVM не үшін қолданылады?

a)

Web сервер қосу үшін

b)

Қолданушы қосу үшін

c)

Дискілік кеңістікті логикалық басқару үшін

d)

Желі баптаулары үшін

3.

`#!/bin/bash` жолы қалай аталады?

a)

Kernel

b)

Header

c)

Shebang

d)

Interpreter

4.

DNS сервері қай файлда көрсетіледі?

a)

/etc/hosts

b)

/etc/fstab

c)

/etc/resolv.conf

d)

/etc/network/interfaces

5.

`df -h` командасы нені көрсетеді?

a)

Желілік құрылғыларды

b)

RAM қолдануын

c)

Дискідегі бос орын мен көлемді

d)

Файл жүйесінің атын

6.

RPM пакетін орнату үшін қандай команда қолданылады?

a)

dpkg -i

b)

rpm -ivh

c)

apt install

d)

make install

7.

Apache веб-серверінің стандартты порты?

a)

21

b)

22

c)

80

d)

443

8.

`nmcli connection show` не көрсетеді?

a)

Firewall ережелері

b)

Орнатылған пакеттер

c)

Желі байланыс профилдері

d)

Диск бөлімдері

9.

Sticky Bit дегеніміз не?

a)

IP беру

b)

Файлды тек иесі өшіреді

c)

Желі қайта қосылу

d)

swap аймағы

10.

Apache веб-контенті қай жерде сақталады?

a)

/etc/httpd

b)

/var/www/html

c)

/usr/lib/apache

d)

/opt/apache2

11.

`swapon -s` не көрсетеді?

a)

Firewall ережелері

b)

swap бөлімдері

c)

Желі интерфейсі

d)

RAM қолдануы

12.

SSH үшін стандартты порт нөмірі?

a)

21

b)

22

c)

80

d)

443

13.

`chmod 4755 file1` не орнатады?

a)

Sticky Bit

b)

SUID

c)

SGID

d)

Read only

14.

`alias ll="ls -l"` не істейді?

a)

`ll` командасын `ls -l` орнына қолдануға мүмкіндік береді

b)

Жаңа қолданушы қосады

c)

Каталог жасайды

d)

Сервис қосады

15.

`yum groupinstall "Development Tools"` командасы:

a)

Firewall өзгертеді

b)

Желі профилін жояды

c)

Бағдарламалау құралдарын орнатады

d)

Swap өшіреді

16.

`--permanent` параметрі нені білдіреді?

a)

Тек уақытша

b)

Тек ағымдағы сессияда

c)

Тұрақты сақталады

d)

Тек root қолдана алады

17.

Файлдарды синхрондау үшін не қолданылады?

a)

scp

b)

rsync

c)

ssh

d)

curl

18.

Debian-да IP статикалық орнатылады:

a)

/etc/fstab

b)

/etc/hostname

c)

/etc/resolv.conf

d)

/etc/network/interfaces

19.

`systemctl enable firewalld` не істейді

4 lines
20.

How is a static IP configured in Debian?

a)

/etc/fstab

b)

/etc/hostname

c)

/etc/resolv.conf

d)

/etc/network/interfaces

21.

What does `systemctl enable firewalld` do?

a)

Stops Firewalld

b)

Starts it once

c)

Starts with the system

d)

Shows the status

22.

What is the purpose of `mount /dev/sdb1 /mnt/data`?

a)

Add swap

b)

Create a user

c)

Mount a disk

d)

Start a network interface

23.

What is the command to install a `.deb` package?

a)

rpm -i

b)

dpkg -i

c)

apt -r

d)

dnf install

24.

What is the network configuration file in Ubuntu?

a)

/etc/network/interfaces

b)

/etc/netplan/*.yaml

c)

/etc/sysconfig/network-scripts/

d)

/etc/dhcp/dhcpd.conf

25.

What does `chmod u+x file.sh` do?

a)

Deletes the file

b)

Gives read permission

c)

Gives execute permission to the owner

d)

Removes all permissions

26.

What does the `cat` command do?

a)

Deletes a file

b)

Creates a network profile

c)

Displays file content

d)

Starts a swap partition

27.

What does the `useradd student` command do?

a)

Adds a new group

b)

Adds a user

c)

Deletes a directory

d)

Opens a port

28.

What does the `passwd student` command do?

a)

Deletes the user

b)

Changes the group name

c)

Sets the user's password

d)

Changes file permissions

29.

Which distributions is the `yum install wget` command for?

a)

Ubuntu

b)

Debian

c)

Red Hat based systems

d)

Arch Linux

30.

What does the `sudo apt update` command do?

a)

Removes packages

b)

Updates repository information

c)

Reboots the system

d)

Adds swap

31.

What does `hostnamectl set-hostname server1` do?

a)

Sets the IP address

b)

Restarts the network

c)

Changes the hostname

d)

Adds a user

32.

What command is used to create a symbolic link?

a)

cp

b)

ln -s

c)

touch

d)

mv

33.

What command shows file permissions in Linux?

a)

chmod

b)

chown

c)

ls -l

d)

umount

34.

When is SGID used?

a)

For swap partition

b)

To share files within a directory group

c)

To close a port

d)

To set up DNS

35.

What does the `ip a` command show?

a)

Disk size

b)

Ports

c)

IP addresses

d)

Swap

36.

What does `mkdir dir1` do?

a)

Writes a file

b)

Creates a directory

c)

Reboots the system

d)

sw

37.

What does the command not show?

a)

Disk size

b)

Ports

c)

IP addresses

d)

swap

38.

What does `mkdir dir1` do?

a)

Writes a file

b)

Creates a directory

c)

Reboots the system

d)

Installs swap

39.

What is the function of the `mount` command?

a)

Sets IP

b)

Activates swap

c)

Mounts a disk

d)

Opens a port

40.

What does `tar -czf archive.tar.gz dir1/` do?

a)

Opens a port

b)

Compresses a folder into an archive

c)

Deletes a swap partition

d)

Activates SSH

41.

In which distribution is APT used?

a)

Red Hat

b)

CentOS

c)

Debian/Ubuntu

d)

Fedora

42.

What does the `lsblk` command show?

a)

IP address

b)

Disk structure

c)

swap size

d)

List of users

43.

What does the `nano file.txt` command do?

a)

Installs a file

b)

Changes a password

c)

Opens a text file

d)

Creates a directory

44.

What does `chmod o+t /dir2` set?

a)

SUID

b)

SGID

c)

Sticky Bit

d)

Read only

45.

What does the `blkid` command show?

a)

IP

b)

UUID and file system

c)

swap status

d)

SSH port

46.

What is the purpose of the Samba server?

a)

swap management

b)

File sharing over the network

c)

Setting IP

d)

DNS resolution

47.

What is `scp` used for?

a)

Setting up swap

b)

Copying files remotely

c)

Closing a port

d)

Installing Apache

48.

What does `yum remove httpd` do?

a)

Installs Apache

b)

Sets up a network

c)

Removes Apache

d)

Writes swap

49.

What is the command to check swap size in Ubuntu?

a)

df -h

b)

lsblk

c)

free -h

d)

blkid

50.

What does `systemctl start apache2` do?

a)

Starts the Apache service

b)

Does not close a port

c)

Adds swap

d)

Changes the hostname

51.

What does `find / -name file.txt` do?

a)

Creates a new file

b)

Deletes a file

c)

Searches for a file throughout the system

d)

Shows swap

52.

What does `rsync -av /etc/ backup/` do?

a)

Deletes swap

b)

Synchronizes /etc/ directory into backup/

c)

Changes IP

d)

Starts Apache

53.

Which port does DNS work through?

a)

53

b)

80

c)

22

d)

443

54.

Which port does HTTPS use?

a)

21

b)

80

c)

443

d)

22