In Linux, what does the command 'echo $SHELL' display? MCQ with Answer and Explanation

In Linux, what does the command 'echo $SHELL' display?
A. The current shell's path
B. The user's home directory
C. A list of available shells
D. The system's shell version
Answer: Option A
Solution (By JKSSB Mock Tests)
$SHELL environment variable holds the path to the current user's default shell, e.g., /bin/bash.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
In Windows, the 'System Information' tool (msinfo32) displays:
A. Hardware resources, components, and software environment
B. Startup programs
C. Performance metrics
D. Event logs

Correct Answer: Option A


Explanation:
msinfo32 provides a comprehensive summary of system hardware, drivers, and software settings.

This question belongs to: Computer Operating Systems
Question #2
What is the kernel of an operating system?
A. The bootloader
B. A set of system utilities
C. The core component that manages hardware and system resources
D. The graphical user interface

Correct Answer: Option C


Explanation:
The kernel is the central part of an OS, responsible for memory management, process scheduling, and hardware communication.

This question belongs to: Computer Operating Systems
Question #3
What type of operating system kernel includes all device drivers, file system handlers, and process management routines inside a single massive binary space running in privileged mode?
A. Monolithic Kernel
B. Asymmetric Kernel
C. Microkernel
D. Exokernel

Correct Answer: Option A


Explanation:
A monolithic kernel compiles all essential OS services directly into a single, comprehensive space, providing high performance at the expense of modular isolation.

This question belongs to: Computer Operating Systems