Linux Questions
Practice Linux MCQs with answers and explanations. Page 5 of 7.
Category
Computer Science
Topic
Linux
Page
5 / 7
Mode
Practice
Questions
Open any question to view the answer and explanation.
Scheduling recurring jobs on Unix/Linux systems
Which program is traditionally used to schedule commands or scripts to run at specific times and dates automatically?
Open
View answer
Checking and repairing Linux file systems
Which tool is used to verify and repair Linux file systems after improper shutdowns or detected inconsistencies?
Open
View answer
Changing the working directory on Unix/Linux
Which standard command changes the shell’s current working directory?
Open
View answer
Binary to dotted-decimal conversion of an IPv4 address
Convert the 32-bit address 10000000 00001010 00000010 00011110 to dotted-decimal form.
Open
View answer
History of Linux: founder of the Linux kernel
Who initiated and originally developed the Linux kernel project?
Open
View answer
Changing file permissions: make file named report executable for everyone
Which chmod command grants execute permission to user, group, and others on a file named report (without altering other permissions)?
Open
View answer
Linux shell startup files:
Which system-wide script sets default environment variables and startup behavior for all users when they log in to a Bash shell?
Open
View answer
Unix command-line basics:
Which command is commonly used to display the contents of files and can also be used to create simple files from standard input?
Open
View answer
Linux boot loaders:
What is LILO and what is it used for in the context of Linux on x86 hardware?
Open
View answer
Disk partitioning (MBR scheme):
How many extended partitions can be created on a single MBR-partitioned drive?
Open
View answer
Linux disk quotas:
Which administrative command is used to set (edit) user and group quotas on a Linux system?
Open
View answer
RPM basics (Linux packaging):
Which statement best describes RPM in practical, distribution-agnostic terms?
Open
View answer
Linux logs (Red Hat family):
Where are system and mail log files typically stored on Red Hat–based distributions?
Open
View answer
RPM query mode:
Which rpm command option is used to query information about a specific package (for example, to check if it is installed)?
Open
View answer
Filesystem hierarchy (FHS):
Which directory is designated for user system resources, including subdirectories for user and administrative executables such as /usr/bin and /usr/sbin?
Open
View answer
Unix text-processing tools:
Which of the following is <em>not</em> a filter command (i.e., a program that reads from standard input and writes to standard output)?
Open
View answer
Linux system administration:
Which command-line utility is used to create, delete, and modify disk partitions on a hard drive (for example, preparing a new disk before making filesystems)?
Open
View answer
UNIX file management:
Which command removes (deletes) a file from the filesystem, permanently freeing its directory entry and disk space after the last link is gone?
Open
View answer
Shell pipelines and counting:
Using standard pipelines, which command counts the number of directory entries shown by ls in the current directory (one count per line of ls output)?
Open
View answer
vi editor navigation:
In classic vi normal mode, which single-key motion command moves the cursor one character to the left?
Open
View answer
Practice smarter
Solve a few questions daily and revisit weak topics regularly to improve accuracy.