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

In Linux, which command quickly shows the currently logged-in username in the terminal

A uname command
B whereis command
C whoami command
D which command

Which command displays system information such as kernel name and version in Linux

A uname command
B ps command
C df command
D du command

Which command shows the current date and time directly in the terminal

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

In Linux, which command clears the terminal screen without closing the session

A exit command
B reset command
C clear command
D close command

Which symbol refers to the current user’s home directory in many Linux shells

A ~ symbol
B / symbol
C . symbol
D .. symbol

When working in Linux paths, what does “.” represent in a command

A Root directory
B Home directory
C System directory
D Current directory

In Linux path navigation, what does “..” represent

A Parent directory
B Current directory
C Root directory
D Home directory

Which option is a GUI desktop environment commonly used on Linux systems

A Bash shell
B Linux kernel
C GNOME desktop
D Cron service

Which package manager command is commonly used on Debian/Ubuntu-based systems

A yum command
B apt command
C rpm command
D pacman command

Which package manager tool is traditionally associated with Red Hat family systems

A yum tool
B apt tool
C dpkg tool
D brew tool

In Linux, which low-level tool directly installs or queries Debian package files

A apt tool
B yum tool
C dpkg tool
D snap tool

Which directory commonly stores user-installed programs and read-only shared data

A /tmp directory
B /proc directory
C /dev directory
D /usr directory

Which Linux directory often contains user command binaries on many systems

A /etc/bin folder
B /usr/bin folder
C /var/bin folder
D /home/bin folder

Which directory commonly stores system log files like authentication and service logs

A /etc/log folder
B /usr/log folder
C /var/log folder
D /home/log folder

What is a “mount point” in Linux filesystem usage

A Attachment directory
B File permission
C Disk partition
D Shell command

Which command is commonly used to create a compressed gzip tar archive

A zip utility
B cat utility
C tar with gzip
D grep utility

Which compressed format is commonly produced by tar combined with gzip

A .tar.gz file
B .iso file
C .exe file
D .dll file

Which command shows the first lines of a text file, useful for quick preview

A tail command
B head command
C less command
D more command

Which command shows the last lines of a log file, useful for recent events

A head command
B grep command
C tail command
D mkdir command

Which command helps view long text output page-by-page inside the terminal

A less command
B pwd command
C touch command
D whoami command

Which command finds the full path of an executable based on the current PATH

A whereis command
B locate command
C who command
D which command

Which command searches for a command’s binary, source, and manual locations

A which command
B grep command
C whereis command
D cat command

Which command searches a database to locate files by name quickly

A locate command
B find command
C grep command
D mv command

Which command searches directories in real time to find files matching conditions

A locate command
B find command
C which command
D uname command

What is the main purpose of the PATH environment variable in Linux

A Encrypt files
B Set disk quota
C Find executables
D Create users

Which environment variable commonly stores the current user’s home directory path

A HOME variable
B PATH variable
C SHELL variable
D USER variable

Which file name is commonly used for the Bash shell startup configuration for a user

A .kernelrc file
B .bashrc file
C .loginsh file
D .systemrc file

Which symbol is commonly used as a wildcard to match any sequence of characters

A ? wildcard
B # wildcard
C * wildcard
D @ wildcard

Which wildcard matches exactly one character in many Linux shells

A ? wildcard
B * wildcard
C ! wildcard
D % wildcard

Which command shows group membership information for a user session

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

Which file typically stores user account information like usernames and user IDs

A /etc/shadow file
B /var/log file
C /etc/passwd file
D /home/passwd file

Which file typically stores password hashes and is readable only by root

A /etc/passwd file
B /etc/shadow file
C /etc/group file
D /var/shadow file

In Linux, which file stores group definitions and group IDs

A /etc/group file
B /etc/shadow file
C /etc/fstab file
D /var/group file

Which command is commonly used to change a user’s password in Linux

A password command
B passset command
C userpass command
D passwd command

Which Linux command displays recent login history of users

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

Which command shows who is currently logged in to the system

A who command
B last command
C uname command
D top command

Which command shows a user’s UID, GID, and group memberships in one output

A whoami command
B id command
C chmod command
D df command

What is the main security advantage of SSH over Telnet

A Faster display
B Smaller commands
C Encrypted traffic
D No authentication

Which Linux command tests whether an SSH service is reachable on a host using a secure login attempt

A ssh command
B ping command
C traceroute command
D ifconfig command

Which command shows network interface details on many older Linux systems

A ifconfig command
B grep command
C chmod command
D tar command

Which modern command is commonly recommended to view IP addresses and interfaces

A netcat command
B ip command
C echo command
D more command

Which command can show the system’s routing table and network routes

A rm route
B tar route
C ip route
D cd route

Which command prints a systemd service status and recent logs for that service

A service start
B syslog view
C logctl check
D systemctl status

Which command is used to start a service immediately on a systemd-based Linux system

A systemctl start
B systemctl stop
C systemctl list
D systemctl show

Which systemd command enables a service to start automatically at boot

A systemctl start
B systemctl reload
C systemctl enable
D systemctl mask

Which directory commonly stores vendor systemd unit files on many Linux systems

A /etc/systemd/system
B /usr/lib/systemd/system
C /home/systemd/system
D /tmp/systemd/system

Which command checks whether a command exists and shows its type in the shell

A type command
B file command
C sort command
D tee command

Which utility can schedule a one-time job to run later, unlike repeated cron jobs

A top command
B df command
C at command
D ps command

Which basic firewall tool is commonly referenced for Linux host firewall management

A iptables tool
B notepad tool
C package tool
D mount tool

Which basic troubleshooting step helps confirm a DNS name resolves to an IP address

A chmod command
B mkdir command
C tar command
D nslookup command

Leave a Reply

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