NEW
Font size
WorksheetsModule I: Introduction to UNIX
Total questions: 20
Worksheet time: 10mins
Which component acts as a command line interpreter that translates user-entered commands into a language understood by the kernel?
Shell
Daemon
Compiler
Filesystem
A user types a command with optional flags to list files, and the system interprets the command using standard syntax before invoking the appropriate program. Which UNIX component performs this role?
Kernel
Shell
Directory
cp command
Refer to the depicted UNIX architecture where users interact through the Shell layered around the Kernel, which surrounds the Hardware. Which statement best describes the division of labor between the Kernel and the Shell?
The Shell manages hardware devices while the Kernel interprets user commands.
The Kernel is the core that interacts with the machine’s hardware, while the Shell interfaces with the user.
Both Kernel and Shell directly control hardware without mediating user interaction.
The Shell loads the Kernel into memory at startup and remains inactive afterward.
Which step in the Linux bootstrap process involves starting background services by running predefined scripts?
Loading the code and initializing the kernel
Detecting and configuring devices
Execution of system startup scripts
Operator intervention (manual boot only)
In Linux, user programs access hardware by interacting with the kernel through what interface?
Direct hardware drivers
BIOS interrupts
System Calls
Shell pipelines
What accurately describes the relationship between the number of kernels and shells on a running system?
Multiple kernels can run, but only one shell per user
Only one kernel runs, but there can be several shells—one for each logged-in user
One kernel and one shell always run system-wide
Several kernels and shells run, one pair per process
Which statement best describes the UNIX building-block approach using the piping mechanism?
It allows multiple users to log in to the same machine simultaneously.
It lets a user run one job in the foreground and others in the background.
It connects simple tools so the output of one command becomes the input of another, enabling complex text manipulation.
It enables the kernel to terminate suspended jobs automatically.
Which statement best illustrates UNIX pattern matching as described?
Using the command man to view documentation for a command
Combining multiple small tools into a pipeline
Selecting all C source files by specifying the wildcard pattern *.c instead of listing each filename
Declaring variables and loops within the shell
Which command is used to connect to the UNIX system in the login steps shown, after opening cmd?
ssh 10.0.9.222
telnet 10.0.9.222
ftp 10.0.9.222
rlogin 10.0.9.222
In which language UNIX is written?
C
C++
JAVA
PYTHON
Which of the following is not a feature of Unix?
Multiuser
Multitasking
Portability
Easy of use
Which of the following is not a part of all the versions of Unix?
System Calls
Graphical user interface
Kernel and Shell
Commands and utilities
Which command is used to display the documentation of commands in Unix?
whatis
help
search
man
Which command is used for listing files in a directory?
list
ls
ps
wc
Which Unix command is used for counting words, lines, and characters in a file?
count
wc
ls
man
Which of the following cannot be performed by cat command?
appending file
creating files
displaying files
deleting files
Which of the following is not a type of shell?
C shell
Korn shell
Bourne shell
Perl shell
Which command is used to check calendar?
check-calendar
cal
CALENDAR
CAL
Which of the following commands can be used to get information about yourself?
who
pwd
which
who am i
-h option is used with who command for what purpose?
display output with header information
display output with a more detailed version
display output with trailer information
display output in columnar form
