Files
rhel_learning/assets/questions.txt
2025-01-08 00:11:57 +01:00

68 lines
5.5 KiB
Plaintext

Which command is used to temporarily change a SELinux boolean?|semanage boolean|setsebool|getsebool|2
How do you enable a systemd service at boot?|systemctl enable|systemctl start|systemctl active|1
Which command lists all active SELinux booleans?|getsebool -a|semanage boolean -l|setsebool|2
How do you force a container to stop?|podman kill|podman stop|podman rm|1
Which systemctl command switches to another target?|systemctl isolate|systemctl switch|systemctl target|1
How do you check the status of a SELinux boolean?|semanage boolean|getsebool|setsebool -P|2
How do you create a new partition with parted?|parted /dev/vdb mkpart|mkfs.ext4 /dev/vdb|fdisk /dev/vdb|1
Which command lists all configured SELinux ports?|semanage port -l|getsebool -a|setsebool|1
Which command lists all systemd targets?|systemctl list-units --type=target --all|systemctl list-targets|systemctl list-active-targets|1
How do you persistently change a SELinux boolean?|setsebool -P|getsebool -P|semanage boolean -P|1
Which command shows the partition table?|fdisk -l|parted print|lsblk|1
How do you restart a systemd service?|systemctl restart|systemctl reload|service restart|1
Which command shows all running systemd services?|systemctl list-units --type=service|systemctl status --all|systemctl active-services|1
How do you schedule a one-time job with cron?|at|crontab -e|cron add-job|1
How do you list installed packages?|rpm -qa|yum list installed|dnf list installed|1
How do you add a new user?|useradd|adduser|usermod|1
How do you change file ownership?|chown user:group file|chmod user file|ls -l file|1
Which command shows disk usage of a directory?|du -sh /dir|df -h /dir|ls -lh /dir|1
How do you create a new logical volume?|lvcreate -L 10G -n volume group|vgcreate -L 10G|lvextend -L +10G volume|1
How do you deactivate a user?|passwd -l user|usermod -L user|userdel user|2
How do you view all available network interfaces?|ip addr|ifconfig|netstat -i|1
How do you display the system uptime?|uptime|top|vmstat|1
How do you view swap usage?|free -h|swapon -s|cat /proc/swaps|1
How do you reload firewalld rules?|firewall-cmd --reload|iptables reload|firewallctl restart|1
How do you list kernel modules?|lsmod|modprobe -l|dmesg|1
How do you analyze CPU usage?|top|htop|vmstat|1
Which command lists active TCP connections?|netstat -tulpn|ss -tulpn|lsof -i|1
How do you stop a systemd service?|systemctl stop|systemctl disable|systemctl restart|1
How do you check the DNS cache?|systemd-resolve --statistics|systemctl dns|dns cache|1
What command is used to list all files in a directory?|ls -l|ls -a|ls -la|ls -lh|2
What command is used to change the current directory?|cd|chdir|change|dir|1
What command is used to display the current working directory?|pwd|cwd|dir|ls|1
What command is used to create a new directory?|mkdir|newdir|createdir|makedir|1
What command is used to remove a file?|rm|delete|remove|erase|1
What command is used to copy files?|cp|copy|duplicate|move|1
What command is used to move files?|mv|move|transfer|shift|1
What command is used to display the contents of a file?|cat|show|display|view|1
What command is used to search for a pattern in a file?|grep|search|find|look|1
What command is used to display the first few lines of a file?|head|top|start|begin|1
What command is used to display the last few lines of a file?|tail|end|finish|bottom|1
What command is used to display the manual page for a command?|man|help|info|guide|1
What command is used to change file permissions?|chmod|chperm|chown|chattr|1
What command is used to change file ownership?|chown|chperm|chmod|chattr|1
What command is used to display disk usage?|du|df|disk|usage|1
What command is used to display free disk space?|df|du|disk|free|1
What command is used to display system information?|uname|sysinfo|info|system|1
What command is used to display running processes?|ps|proc|process|run|1
What command is used to terminate a process?|kill|terminate|end|stop|1
What command is used to display network configuration?|ifconfig|netconfig|network|config|1
What command is used to display the routing table?|route|netstat|traceroute|path|1
What command is used to display open network connections?|netstat|conn|connections|open|1
What command is used to display the hostname?|hostname|host|name|display|1
What command is used to change the hostname?|hostnamectl|hostctl|namectl|changehost|1
What command is used to display the current date and time?|date|time|datetime|now|1
What command is used to set the system date and time?|date -s|time -s|datetime -s|setdate|1
What command is used to display the system uptime?|uptime|time|sysuptime|up|1
What command is used to reboot the system?|reboot|restart|shutdown -r|boot|1
What command is used to shut down the system?|shutdown|halt|poweroff|stop|1
What command is used to display the contents of a directory?|ls|dir|list|show|1
What command is used to display the current user's ID?|id|userid|uid|whoami|1
What command is used to switch to another user?|su|switch|user|login|1
What command is used to display the system's kernel version?|uname -r|kernel|version|sysver|1
What command is used to display the system's architecture?|uname -m|arch|architecture|sysarch|1
What command is used to display the system's release information?|uname -a|release|info|sysinfo|1
What command is used to display the system's hardware information?|lshw|hwinfo|hardware|sysinfo|1
What command is used to display the system's memory usage?|free|mem|memory|usage|1
What command is used to display the system's CPU usage?|top|cpu|usage|syscpu|1
What command is used to display the system's load average?|uptime|load|average|sysload|1