Linux

An illustration of a Linux terminal with code snippets and a background of computer hardware and networking components, showcasing the essence of Linux operating systems.

Linux Mastery Quiz

Test your knowledge of Linux with this comprehensive quiz featuring 49 challenging questions. From file systems to networking, this quiz covers a wide range of topics designed for anyone looking to enhance their Linux expertise.

  • 49 questions spanning various Linux topics
  • Multiple choice format for easy participation
  • Perfect for system administrators and tech enthusiasts
49 Questions12 MinutesCreated by CodingFalcon27
What command can you use to become root?
Elevate
Chown root
Su root
Su
Machinectl enable
Which of these files contains descriptive information about local filesystems?
/etc/filesystems
/etc/fuse.conf
/etc/udev/hwdb.bin
/etc/fstab
/etc/udev/udev.conf
Which of the following RAID schemes can tolerate three simultaneous drive failures without losing data?
Four drives in a RAID 0 array
Four drives in a RAID 5 array
Four drives in a RAID 1 array
Five drives in a RAID 5 array
Four drives in a RAID 10 array
Which of the following is a file system?
CUSFS
ASUFS
RAID
BTRFS
LVM
Which of these files, if created, prevents login by non-root users?
/etc/passwd
/etc/nologin
/etc/motd
/etc/issue
/sbin/nologin
Which of the following commands can be used to disable a swap partition?
Swapmkfs
Mkswap
Swapoff
Swapon
Mkfs.swap
Which utility can display the total amount of space used by the contents of a subdirectory
Free
Ls
Du
Mem
Df
Which of the following determines network and broadcast addresses for interfaces configured in the "network-scripts" directory?
Ipcalc
Ifup
Ifdown
Ifcfg
Ifconfig
Which directory would a configuration file named "ifcfg-eno777365" be stored in?
Network-scripts
/run
/sys
NetworkManager
/dev
What command would list any kernel modules currently in use?
Lsmod
Modprobe
Lspci
Xprobe
Lsvid
******** Which of these utilities can you use to partition a hard drive? ********
Mkfs
Pvcreate
Vgcreate
Lvcreate
Fdisk
Which of the following filesystems differ only in that one uses a journal and the other does not?
Ext3, ext4
Ext2, FAT32
Ext3, XFS
Ext4, XFS
Ext2, ext3
Which of these utilities can help you discover all the network hops between the system you are on and a destination host on the internet?
Ip
Ping
Tracepath
Route
Ifconfig
Which of the following commands allows you to tune the parameters of the ext3 filesystem?
Fsck
E2fsck
Lvextend
Tune2fs
Ede2fs
Which directory contains the files needed to boot the system?
/opt
/var
/run
/boot
/etc
Which of these commands extracts information about an XFS filesystem?
Xfs_debug
Xfsrestore
Xfs_info
Xfs_repair
Xfsdump
Which of these is created by LVM?
/dev/mapper
/run
/sys
/dev
/proc
What command can you use to list what units must be started before the GUI can be started?
Systemctl show-dependencies multi-user.target
Systemctl list-dependencies multi-user.target
Systemctl list-dependencies graphical.target
Systemctl show-dependencies graphical.target
Systemctl isolate multi-user.target
Which of the following files would be the network configuration file for the "wlp0s20u14" network interface?
Ifcfg-wlp0s20u14
Wlp0s20u14.lease
Ifup-wlp0s20u14
/etc/wlp0s20u14
Ifdown-wlp0s20u14
Which daemon maintains a local system log?
Systemd
Smartd
Logd
Locald
Journald
******** Which of the following contains utilities used for system administration? ********
/usr/local
/usr/lib
/usr/src
/usr/sbin
/usr/include
Which command could you use to determine which distribution of Linux you are using?
Uname -r
Cat /etc/os-release
Cat /etc/distro
Lsb_release
Uname
******** Which of the following commands will analyze system boot-up performance?
Uptime
Systemctl
Vmstat
Top
Systemd-analyze
******** Which utility could you use to find the IP address associated with the web server www.distrowatch.com?
Ifconfig
Ipcalc
Host
Route
Netstat
Which command should you use to install and remove packages in CentOS?
Aptitude
Apt-get
Wget
Yum
Tar
******** Which command can be used to view kernel log messages? ********
Logger
Journald
Logmsg
Dmesg
Kmesg
Which directory contains log files?
/tmp
/usr
/sys
/root
/var
Which of the following commands forces Linux to write any data cached in memory to disk
Swapoff
Xfsdump
Fdisk
Journal ctl -k
Sync
A new home directory is populated with the contents of ____________.
/ske1
/etc/home
~
/etc/ske1
/home
******** Which command can you use to show control groups ranked by resource usage? ********
Systemctl list-units --type service
Systemd-cgtop
Systemd-analyze
Systemctl list-units --type control
Systemd-cgls
Which of the following files is a hard drive?
/dev/sr0
/dev/sda
/dev/disk
/dev/md127
/dev/hbd2
Which command is used to change file permissions
Chmod
Chset
Chgrp
Chage
Chown
******** Which of these utilities will display the message "This account is currently not available"
Userdel
Motd
Nologin
Issue
Passwd
Which of these directories contains programs usable by ordinary users?
/usr/sbin
/run
/usr/bin
/home
/sbin
Which compact disk file system extension specifically enables filenames longer than 12 characters?
El Torito
Joliet
Rock Ridge
UDF
ISO9660
******** Which of the following files contains configuration information for RAID arrays?********
/etc/mdadm.conf
/proc/mdstat
/proc/mounts
/etc/default/grub
/etc/grub2.cfg
******** Which command produces output which looks like the attached ********
Top
Vmstat
Watch
Free
Uptime
******** Which of the following contains a numbered folder for each process ID? ********
/run
/sys
/dev/mapper
/proc
/dev
What command can you use to disable the GUI in CentOS 7?
Stopx
Systemctl isolate graphical.target
Systemctl start multi-user.target
Systemctl isolate multi-user.target
Systemctl stop graphical.target
******** What type of device file would correctly complete this command: mkfs.ext4 ********
SATA drive
LVM physical volume
Mount point
LVM volume group
LVM logical volume
Which file contains detailed information on the installed linux distribution?
/proc/os-release
/etc/default/grub
/proc/mdstat
/etc/mdstat
/etc/os-release
Which of the following commands can be used to list the contents of a backup file?
Mdadm
Mount
Xfsdump
Xfsrestore
Lvscan
******** Which of the following would display information about a computer mouse?
Fdisk
Lsblk
Lsusb
Ps aux
Lspci
Which command can you use to add a group?
Gpasswd
/etc/group
Usermod
Addgroup
Groupadd
Which of these virtual filesystems presents an interface to kernel objects?
/lib
/boot
/var
/run
/sys
******** The "Compact Disk File System" is also referred to as: ********
Rock Ridge
ISO9660
UDF
HFS
Joliet
Which command displays only kernel messages from the last boot?
Journalctl -k
Journalctl -t sysinit
Journalctl
Journalctl -u sysinit
Journalctl | grep dmesg
******** Which of the following would list installed expansion cards and embedded hardware? ********
Lshw
Lscard
Lsusb
Lsmod
Lspci
Which of these utilities manages RAID arrays in Linux?
Pvmanage
Mkfs
Fdisk
Mdadm
Lvmanage
{"name":"Linux", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Linux with this comprehensive quiz featuring 49 challenging questions. From file systems to networking, this quiz covers a wide range of topics designed for anyone looking to enhance their Linux expertise.49 questions spanning various Linux topicsMultiple choice format for easy participationPerfect for system administrators and tech enthusiasts","img":"https:/images/course4.png"}
Powered by: Quiz Maker