Which shell is described as sh-compatible and stores command history in a file called the bash history?

Prepare for the Certified Ethical Hacker Version 11 Exam. Study with comprehensive questions and explanations. Equip yourself with the skills needed for success!

Multiple Choice

Which shell is described as sh-compatible and stores command history in a file called the bash history?

Explanation:
Shells that are sh-compatible follow the Bourne shell syntax, which keeps scripts portable across Unix-like systems. Bash, the Bourne Again SHell, is designed to be compatible with sh while adding enhancements like command-line editing, scripting features, and a history mechanism. It saves previously entered commands to a history file in the user's home directory, typically ~/.bash_history, so you can recall and reuse commands in future sessions. The other options are not Unix-like shells with this behavior: Cipher.exe is a Windows cryptographic utility, Meterpreter shell is a post-exploitation payload rather than a standard Unix shell with a history file, and fsutil is a Windows file system utility. Therefore, Bash is the correct match.

Shells that are sh-compatible follow the Bourne shell syntax, which keeps scripts portable across Unix-like systems. Bash, the Bourne Again SHell, is designed to be compatible with sh while adding enhancements like command-line editing, scripting features, and a history mechanism. It saves previously entered commands to a history file in the user's home directory, typically ~/.bash_history, so you can recall and reuse commands in future sessions. The other options are not Unix-like shells with this behavior: Cipher.exe is a Windows cryptographic utility, Meterpreter shell is a post-exploitation payload rather than a standard Unix shell with a history file, and fsutil is a Windows file system utility. Therefore, Bash is the correct match.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy