Linux Questions
Practice Linux MCQs with answers and explanations. Page 7 of 7.
Category
Computer Science
Topic
Linux
Page
7 / 7
Mode
Practice
Questions
Open any question to view the answer and explanation.
System administration: Which command cleanly halts (powers down) a Linux system by changing runlevel to 0?
Open
View answer
Creating a boot floppy from UNIX/Linux: Which command writes a raw disk image to a device (e.g., making an installation boot floppy)?
Open
View answer
Shell wildcards: Which single wildcard matches exactly one character in UNIX shell globbing?
Open
View answer
Networking fundamentals: IPv4 addresses use how many bits for the full address length?
Open
View answer
Classic UNIX super-server: Which of the following services is typically NOT managed by inetd/xinetd by default?
Open
View answer
Email protocols: Which TCP/IP protocol is used to transfer electronic mail from one mail server to another across the Internet?
Open
View answer
Linux user management: default group assignment when creating a new account
You have just added a new user named 'kara' using standard Linux tools (for example, useradd). By default, to which primary group is this user typically added?
Open
View answer
chmod practice: remove execute for the user and grant read to group and others
For a file named 'letter', which command removes the user's execute permission while adding read permission for the group and others (without altering other bits)?
Open
View answer
Automated installations on Red Hat–style systems
Which tool is used to generate configuration for automated installs on matching hardware (Kickstart-based approach)?
Open
View answer
Basic file management on Linux/Unix
Which command is used to delete (remove) a file from the filesystem?
Open
View answer
Lightweight file transfer over IP networks
Which TCP/IP protocol provides simple, minimal-overhead file transfers, often used for bootstrapping devices?
Open
View answer
Locating Linux kernel headers and sources for module builds
On a traditional system preparing to build a modularized kernel, where are the kernel headers and source commonly located?
Open
View answer
Quick file viewing utilities: show the end of a file
Which command displays the last 10 lines of a file by default?
Open
View answer
vi editor navigation: move forward to the end of the current/next word
In the vi editor's normal mode, which single-key command moves the cursor forward to the end of a word?
Open
View answer
Mounting NFS file systems on Unix/Linux
Which command is used to mount a remote NFS export into the local directory tree?
Open
View answer
Bootloader configuration after compiling a new kernel (LILO-based systems)
After building a new kernel image, which configuration file must be edited (and updated) so the system can boot the new kernel using LILO?
Open
View answer
Practice smarter
Solve a few questions daily and revisit weak topics regularly to improve accuracy.