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

On a Linux terminal, which key usually auto-completes commands and file names to reduce typing

A Enter key
B Tab key
C Esc key
D Space key

To display a text file one screen at a time in a simple pager, which command is commonly used

A cat command
B touch command
C more command
D mv command

Which command prints a short message or variable value directly to the terminal

A show command
B echo command
C print command
D write command

Which command changes the current working directory to the user’s home directory quickly

A cd /
B cd ..
C cd –
D cd ~

Which command changes the current working directory to the previous directory you were in

A cd ~
B cd /
C cd –
D cd .

Which command displays the last few lines of a file by default, helpful for logs

A tail command
B head command
C wc command
D cut command

Which command prints only the first few lines of a file by default

A tail command
B head command
C sort command
D uniq command

In Linux, which command displays the currently logged-in user sessions and terminals

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

Which command shows the numeric user ID and group IDs for the current user

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

Which command lists the groups that the current user belongs to

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

Which command changes a user’s password securely from the terminal

A passwd command
B pass command
C userpass command
D authset command

Which command displays disk usage summary for a folder tree when used with suitable options

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

Which command shows free and used space of each mounted filesystem

A du command
B df command
C free command
D ls command

Which command displays free and used RAM and swap memory

A df command
B du command
C top command
D free command

Which command checks network connectivity by sending ICMP echo requests

A ssh command
B scp command
C ping command
D grep command

Which command securely logs in to a remote Linux server using encryption

A ftp command
B ssh command
C telnet command
D rlogin command

Which command copies a local file to a remote host securely using SSH transport

A scp command
B cp command
C mv command
D tar command

In Linux directory structure, which folder holds essential system commands needed for basic operation

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

Which directory usually stores system configuration files and service settings

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

Which directory typically stores changing data like logs, caches, and spool files

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

Which directory contains device files representing disks, terminals, and other hardware devices

A /usr directory
B /home directory
C /dev directory
D /etc directory

Which directory shows kernel and process information through a virtual filesystem

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

In Linux permissions, which letter represents write permission

A w permission
B r permission
C x permission
D d permission

In Linux permissions, which letter indicates execute permission

A w permission
B r permission
C x permission
D s permission

Which command changes file permissions using numeric modes like 644 or 755

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

Which command changes the owner of a file to another user

A chmod command
B mv command
C cp command
D chown command

Which command runs a single command with administrator privileges for permitted users

A su command
B top command
C sudo command
D ps command

Which command shows a continuously updating list of processes and resource usage

A top command
B ps command
C grep command
D cat command

Which command shows a snapshot list of processes currently running

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

Which command stops a process by sending a signal using its PID

A stop command
B end command
C kill command
D close command

Which tool displays help pages for commands and options from the terminal

A help command
B docs command
C infofile command
D man command

Which command searches inside a file for matching text patterns and prints matching lines

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

Which command creates an empty file if it does not exist

A create command
B newfile command
C touch command
D makefile command

Which command displays file contents in the terminal without opening an editor

A nano command
B cat command
C vi command
D edit command

Which command shows the path of the current working directory

A path command
B where command
C locate command
D pwd command

Which Linux feature allows running multiple commands at scheduled times repeatedly

A root account
B kernel module
C cron scheduler
D GUI desktop

Which system command installs packages from online repositories in Debian/Ubuntu systems

A yum install
B apt install
C rpm install
D tar install

Which command updates the package list from repositories on Debian-based systems

A apt update
B apt upgrade
C apt remove
D apt search

Which command upgrades installed packages to newer versions on Debian-based systems

A apt update
B apt install
C apt upgrade
D apt purge

Which package manager command installs software on many Red Hat family systems

A apt install
B yum install
C dpkg install
D zip install

Which command shows the system’s kernel name and version details

A whoami -r
B pwd -r
C echo -r
D uname -r

Which directory commonly stores user personal files like documents and downloads

A /etc directory
B /home directory
C /bin directory
D /sbin directory

Which command checks whether a command exists and shows its location in PATH

A which command
B where command
C show command
D findcmd command

Which command shows detailed file information like permissions, owner, and size

A ls -a
B ls -t
C ls -l
D ls -R

Which command shows hidden files along with normal files in a directory

A ls -l
B ls -a
C ls -h
D ls -p

Which command creates a new directory and also creates missing parent directories

A mkdir -a
B mkdir -x
C mkdir -d
D mkdir -p

Which command moves a file to a new name or location

A cp command
B rm command
C mv command
D cd command

Which command copies files from source to destination without removing the original

A mv command
B cp command
C rm command
D ls command

Which command removes an empty directory only, and fails if the directory contains files

A rmdir command
B rm command
C deldir command
D erasedir command

Which command opens a simple terminal editor suitable for beginners to edit text files

A vi editor
B grep tool
C nano editor
D tar tool

Leave a Reply

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