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 system's shell version
B. A list of available shells
C. The user's home directory
D. The current shell's path
Answer: Option D
Solution (By JKExamLibrary)
$SHELL environment variable holds the path to the current user's default shell, e.g., /bin/bash.

This question belongs to: Computer Operating Systems

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1 Report Error
Which Linux command shows the list of mounted file systems?
A. df
B. lsblk
C. mount
D. fstab

Correct Answer: Option C


Explanation:
mount without arguments displays all currently mounted file systems; df also shows mounts but with usage.

This question belongs to: Computer Operating Systems
Question #2 Report Error
What is the purpose of the Android 'Permission System'?
A. To protect user privacy by controlling app access to sensitive data
B. To manage file permissions
C. To grant superuser rights
D. To allow apps to communicate

Correct Answer: Option A


Explanation:
Android permissions restrict access to dangerous data and system features; users grant permissions at runtime.

This question belongs to: Computer Operating Systems
Question #3 Report Error
Which of the following is an example of a real-time operating system (RTOS)?
A. Android
B. Windows 10
C. Linux
D. VxWorks

Correct Answer: Option D


Explanation:
VxWorks is a real-time OS used in embedded systems requiring deterministic response times; general-purpose OSes are not RTOS.

This question belongs to: Computer Operating Systems