Linux Questions

Practice Linux MCQs with answers and explanations. Page 3 of 7.

Category
Computer Science
Topic
Linux
Page
3 / 7
Mode
Practice

Questions

Open any question to view the answer and explanation.

On a Linux system, which command-line utility is used to access (connect to) a Windows/SMB network share?
Open
View answer
In the vi (Vim) editor, which single-key Normal-mode command deletes exactly one character at the cursor position?
Open
View answer
In classic PC partitioning (MBR), how many primary partitions can exist on a single physical drive?
Open
View answer
For configuring the X Window System on legacy Linux distributions, which tool from the list is specifically the X-based graphical setup utility?
Open
View answer
In shell pattern matching (globbing), which wildcard matches any number of characters, including zero characters (that is, it can match an empty string)?
Open
View answer
Which command can you execute to count only the number of lines in a file on Unix/Linux?
Open
View answer
Within the OSI networking model, which statement correctly describes the responsibility of the Physical layer (Layer 1)?
Open
View answer
In the vi editor, which command is used to save the current file without quitting, thereby remaining in the editing mode?
Open
View answer
On a Unix/Linux system, which command is commonly used to see the services running on an NFS (Network File System) server?
Open
View answer
By default, on which port does the Squid proxy server listen for incoming client requests?
Open
View answer
Linux server interoperability: During custom installation or configuration, which package group enables a Linux machine to share files and printers with Windows clients using SMB/CIFS?
Open
View answer
Linux desktop selection: Which utility lets you switch the default X Window desktop environment (for example, between GNOME and KDE) on certain Linux distributions?
Open
View answer
Network services registry: On UNIX/Linux systems using inetd (or xinetd historically), which file lists service names and their corresponding TCP/UDP port numbers?
Open
View answer
OSI model fundamentals: Which OSI layer provides services for end-user applications, including authentication, resource sharing, file transfer, and network management features?
Open
View answer
User identity queries in UNIX: Which command displays information about the current user in a human-friendly form (commonly showing login name, terminal, and time)?
Open
View answer
File rename operation in UNIX: Which command is used to rename a file (and can also move it between directories)?
Open
View answer
Linux/UNIX filesystem basics Which directory on a typical Linux system contains many system administrator executables and related system-management tools (alongside some configuration locations elsewhere)?
Open
View answer
Linux installation methods Which types of Linux installations typically require a special boot disk or boot image because additional drivers (for networking or laptop controllers) are needed to start the installer?
Open
View answer
IPv4 classful addressing (legacy concept) Which IPv4 address class historically suited a very small number of networks with a very large number of hosts (nodes) per network?
Open
View answer
Linux FTP access control In which configuration file can a Linux administrator list user accounts that are not allowed to log in via FTP service?
Open
View answer

Practice smarter

Solve a few questions daily and revisit weak topics regularly to improve accuracy.