UNIX MCQs – System Information (Part – 2)

UNIX Question and Answer – System Information

UNIX MCQ – Multiple Choice Questions for exam, interview, and Entrance Test

1. Which command is used to display detailed information about the system’s memory usage, including swap space utilization?

a) meminfo

b) free

c) vmstat

d) top

Answer: b) free

Explanation: The free command displays detailed information about the system’s memory usage, including swap space utilization, in UNIX.


2. What does the lsblk command display in UNIX?

a) List of USB devices

b) List of block devices

c) List of PCI devices

d) List of system users

Answer: b) List of block devices

Explanation: The lsblk command displays the list of block devices, such as hard drives and partitions, in UNIX.


3. Which command is used to display information about network interfaces, including IP addresses and MAC addresses?

a) ifconfig

b) ipconfig

c) netstat

d) route

Answer: a) ifconfig

Explanation: The ifconfig command displays information about network interfaces, including IP addresses and MAC addresses, in UNIX.


4. What does the arp -a command display in UNIX?

a) List of currently active users

b) List of active network connections

c) ARP cache entries

d) System hardware information

Answer: c) ARP cache entries

Explanation: The arp -a command displays ARP cache entries, which contain mappings between IP addresses and MAC addresses, in UNIX.


5. Which command is used to display information about the system’s hardware configuration, including CPU, memory, and storage devices?

a) hwinfo

b) lshw

c) lspci

d) lsusb

Answer: b) lshw

Explanation: The lshw command displays information about the system’s hardware configuration, including CPU, memory, and storage devices, in UNIX.


6. What does the uptime command display in UNIX?

a) Current system time

b) System load average and uptime

c) CPU information

d) Network interface configuration

Answer: b) System load average and uptime

Explanation: The uptime command displays the system load average and uptime in UNIX.


7. Which command is used to display information about the system’s CPU architecture, including the number of processors and their capabilities?

a) cpuinfo

b) lscpu

c) top

d) vmstat

Answer: b) lscpu

Explanation: The lscpu command displays information about the system’s CPU architecture, including the number of processors and their capabilities, in UNIX.


8. What does the netstat -r command display in UNIX?

a) List of active network connections

b) Routing table

c) ARP cache

d) System uptime and load average

Answer: b) Routing table

Explanation: The netstat -r command displays the routing table in UNIX.


9. Which command is used to display information about active and listening sockets, including their state and addresses?

a) ss

b) netstat

c) ifconfig

d) route

Answer: a) ss

Explanation: The ss command is used to display information about active and listening sockets, including their state and addresses, in UNIX.


10. What does the ps -aux command display in UNIX?

a) List of currently logged-in users

b) List of active network connections

c) Detailed information about all processes

d) System uptime and load average

Answer: c) Detailed information about all processes

Explanation: The ps -aux command displays detailed information about all processes running on the system in UNIX.


11. Which command is used to display information about system memory usage and swap space utilization in UNIX?

a) meminfo

b) free

c) vmstat

d) top

Answer: b) free

Explanation: The free command displays information about system memory usage and swap space utilization in UNIX.


12. What does the cat /proc/version command display in UNIX?

a) System uptime and load average

b) Kernel version and build information

c) CPU information

d) Network interface configuration

Answer: b) Kernel version and build information

Explanation: The cat /proc/version command displays the kernel version and build information in UNIX.


13. Which command is used to display information about available disk space, including disk usage and mount points?

a) du

b) df

c) fsstat

d) cat /etc/fstab

Answer: b) df

Explanation: The df command displays information about available disk space, including disk usage and mount points, in UNIX.


14. What does the cat /proc/mounts command display in UNIX?

a) List of currently logged-in users

b) Detailed information about all mounted filesystems

c) Detailed information about all processes

d) System uptime and load average

Answer: b) Detailed information about all mounted filesystems

Explanation: The cat /proc/mounts command displays detailed information about all mounted filesystems in UNIX.


15. Which command is used to display information about active and passive TCP/UDP connections, including their state and port numbers?

a) tcpdump

b) netstat

c) ifconfig

d) route

Answer: b) netstat

Explanation: The netstat command is used to display information about active and passive TCP/UDP connections, including their state and port numbers, in UNIX.


16. What does the cat /proc/loadavg command display in UNIX?

a) System uptime and load average

b) Kernel version and build information

c) CPU information

d) Memory information

Answer: a) System uptime and load average

Explanation: The cat /proc/loadavg command displays the system uptime and load average in UNIX.


17. Which command is used to display information about active network connections, including local and remote addresses and their states?

a) ss

b) netstat

c) ifconfig

d) route

Answer: b) netstat

Explanation: The netstat command is used to display information about active network connections, including local and remote addresses and their states, in UNIX.


18. What does the uname -m command display in UNIX?

a) System uptime and load average

b) CPU architecture

c) Kernel version

d) System hardware information

Answer: b) CPU architecture

Explanation: The uname -m command displays the CPU architecture in UNIX.


19. Which command is used to display information about active processes and their resource usage in UNIX?

a) ps

b) top

c) pstree

d) process

Answer: a) ps

Explanation: The ps command is used to display information about active processes and their resource usage in UNIX.


20. What does the ip a command display in UNIX?

a) Network interface configuration

b) System uptime and load average

c) Memory information

d) Currently logged-in users

Answer: a) Network interface configuration

Explanation: The ip a command displays network interface configuration in UNIX.


21. Which command is used to display information about the system’s memory usage, including total, used, and free memory?

a) meminfo

b) free

c) vmstat

d) top

Answer: b) free

Explanation: The free command displays detailed information about the system’s memory usage in UNIX.


22. What does the lsusb command display in UNIX?

a) CPU information

b) USB devices connected to the system

c) Memory information

d) Network interface configuration

Answer: b) USB devices connected to the system

Explanation: The lsusb command displays the list of USB devices connected to the system in UNIX.


23. Which command is used to display information about the system’s hardware configuration, including CPU, memory, and storage devices?

a) hwinfo

b) lshw

c) lspci

d) lsusb

Answer: b) lshw

Explanation: The lshw command displays information about the system’s hardware configuration, including CPU, memory, and storage devices, in UNIX.


24. What does the uptime command display in UNIX?

a) Current system time

b) System load average and uptime

c) CPU information

d) Network interface configuration

Answer: b) System load average and uptime

Explanation: The uptime command displays the system load average and uptime in UNIX.


25. Which command is used to display information about the system’s CPU architecture, including the number of processors and their capabilities?

a) cpuinfo

b) lscpu

c) top

d) vmstat

Answer: b) lscpu

Explanation: The lscpu command displays information about the system’s CPU architecture, including the number of processors and their capabilities, in UNIX.


26. Which command is used to display information about active network connections and their corresponding processes in UNIX?

a) netstat -p

b) lsof -i

c) ifconfig

d) route

Answer: b) lsof -i

Explanation: The lsof -i command displays information about active network connections and their corresponding processes in UNIX.


27. What does the cat /proc/cpuinfo command display in UNIX?

a) CPU temperature

b) Detailed CPU information

c) Available CPU cycles

d) CPU utilization history

Answer: b) Detailed CPU information

Explanation: The cat /proc/cpuinfo command displays detailed information about the system’s CPU in UNIX.


28. Which command is used to display detailed information about USB devices connected to the system in UNIX?

a) lsusb -v

b) lspci

c) lshw

d) lsblk

Answer: a) lsusb -v

Explanation: The lsusb -v command displays detailed information about USB devices connected to the system in UNIX.


29. What does the ip addr show command display in UNIX?

a) List of currently active network interfaces

b) Network interface configuration

c) ARP cache

d) System uptime and load average

Answer: b) Network interface configuration

Explanation: The ip addr show command displays network interface configuration in UNIX.


30. Which command is used to display detailed information about network interfaces, including their status and statistics, in UNIX?

a) netstat -i

b) ifconfig -a

c) ip link show

d) route -n

Answer: c) ip link show

Explanation: The ip link show command displays detailed information about network interfaces in UNIX.


31. What does the df -T command display in UNIX?

a) Detailed disk usage statistics

b) Filesystem type

c) CPU temperature

d) List of currently active network interfaces

Answer: b) Filesystem type

Explanation: The df -T command displays the filesystem type for each mounted filesystem in UNIX.


32. Which command is used to display detailed information about filesystems, including their type, size, and usage, in UNIX?

a) lsblk

b) du

c) df -h

d) mount

Answer: c) df -h

Explanation: The df -h command displays detailed information about filesystems, including their type, size, and usage, in UNIX.


33. What does the cat /proc/meminfo command display in UNIX?

a) System uptime and load average

b) Memory information

c) CPU information

d) Disk usage statistics

Answer: b) Memory information

Explanation: The cat /proc/meminfo command displays information about memory usage in UNIX.


34. Which command is used to display information about the system’s memory and swap space usage in UNIX?

a) top

b) free -m

c) vmstat

d) ps -aux

Answer: b) free -m

Explanation: The free -m command displays information about the system’s memory and swap space usage in UNIX.


35. What does the cat /proc/sys/kernel/version command display in UNIX?

a) System uptime and load average

b) Kernel version

c) CPU information

d) Disk usage statistics

Answer: b) Kernel version

Explanation: The cat /proc/sys/kernel/version command displays the kernel version in UNIX.


36. Which command is used to display information about filesystem usage, including inode usage, in UNIX?

a) df -i

b) du

c) lsblk

d) mount

Answer: a) df -i

Explanation: The df -i command displays information about filesystem usage, including inode usage, in UNIX.


37. What does the cat /proc/uptime command display in UNIX?

a) CPU temperature

b) System uptime

c) Kernel version

d) Network interface configuration

Answer: b) System uptime

Explanation: The cat /proc/uptime command displays the system uptime in UNIX.


38. Which command is used to display information about the system’s memory and swap space usage in UNIX?

a) top

b) free -m

c) vmstat

d) ps -aux

Answer: b) free -m

Explanation: The free -m command displays information about the system’s memory and swap space usage in UNIX.


39. What does the cat /proc/sys/kernel/version command display in UNIX?

a) System uptime and load average

b) Kernel version

c) CPU information

d) Disk usage statistics

Answer: b) Kernel version

Explanation: The cat /proc/sys/kernel/version command displays the kernel version in UNIX.


40. Which command is used to display information about filesystem usage, including inode usage, in UNIX?

a) df -i

b) du

c) lsblk

d) mount

Answer: a) df -i

Explanation: The df -i command displays information about filesystem usage, including inode usage, in UNIX.


41. What does the cat /proc/uptime command display in UNIX?

a) CPU temperature

b) System uptime

c) Kernel version

d) Network interface configuration

Answer: b) System uptime

Explanation: The cat /proc/uptime command displays the system uptime in UNIX.


42. Which command is used to display detailed information about the system’s memory and swap space usage in UNIX?

a) meminfo

b) free -h

c) vmstat

d) top

Answer: b) free -h

Explanation: The free -h command displays detailed information about the system’s memory and swap space usage in UNIX.


43. What does the cat /proc/loadavg command display in UNIX?

a) CPU utilization statistics

b) System uptime and load average

c) Kernel version

d) Disk usage statistics

Answer: b) System uptime and load average

Explanation: The cat /proc/loadavg command displays the system uptime and load average in UNIX.


44. Which command is used to display information about system load average, including 1-minute, 5-minute, and 15-minute averages, in UNIX?

a) uptime

b) top

c) loadavg

d) vmstat

Answer: a) uptime

Explanation: The uptime command displays information about system load average in UNIX.


45. What does the cat /proc/cpuinfo command display in UNIX?

a) System uptime and load average

b) Detailed CPU information

c) Memory information

d) Disk usage statistics

Answer: b) Detailed CPU information

Explanation: The cat /proc/cpuinfo command displays detailed information about the system’s CPU in UNIX.


46. Which command is used to display information about the system’s memory usage and swap space utilization in UNIX?

a) meminfo

b) free -m

c) vmstat

d) top

Answer: b) free -m

Explanation: The free -m command displays information about the system’s memory usage and swap space utilization in UNIX.


47. What does the cat /proc/loadavg command display in UNIX?

a) CPU utilization statistics

b) System uptime and load average

c) Kernel version

d) Disk usage statistics

Answer: b) System uptime and load average

Explanation: The cat /proc/loadavg command displays the system uptime and load average in UNIX.


48. Which command is used to display information about system load average, including 1-minute, 5-minute, and 15-minute averages, in UNIX?

a) uptime

b) top

c) loadavg

d) vmstat

Answer: a) uptime

Explanation: The uptime command displays information about system load average in UNIX.


49. What does the cat /proc/cpuinfo command display in UNIX?

a) System uptime and load average

b) Detailed CPU information

c) Memory information

d) Disk usage statistics

Answer: b) Detailed CPU information

Explanation: The cat /proc/cpuinfo command displays detailed information about the system’s CPU in UNIX.


50. Which command is used to display information about the system’s memory usage and swap space utilization in UNIX?

a) meminfo

b) free -m

c) vmstat

d) top

Answer: b) free -m

Explanation: The free -m command displays information about the system’s memory usage and swap space utilization in UNIX.

Related Articles

Linux MCQ

Welcome to Linux Multiple Choice Questions (MCQ) Section Embark on a journey through the world of...