UNIX Question and Answer – System Information
UNIX MCQ – Multiple Choice Questions for exam, interview, and Entrance Test
1. Which command is used to display the system uptime and load average in UNIX?
a) uptime
b) time
c) stat
d) clock
Answer: a) uptime
Explanation: The uptime command displays the system uptime and load average in UNIX.
2. What command provides detailed information about current users and their activities in UNIX?
a) uptime
b) w
c) who
d) uname
Answer: b) w
Explanation: The w command provides detailed information about current users and their activities in UNIX.
3. Which command displays information about the currently logged-in users in UNIX?
a) uptime
b) w
c) who
d) uname
Answer: c) who
Explanation: The who command displays information about the currently logged-in users in UNIX.
4. What does the uname command display in UNIX?
a) System load
b) Current time
c) System information
d) Hardware information
Answer: c) System information
Explanation: The uname command displays system information such as the operating system name, kernel version, and machine architecture.
5. Which command is used to display detailed CPU information in UNIX?
a) lscpu
b) lspci
c) lsusb
d) lsblk
Answer: a) lscpu
Explanation: The lscpu command displays detailed CPU information, including architecture, model name, and cache size, in UNIX.
6. What does the lspci command display in UNIX?
a) CPU information
b) Memory information
c) Network interface information
d) PCI devices information
Answer: d) PCI devices information
Explanation: The lspci command displays information about PCI devices in UNIX.
7. Which command is used to display network interface configuration in UNIX?
a) ifconfig
b) netstat
c) ipconfig
d) route
Answer: a) ifconfig
Explanation: The ifconfig command displays network interface configuration, including IP addresses and MAC addresses, in UNIX.
8. What does the netstat command display in UNIX?
a) Network statistics
b) System statistics
c) CPU statistics
d) Disk statistics
Answer: a) Network statistics
Explanation: The netstat command displays network statistics, including active connections, routing tables, and interface statistics, in UNIX.
9. Which command is used to display routing table information in UNIX?
a) ifconfig
b) netstat
c) route
d) ipconfig
Answer: c) route
Explanation: The route command displays routing table information, including the kernel routing table and interface statistics, in UNIX.
10. What is the primary function of the uptime command in UNIX?
a) Display network statistics
b) Display system load average and uptime
c) Display CPU information
d) Display user login history
Answer: b) Display system load average and uptime
Explanation: The uptime command displays the system load average and uptime in UNIX.
11. Which command provides information about the CPU architecture and processor type in UNIX?
a) lscpu
b) lspci
c) lsusb
d) lsblk
Answer: a) lscpu
Explanation: The lscpu command provides information about the CPU architecture and processor type in UNIX.
12. What does the w command display in UNIX?
a) Network interface configuration
b) System load average and uptime
c) Current users and their activities
d) PCI devices information
Answer: c) Current users and their activities
Explanation: The w command displays information about current users and their activities in UNIX.
13. Which command is used to display detailed information about PCI devices in UNIX?
a) lscpu
b) lspci
c) lsusb
d) lsblk
Answer: b) lspci
Explanation: The lspci command displays detailed information about PCI devices in UNIX.
14. What does the who command display in UNIX?
a) Network statistics
b) System uptime and load average
c) Currently logged-in users
d) CPU information
Answer: c) Currently logged-in users
Explanation: The who command displays information about currently logged-in users in UNIX.
15. Which command is used to display information about network interfaces and their configurations in UNIX?
a) ifconfig
b) netstat
c) ipconfig
d) route
Answer: a) ifconfig
Explanation: The ifconfig command displays information about network interfaces and their configurations in UNIX.
16. What does the uname command display in UNIX?
a) Network statistics
b) System information
c) CPU information
d) PCI devices information
Answer: b) System information
Explanation: The uname command displays system information such as the operating system name, kernel version, and machine architecture in UNIX.
17. Which command is used to display active network connections and routing tables in UNIX?
a) ifconfig
b) netstat
c) route
d) ipconfig
Answer: b) netstat
Explanation: The netstat command displays active network connections and routing tables in UNIX.
18. What is the primary function of the lscpu command in UNIX?
a) Display network statistics
b) Display CPU information
c) Display system uptime and load average
d) Display PCI devices information
Answer: b) Display CPU information
Explanation: The lscpu command is used to display detailed CPU information in UNIX.
19. Which command provides information about memory and swap usage in UNIX?
a) free
b) top
c) memstat
d) vmstat
Answer: a) free
Explanation: The free command provides information about memory and swap usage in UNIX.
20. What does the ifconfig command display in UNIX?
a) System uptime and load average
b) CPU information
c) Network interface configuration
d) Currently logged-in users
Answer: c) Network interface configuration
Explanation: The ifconfig command displays network interface configuration in UNIX.
21. Which command is used to display system-wide process-related information, including process IDs and resource usage?
a) ps
b) top
c) pstree
d) process
Answer: a) ps
Explanation: The ps command is used to display system-wide process-related information, including process IDs and resource usage, in UNIX.
22. What does the netstat command display in UNIX?
a) Network statistics
b) System uptime and load average
c) CPU information
d) PCI devices information
Answer: a) Network statistics
Explanation: The netstat command displays network statistics, including active connections and routing tables, in UNIX.
23. Which command is used to display detailed information about the system’s hardware components in UNIX?
a) lshw
b) lspci
c) lsusb
d) hwinfo
Answer: a) lshw
Explanation: The lshw command is used to display detailed information about the system’s hardware components in UNIX.
24. What does the route command display in UNIX?
a) Network interface configuration
b) System uptime and load average
c) Routing table information
d) Currently logged-in users
Answer: c) Routing table information
Explanation: The route command displays routing table information in UNIX.
25. Which command is used to display detailed information about the system’s memory usage, including virtual memory statistics?
a) free
b) top
c) vmstat
d) meminfo
Answer: c) vmstat
Explanation: The vmstat command is used to display detailed information about the system’s memory usage, including virtual memory statistics, in UNIX.
26. Which command is used to display the detailed 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.
27. What does the lshw command display in UNIX?
a) Network interface configuration
b) System hardware information
c) Currently logged-in users
d) CPU statistics
Answer: b) System hardware information
Explanation: The lshw command displays detailed information about the system’s hardware components in UNIX.
28. Which command is used to display the list of USB devices connected to the system in UNIX?
a) lsusb
b) lspci
c) lshw
d) lsblk
Answer: a) lsusb
Explanation: The lsusb command displays the list of USB devices connected to the system in UNIX.
29. What does the hwinfo command display in UNIX?
a) Network interface configuration
b) System hardware information
c) Currently logged-in users
d) CPU statistics
Answer: b) System hardware information
Explanation: The hwinfo command displays detailed information about the system’s hardware components in UNIX.
30. Which command is used to display the list of block devices in UNIX?
a) lsusb
b) lspci
c) lshw
d) lsblk
Answer: d) lsblk
Explanation: The lsblk command displays the list of block devices, such as hard drives and partitions, in UNIX.
31. What does the vmstat command display in UNIX?
a) Virtual memory statistics
b) System uptime and load average
c) CPU information
d) Network statistics
Answer: a) Virtual memory statistics
Explanation: The vmstat command displays virtual memory statistics, including memory usage, paging, and CPU activity, in UNIX.
32. Which command is used to display the list of PCI devices connected to the system in UNIX?
a) lsusb
b) lspci
c) lshw
d) lsblk
Answer: b) lspci
Explanation: The lspci command displays the list of PCI devices connected to the system in UNIX.
33. What does the meminfo command display in UNIX?
a) Virtual memory statistics
b) System uptime and load average
c) CPU information
d) Memory information
Answer: d) Memory information
Explanation: The meminfo command displays information about memory usage in UNIX.
34. Which command is used to display detailed CPU usage statistics in UNIX?
a) cpuinfo
b) top
c) vmstat
d) ps
Answer: b) top
Explanation: The top command displays detailed CPU usage statistics, including processes consuming the most CPU time, in UNIX.
35. What does the ps command display in UNIX?
a) Network statistics
b) System uptime and load average
c) CPU information
d) Process status
Answer: d) Process status
Explanation: The ps command displays information about active processes, including their process IDs and resource usage, in UNIX.
36. Which command is used to display detailed information about the system’s CPU architecture in UNIX?
a) cpuinfo
b) lscpu
c) top
d) vmstat
Answer: b) lscpu
Explanation: The lscpu command displays detailed information about the system’s CPU architecture, including the number of processors and their capabilities, in UNIX.
37. What does the ipconfig command display in UNIX?
a) System uptime and load average
b) Network interface configuration
c) Memory information
d) Currently logged-in users
Answer: b) Network interface configuration
Explanation: The ipconfig command displays network interface configuration in UNIX.
38. Which command is used to display information about mounted filesystems in UNIX?
a) mount
b) df
c) fsstat
d) cat /etc/fstab
Answer: b) df
Explanation: The df command displays information about mounted filesystems, including their disk space usage, in UNIX.
39. What does the cat /proc/cpuinfo command display in UNIX?
a) System uptime and load average
b) Detailed CPU information
c) Network interface configuration
d) Memory information
Answer: b) Detailed CPU information
Explanation: The cat /proc/cpuinfo command displays detailed information about the system’s CPU in UNIX.
40. Which command is used to display information about available disk space in UNIX?
a) du
b) fdisk
c) df
d) diskusage
Answer: c) df
Explanation: The df command is used to display information about available disk space in UNIX.
41. What does the cat /proc/meminfo command display in UNIX?
a) Virtual memory statistics
b) System uptime and load average
c) Memory information
d) CPU information
Answer: c) Memory information
Explanation: The cat /proc/meminfo command displays information about memory usage in UNIX.
42. Which command is used to display information about active network connections in UNIX?
a) netstat
b) ifconfig
c) route
d) arp
Answer: a) netstat
Explanation: The netstat command displays information about active network connections in UNIX.
43. What does the df -h command display in UNIX?
a) Detailed CPU information
b) Available disk space in human-readable format
c) Network interface configuration
d) Memory information
Answer: b) Available disk space in human-readable format
Explanation: The df -h command displays available disk space in a human-readable format in UNIX.
44. Which command is used to display information about active and listening sockets in UNIX?
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 in UNIX.
45. What does the uname -a command display in UNIX?
a) CPU information
b) System information
c) Memory information
d) Network interface configuration
Answer: b) System information
Explanation: The uname -a command displays system information such as the operating system name, kernel version, and machine architecture in UNIX.
46. Which command is used to display detailed information about the system’s network interfaces in UNIX?
a) ifconfig
b) ipconfig
c) netstat
d) route
Answer: a) ifconfig
Explanation: The ifconfig command displays detailed information about the system’s network interfaces in UNIX.
47. What does the arp command display in UNIX?
a) Network statistics
b) System uptime and load average
c) ARP cache
d) CPU information
Answer: c) ARP cache
Explanation: The arp command displays the ARP cache, which contains mappings between IP addresses and MAC addresses, in UNIX.
48. 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 displays information about active processes and their resource usage in UNIX.
49. 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.
50. Which command is used to display information about system memory usage and swap space 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 in UNIX.