IS 192
Linux Administration
Midterms Exam Review (Qns & Ans)
2025
1. Which command is used to view and modify scheduled tasks
on a Linux system?
A. `systemctl`
B. `cron`
C. `crontab`
D. `lsblk`
- ANS: C. `crontab`
- Rationale: The `crontab` command allows users to schedule
and manage recurring tasks, while `cron` is the service that
executes them.
©2025
,2. What does the `chmod 755 file.txt` command do?
A. Grants read, write, and execute permissions to the owner
only
B. Grants read and execute permissions to the group and others,
while giving the owner full permissions
C. Removes all permissions for the file
D. Changes ownership of the file
- ANS: B. Grants read and execute permissions to the group
and others, while giving the owner full permissions
- Rationale: The `chmod 755` command sets permissions
such that the owner has all permissions, and the group and others
have read and execute permissions.
3. Which file is primarily used to configure a static IP address in
most Linux distributions?
A. `/etc/hosts`
B. `/etc/resolv.conf`
C. `/etc/network/interfaces`
D. `/var/log/messages`
- ANS: C. `/etc/network/interfaces`
©2025
, - Rationale: The `/etc/network/interfaces` file is used in many
Linux distributions to configure network interfaces, including
static IPs.
4. What is the purpose of the `iptables` command in Linux?
A. To monitor system performance
B. To configure and manage firewall rules
C. To create symbolic links
D. To archive and compress files
- ANS: B. To configure and manage firewall rules
- Rationale: The `iptables` command is used to define and
manage packet filtering rules for the Linux kernel firewall.
5. What is the purpose of `SELinux` in a Linux system?
A. To automate software updates
B. To provide additional security policies for access control
C. To monitor system resource usage
D. To create and manage RAID volumes
- ANS: B. To provide additional security policies for access
control
- Rationale: SELinux (Security-Enhanced Linux) enforces
mandatory access control policies to enhance system security.
©2025
, ---
Fill-in-the-Blank Questions
6. In Linux, the __________ directory contains user-specific
crontab files used to schedule recurring tasks.
- ANS: `/var/spool/cron`
- Rationale: The `/var/spool/cron` directory stores individual
crontab files for user accounts.
7. The __________ command displays information about system
memory usage, including free and used memory.
- ANS: `free`
- Rationale: The `free` command is used to display system
memory statistics.
8. A Linux system's bootloader configuration is typically stored
in the __________ directory.
- ANS: `/boot`
- Rationale: The `/boot` directory contains files required to
configure and boot the operating system, including bootloader
files.
©2025
Linux Administration
Midterms Exam Review (Qns & Ans)
2025
1. Which command is used to view and modify scheduled tasks
on a Linux system?
A. `systemctl`
B. `cron`
C. `crontab`
D. `lsblk`
- ANS: C. `crontab`
- Rationale: The `crontab` command allows users to schedule
and manage recurring tasks, while `cron` is the service that
executes them.
©2025
,2. What does the `chmod 755 file.txt` command do?
A. Grants read, write, and execute permissions to the owner
only
B. Grants read and execute permissions to the group and others,
while giving the owner full permissions
C. Removes all permissions for the file
D. Changes ownership of the file
- ANS: B. Grants read and execute permissions to the group
and others, while giving the owner full permissions
- Rationale: The `chmod 755` command sets permissions
such that the owner has all permissions, and the group and others
have read and execute permissions.
3. Which file is primarily used to configure a static IP address in
most Linux distributions?
A. `/etc/hosts`
B. `/etc/resolv.conf`
C. `/etc/network/interfaces`
D. `/var/log/messages`
- ANS: C. `/etc/network/interfaces`
©2025
, - Rationale: The `/etc/network/interfaces` file is used in many
Linux distributions to configure network interfaces, including
static IPs.
4. What is the purpose of the `iptables` command in Linux?
A. To monitor system performance
B. To configure and manage firewall rules
C. To create symbolic links
D. To archive and compress files
- ANS: B. To configure and manage firewall rules
- Rationale: The `iptables` command is used to define and
manage packet filtering rules for the Linux kernel firewall.
5. What is the purpose of `SELinux` in a Linux system?
A. To automate software updates
B. To provide additional security policies for access control
C. To monitor system resource usage
D. To create and manage RAID volumes
- ANS: B. To provide additional security policies for access
control
- Rationale: SELinux (Security-Enhanced Linux) enforces
mandatory access control policies to enhance system security.
©2025
, ---
Fill-in-the-Blank Questions
6. In Linux, the __________ directory contains user-specific
crontab files used to schedule recurring tasks.
- ANS: `/var/spool/cron`
- Rationale: The `/var/spool/cron` directory stores individual
crontab files for user accounts.
7. The __________ command displays information about system
memory usage, including free and used memory.
- ANS: `free`
- Rationale: The `free` command is used to display system
memory statistics.
8. A Linux system's bootloader configuration is typically stored
in the __________ directory.
- ANS: `/boot`
- Rationale: The `/boot` directory contains files required to
configure and boot the operating system, including bootloader
files.
©2025