Chapter 8: Unix and Linux Operating Systems (Set-7)

In Unix/Linux, what term best describes a command-line interface program that reads commands and runs them

A Shell program
B Kernel module
C Desktop theme
D Device driver

Which Linux desktop environment is commonly known for a highly customizable GUI

A Bash shell
B Linux kernel
C KDE Plasma
D Cron daemon

Which directory is commonly used for optional third-party software installed separately from the OS base

A /etc directory
B /opt directory
C /bin directory
D /proc directory

Which directory typically holds bootloader and kernel-related boot files on many systems

A /var directory
B /tmp directory
C /boot directory
D /home directory

Which directory is commonly used as a temporary mount location for removable media by admins

A /mnt directory
B /etc directory
C /sbin directory
D /usr directory

Which directory is commonly used by desktop systems to auto-mount USB drives and DVDs

A /bin directory
B /proc directory
C /media directory
D /dev directory

Which command displays the IP address information using modern iproute2 tooling

A ifconfig -a
B netstat -i
C ping -a
D ip addr

Which command shows the system’s default gateway and routes in a compact form

A ip route
B ip link
C ip neigh
D ip rule

In Linux, which file concept best matches “a shortcut that stores a path to a target”

A Hard link
B Device file
C Symbolic link
D FIFO file

Which command creates a hard link to an existing file on the same filesystem

A linkto command
B mkln command
C cp link
D ln command

Which command shows how many hard links a file currently has

A stat -u
B ls -l
C file -l
D du -l

Which command displays the current shell’s environment variables in one list

A chmod command
B mount command
C printenv command
D mkdir command

Which built-in feature lets you create a short name for a longer command in the shell

A alias feature
B kernel feature
C mount feature
D cron feature

Which command removes a previously set alias in a shell session

A unexport command
B unlink command
C unalias command
D unsetenv command

In bash scripting, which symbol begins a comment that is ignored by the shell

A $ symbol
B # symbol
C & symbol
D | symbol

Which first line makes a script run using Bash on most systems when executed directly

A #!/bin/sh
B #!/usr/bin/vi
C #!/etc/bash
D #!/bin/bash

Which command makes a script executable for the file owner only using symbolic mode

A chmod g+x
B chmod o+x
C chmod u+x
D chmod a-w

Which command changes the current user to root after asking for the root password

A su command
B sudo command
C ssh command
D id command

Which file often controls system-wide environment settings for Bash interactive shells

A /etc/sudoers
B /etc/fstab
C /etc/bash.bashrc
D /etc/hosts

Which command shows file and directory permissions in a compact 10-character format

A pwd -l
B ls -l
C du -l
D df -l

For directories, which permission is required to enter the directory using cd

A Execute bit
B Write bit
C Read bit
D Sticky bit

Which command shows current running processes for all users in a full-format listing commonly

A ps -l
B ps -p
C ps aux
D ps -d

Which command sends a hangup-like signal often used to request a daemon reload

A kill -KILL
B kill -HUP
C kill -STOP
D kill -TERM

Which command pauses a running process without terminating it, using job control

A Ctrl+C
B Ctrl+R
C Ctrl+D
D Ctrl+Z

Which command resumes a stopped job in the background in many shells

A bg command
B fg command
C jobs command
D kill command

Which command shows the full manual entry list matching a keyword topic

A uname command
B who command
C apropos command
D echo command

Which command shows current logged-in username but not groups or IDs

A id command
B whoami command
C groups command
D last command

Which command displays the current system hostname

A hostname command
B hostip command
C whohost command
D namehost command

Which file usually stores the system hostname on many Linux distributions

A /etc/hosts
B /etc/resolv.conf
C /etc/hostname
D /etc/fstab

Which command changes the hostname temporarily until next reboot on many systems

A uname newname
B whoami newname
C chown newname
D hostname newname

On systemd systems, which command is used to set a persistent hostname cleanly

A systemctl set-hostname
B journalctl set-hostname
C hostnamectl set-hostname
D hostctl set-name

Which command shows active users and their current activity in a single short display

A w command
B who command
C id command
D ps command

Which command displays the system’s currently running kernel release information

A uname -a
B name -r
C uname -r
D host -r

Which command lists kernel modules currently loaded into the running kernel

A lspci command
B lsusb command
C lsof command
D lsmod command

Which command loads a kernel module into the running system, usually requiring admin rights

A moduleadd command
B modprobe command
C insuser command
D driveron command

Which command removes a loaded kernel module when it is no longer needed

A modprobe -a
B lsmod -r
C modprobe -r
D rmmod -a

Which command shows the Linux distribution release details from a standard file

A cat /etc/os-release
B cat /etc/hostname
C cat /etc/fstab
D cat /etc/group

Which package file format is used by Debian-based distributions

A .rpm package
B .msi package
C .deb package
D .pkg bundle

Which package file format is used by Red Hat family distributions

A .deb package
B .rpm package
C .dmg package
D .apk package

Which command shows a list of all installed RPM packages on an RPM-based system

A rpm -qi
B rpm -ql
C rpm -qf
D rpm -qa

Which command shows details of a specific RPM package, such as version and description

A rpm -qa
B rpm -ql
C rpm -qi
D rpm -qf

Which command lists files installed by a specific RPM package

A rpm -ql
B rpm -qi
C rpm -qa
D rpm -qR

In Debian systems, which command searches installed packages by name and status in one listing

A dpkg -i
B dpkg -l
C dpkg -r
D dpkg -S

Which dpkg command finds which installed package owns a specific file path

A dpkg -l
B dpkg -i
C dpkg -S
D dpkg -P

Which command checks the integrity of installed package files on many RPM-based systems

A rpm -V
B rpm -U
C rpm -e
D rpm -K

Which Linux command changes the group ownership of a file to a new group

A chown command
B chmod command
C groups command
D chgrp command

Which command displays the system’s current date and time in the terminal

A cal command
B time command
C date command
D now command

Which command displays a calendar view for the current month in many Unix-like systems

A cal command
B date command
C time command
D month command

Which command displays the current working directory but resolves physical paths and symlinks in many shells

A cd -P
B ls -P
C pwd -P
D du -P

Which command extracts a specific field from text output using a separator like “:” in many cases

A grep -d
B cut -d
C sort -d
D uniq -d

Leave a Reply

Your email address will not be published. Required fields are marked *