Docsity

Linux Server Professional Certification - Level 1 Exam, Exams of Technology

Toggle sidebar
bg1
Linux Server Professional Certification - Level 1 Exam
Question 1. Which hardware component is primarily responsible for executing instructions in a
computer system?
A) RAM
B) CPU
C) Storage device
D) Network interface
Answer: B
Explanation: The CPU (Central Processing Unit) is the primary component responsible for executing
instructions and performing calculations in a computer system.
Question 2. Which command is used to list all PCI devices connected to a Linux system?
A) lsusb
B) lspci
C) dmidecode
D) lsblk
Answer: B
Explanation: lspci lists all PCI bus devices, providing details about connected PCI hardware components.
Question 3. Which term describes devices that can be added or removed while the system is running
without rebooting?
A) Coldplug devices
B) Hotplug devices
C) BIOS devices
D) Static devices
Answer: B
Explanation: Hotplug devices can be connected or disconnected during system operation, allowing for
dynamic hardware changes.
Question 4. Which setting in the BIOS/UEFI is typically used to enable secure boot?
A) Boot sequence
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47

Partial preview of the text

Download Linux Server Professional Certification - Level 1 Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which hardware component is primarily responsible for executing instructions in a computer system? A) RAM B) CPU C) Storage device D) Network interface Answer: B Explanation: The CPU (Central Processing Unit) is the primary component responsible for executing instructions and performing calculations in a computer system. Question 2. Which command is used to list all PCI devices connected to a Linux system? A) lsusb B) lspci C) dmidecode D) lsblk Answer: B Explanation: lspci lists all PCI bus devices, providing details about connected PCI hardware components. Question 3. Which term describes devices that can be added or removed while the system is running without rebooting? A) Coldplug devices B) Hotplug devices C) BIOS devices D) Static devices Answer: B Explanation: Hotplug devices can be connected or disconnected during system operation, allowing for dynamic hardware changes. Question 4. Which setting in the BIOS/UEFI is typically used to enable secure boot? A) Boot sequence

B) Secure boot option C) Legacy boot mode D) Hardware virtualization Answer: B Explanation: Secure boot is a BIOS/UEFI feature that ensures only trusted software is loaded during the boot process. Question 5. During Linux boot, which component is responsible for loading the kernel into memory? A) Bootloader B) BIOS/UEFI firmware C) init system D) Hardware driver Answer: A Explanation: The bootloader (e.g., GRUB) loads the kernel into memory and passes control to it during the boot process. Question 6. Which partitioning scheme is based on globally unique identifiers (GUIDs)? A) MBR B) GPT C) BSD disklabel D) APM Answer: B Explanation: GPT (GUID Partition Table) uses GUIDs to identify partitions, supporting larger disks and more partitions than MBR. Question 7. Which bootloader is most commonly used with modern Linux distributions? A) LILO B) GRUB C) NTLDR D) SYSLINUX

Question 11. Which command can be used to notify users of an impending system reboot? A) wall B) write C) notify D) alert Answer: A Explanation: wall sends a message to all logged-in users, typically used to notify about system events such as reboots. Question 12. Which Linux command displays detailed information about hardware components? A) lshw B) lsusb C) dmidecode D) All of the above Answer: D Explanation: All listed commands provide hardware information: lshw for detailed hardware info, lsusb for USB devices, dmidecode for BIOS and hardware data. Question 13. Which partitioning tool is used to create, delete, and manage GPT partitions? A) fdisk B) gdisk C) parted D) Both B and C Answer: D Explanation: gdisk and parted support GPT partitioning; fdisk traditionally supports MBR but can work with GPT in newer versions. Question 14. Which command creates a new ext4 filesystem on a partition? A) mkfs.ext B) mkfs.ext

C) mkfs.xfs D) mkfs.vfat Answer: B Explanation: mkfs.ext4 creates an ext4 filesystem, suitable for Linux partitions requiring journaling. Question 15. Which command is used to display the partition table of a disk? A) lsblk B) fdisk - l C) parted - l D) All of the above Answer: D Explanation: All listed commands display partition table information: lsblk shows block devices, fdisk - l lists partitions, parted - l provides detailed info. Question 16. Which command is used to check and repair filesystem integrity? A) fsck B) mkfs C) e2fsck D) Both A and C Answer: D Explanation: fsck is the generic filesystem check tool; e2fsck is specific for ext2/ext3/ext4 filesystems. Question 17. What does the ‘umount’ command do? A) Mounts a filesystem B) Unmounts a filesystem C) Formats a partition D) Checks filesystem integrity Answer: B

A) To create a duplicate copy of a file B) To link files across different filesystems without copying data C) To increase file permissions D) To encrypt files Answer: B Explanation: Symbolic links (symlinks) point to other files or directories, enabling flexible file referencing without data duplication. Question 22. Which command searches for files by name in the filesystem? A) locate B) find C) which D) whereis Answer: B Explanation: find searches the filesystem recursively for files matching specified criteria, including name. Question 23. Which directory typically contains system-wide executable programs? A) /bin B) /sbin C) /usr/bin D) /usr/local/bin Answer: C Explanation: /usr/bin contains most user-level executable programs available to all users. Question 24. Which shell scripting construct is used for executing a command multiple times? A) if B) for C) case D) read

Answer: B Explanation: a for loop executes a block of code multiple times, iterating over a list of items. Question 25. Which command creates a tar archive of a directory? A) tar - cvf archive.tar directory/ B) zip archive.zip directory/ C) gzip - r directory/ D) cpio - o - H newc - F archive.cpio directory/ Answer: A Explanation: tar - cvf creates a new archive file in tar format, including the specified directory. Question 26. Which command is used to compress files using gzip? A) gzip filename B) zip filename C) bzip2 filename D) xz filename Answer: A Explanation: gzip compresses files using the gzip algorithm, creating a .gz compressed file. Question 27. Which command displays the current process list with real-time updates? A) ps aux B) top C) htop D) Both B and C Answer: D Explanation: top and htop both display real-time process information; htop offers a more user-friendly interface. Question 28. Which signal is used to terminate a process gracefully?

Answer: B Explanation: /etc/fstab contains static information about filesystems to be mounted automatically during boot. Question 32. Which command displays the UUID of a filesystem? A) blkid B) lsblk C) uuidgen D) Both A and B Answer: D Explanation: both blkid and lsblk can display UUIDs associated with block devices and filesystems. Question 33. What does the ‘setuid’ permission do? A) Allows a file to be executed with the permissions of its owner B) Sets the user ID of the owner C) Grants read and write permissions to all users D) Restricts access to the owner only Answer: A Explanation: setuid allows users to execute a file with the permissions of the file owner, often used for privileged programs. Question 34. Which type of link can be created across different filesystems? A) Hard link B) Symbolic link C) Both hard and symbolic links D) None of the above Answer: B Explanation: Symbolic links can point across filesystems; hard links are limited to within the same filesystem.

Question 35. Which command is used to find the absolute path of a command? A) which B) whereis C) type D) all of the above Answer: D Explanation: all these commands can be used to locate the full path of an executable. Question 36. Which shell configuration file is typically used to set environment variables for login shells? A) .bashrc B) .profile C) .bash_profile D) Both B and C Answer: D Explanation: .profile and .bash_profile are used for login shells to set environment variables; .bashrc is for interactive non-login shells. Question 37. Which command is used to create a new shell variable? A) export B) set C) declare D) All of the above Answer: D Explanation: export, set, and declare can be used to define and modify shell variables. Question 38. Which utility is used to archive multiple files into a gzip compressed tarball? A) tar - czf archive.tar.gz files B) gzip files C) zip archive.zip files

Question 42. Which command is used to add a new user to the system? A) useradd B) adduser C) usermod D) Both A and B Answer: D Explanation: useradd and adduser create new user accounts, though adduser is often a friendlier front- end. Question 43. Which command displays all active network interfaces? A) ifconfig B) ip addr C) ip link D) All of the above Answer: D Explanation: all listed commands display network interface details; ip commands are preferred in modern systems. Question 44. Which utility displays routing table information? A) netstat B) ip route C) route D) All of the above Answer: D Explanation: netstat, ip route, and route all provide routing table information. Question 45. Which command is used to add a new route to the routing table? A) route add B) ip route add

C) netstat - r D) Both A and B Answer: D Explanation: route add and ip route add are used to add routes; netstat - r displays current routes. Question 46. Which command is used to display the current date and time? A) date B) timedatectl C) hwclock D) All of the above Answer: D Explanation: date shows system date/time; timedatectl manages hardware clock and timezone; hwclock shows hardware clock. Question 47. Which command is used to synchronize system time with network time protocol servers? A) ntpdate B) timedatectl set-ntp true C) chronyc D) All of the above Answer: D Explanation: ntpdate, timedatectl, and chronyc are used for NTP synchronization. Question 48. Which command is used to display the current status of the system’s time synchronization service? A) timedatectl status B) chronyc tracking C) ntpq - p D) All of the above Answer: D

B) case C) while D) for Answer: B Explanation: case statements evaluate multiple patterns and execute matching code blocks. Question 53. Which command compresses files using bzip2? A) gzip B) bzip C) xz D) zip Answer: B Copy Summarize Delete Question 53. Which command compresses files using bzip2? A) gzip B) bzip C) xz D) zip Answer: B Explanation: bzip2 compresses files using the bzip2 algorithm, producing files with .bz2 extension. Question 54. Which command is used to extract a .tar.gz archive? A) tar - xvf archive.tar.gz B) gzip - d archive.tar.gz C) tar - xzvf archive.tar.gz D) unzip archive.tar.gz

Answer: C Explanation: tar - xzvf extracts a gzip compressed tar archive, handling both tar and gzip formats. Question 55. Which command is used to display the process status interactively? A) ps aux B) top C) htop D) Both B and C Answer: D Explanation: top and htop provide real-time, interactive process monitoring. Question 56. Which command is used to send a signal to terminate a process forcefully? A) kill - 9 B) kill - 15 C) kill - 2 D) kill - 1 Answer: A Explanation: kill - 9 sends SIGKILL, forcing immediate process termination. Question 57. Which command is used to change a process's scheduling priority to higher? A) renice - n - 10 pid B) nice - n 10 command C) kill - n 5 pid D) schedctl pid Answer: A Explanation: renice changes process priority; negative nice values increase priority. Question 58. Which command displays the current default runlevel in SysVinit systems? A) runlevel

Question 62. Which command is used to create a new partition using GPT? A) fdisk B) gdisk C) parted D) Both B and C Answer: D Explanation: gdisk and parted support GPT partitioning; fdisk is mainly MBR-focused. Question 63. Which command is used to create an ext3 filesystem? A) mkfs.ext B) mkfs.ext C) mkfs.ext D) mkfs.vfat Answer: B Explanation: mkfs.ext3 creates an ext3 filesystem, suitable for Linux partitions requiring journaling. Question 64. Which command displays the filesystem type of a device? A) lsblk - f B) blkid C) df - T D) All of the above Answer: D Explanation: lsblk - f, blkid, and df - T all display filesystem types. Question 65. Which command is used to mount a filesystem? A) mount B) umount C) fsck

D) mkfs Answer: A Explanation: mount attaches a filesystem to a directory tree at a specified mount point. Question 66. Which command is used to unmount a filesystem? A) mount B) umount C) fsck D) mkfs Answer: B Explanation: umount detaches a mounted filesystem from the directory tree. Question 67. Which command is used to modify permissions of a file? A) chown B) chgrp C) chmod D) umask Answer: C Explanation: chmod changes the read, write, and execute permissions of files or directories. Question 68. Which permission bits are set with ‘setgid’ on a directory? A) Files created within inherit group ownership of the directory B) Files inherit execute permission C) Prevents users from deleting files D) Grants read permission to others Answer: A Explanation: setgid on a directory makes new files inherit the directory's group ownership. Question 69. Which command is used to create a hard link?