Which of the following commands is used to start a new shell session?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command "sh" is used to start a new shell session in Linux. When you execute "sh," it invokes the Bourne shell, which is one of the original Unix shells. This command can be used to run a new instance of the shell, allowing users to execute commands in a fresh environment.

Starting a new shell session can be useful for various reasons, such as running commands in isolation or testing scripts without affecting the current shell session. Upon executing "sh," you enter a new shell, and you can carry out tasks as if you have logged into a new shell prompt. When you exit this new shell session, control returns to the original shell from which you started it.

This command allows for flexibility in command execution and scripting in a Linux environment, making it a fundamental command for users who want to manage shell sessions.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy