WorksheetsLinux Command Quiz
Total questions: 54
Worksheet time: 30mins
`firewall-cmd --add-service=http` командасы не үшін қолданылады?
FTP қызметін жою үшін
HTTP қызметін қосу үшін
DNS серверін баптау үшін
IP адресін өзгерту үшін
LVM не үшін қолданылады?
Web сервер қосу үшін
Қолданушы қосу үшін
Дискілік кеңістікті логикалық басқару үшін
Желі баптаулары үшін
`#!/bin/bash` жолы қалай аталады?
Kernel
Header
Shebang
Interpreter
DNS сервері қай файлда көрсетіледі?
/etc/hosts
/etc/fstab
/etc/resolv.conf
/etc/network/interfaces
`df -h` командасы нені көрсетеді?
Желілік құрылғыларды
RAM қолдануын
Дискідегі бос орын мен көлемді
Файл жүйесінің атын
RPM пакетін орнату үшін қандай команда қолданылады?
dpkg -i
rpm -ivh
apt install
make install
Apache веб-серверінің стандартты порты?
21
22
80
443
`nmcli connection show` не көрсетеді?
Firewall ережелері
Орнатылған пакеттер
Желі байланыс профилдері
Диск бөлімдері
Sticky Bit дегеніміз не?
IP беру
Файлды тек иесі өшіреді
Желі қайта қосылу
swap аймағы
Apache веб-контенті қай жерде сақталады?
/etc/httpd
/var/www/html
/usr/lib/apache
/opt/apache2
`swapon -s` не көрсетеді?
Firewall ережелері
swap бөлімдері
Желі интерфейсі
RAM қолдануы
SSH үшін стандартты порт нөмірі?
21
22
80
443
`chmod 4755 file1` не орнатады?
Sticky Bit
SUID
SGID
Read only
`alias ll="ls -l"` не істейді?
`ll` командасын `ls -l` орнына қолдануға мүмкіндік береді
Жаңа қолданушы қосады
Каталог жасайды
Сервис қосады
`yum groupinstall "Development Tools"` командасы:
Firewall өзгертеді
Желі профилін жояды
Бағдарламалау құралдарын орнатады
Swap өшіреді
`--permanent` параметрі нені білдіреді?
Тек уақытша
Тек ағымдағы сессияда
Тұрақты сақталады
Тек root қолдана алады
Файлдарды синхрондау үшін не қолданылады?
scp
rsync
ssh
curl
Debian-да IP статикалық орнатылады:
/etc/fstab
/etc/hostname
/etc/resolv.conf
/etc/network/interfaces
`systemctl enable firewalld` не істейді
How is a static IP configured in Debian?
/etc/fstab
/etc/hostname
/etc/resolv.conf
/etc/network/interfaces
What does `systemctl enable firewalld` do?
Stops Firewalld
Starts it once
Starts with the system
Shows the status
What is the purpose of `mount /dev/sdb1 /mnt/data`?
Add swap
Create a user
Mount a disk
Start a network interface
What is the command to install a `.deb` package?
rpm -i
dpkg -i
apt -r
dnf install
What is the network configuration file in Ubuntu?
/etc/network/interfaces
/etc/netplan/*.yaml
/etc/sysconfig/network-scripts/
/etc/dhcp/dhcpd.conf
What does `chmod u+x file.sh` do?
Deletes the file
Gives read permission
Gives execute permission to the owner
Removes all permissions
What does the `cat` command do?
Deletes a file
Creates a network profile
Displays file content
Starts a swap partition
What does the `useradd student` command do?
Adds a new group
Adds a user
Deletes a directory
Opens a port
What does the `passwd student` command do?
Deletes the user
Changes the group name
Sets the user's password
Changes file permissions
Which distributions is the `yum install wget` command for?
Ubuntu
Debian
Red Hat based systems
Arch Linux
What does the `sudo apt update` command do?
Removes packages
Updates repository information
Reboots the system
Adds swap
What does `hostnamectl set-hostname server1` do?
Sets the IP address
Restarts the network
Changes the hostname
Adds a user
What command is used to create a symbolic link?
cp
ln -s
touch
mv
What command shows file permissions in Linux?
chmod
chown
ls -l
umount
When is SGID used?
For swap partition
To share files within a directory group
To close a port
To set up DNS
What does the `ip a` command show?
Disk size
Ports
IP addresses
Swap
What does `mkdir dir1` do?
Writes a file
Creates a directory
Reboots the system
sw
What does the command not show?
Disk size
Ports
IP addresses
swap
What does `mkdir dir1` do?
Writes a file
Creates a directory
Reboots the system
Installs swap
What is the function of the `mount` command?
Sets IP
Activates swap
Mounts a disk
Opens a port
What does `tar -czf archive.tar.gz dir1/` do?
Opens a port
Compresses a folder into an archive
Deletes a swap partition
Activates SSH
In which distribution is APT used?
Red Hat
CentOS
Debian/Ubuntu
Fedora
What does the `lsblk` command show?
IP address
Disk structure
swap size
List of users
What does the `nano file.txt` command do?
Installs a file
Changes a password
Opens a text file
Creates a directory
What does `chmod o+t /dir2` set?
SUID
SGID
Sticky Bit
Read only
What does the `blkid` command show?
IP
UUID and file system
swap status
SSH port
What is the purpose of the Samba server?
swap management
File sharing over the network
Setting IP
DNS resolution
What is `scp` used for?
Setting up swap
Copying files remotely
Closing a port
Installing Apache
What does `yum remove httpd` do?
Installs Apache
Sets up a network
Removes Apache
Writes swap
What is the command to check swap size in Ubuntu?
df -h
lsblk
free -h
blkid
What does `systemctl start apache2` do?
Starts the Apache service
Does not close a port
Adds swap
Changes the hostname
What does `find / -name file.txt` do?
Creates a new file
Deletes a file
Searches for a file throughout the system
Shows swap
What does `rsync -av /etc/ backup/` do?
Deletes swap
Synchronizes /etc/ directory into backup/
Changes IP
Starts Apache
Which port does DNS work through?
53
80
22
443
Which port does HTTPS use?
21
80
443
22
