Lpic 1 Linux Administrator · Free Practice Question Easy

Question 28

When executing the command su - user, what type of shell is initiated for the specified user?
  • A An interactive shell without login capabilities.
  • B A non-interactive shell with login capabilities.
  • C An interactive shell with login capabilities.
  • D A non-interactive shell without login capabilities.
Reveal correct answer

Correct answer: C

A. An interactive shell without login capabilities does not require the user to provide login credentials and does not load the user's profile settings. This type of shell is typically used for running commands or scripts without the need for a full login session.

B. A non-interactive shell with login capabilities does not require user interaction but still loads the user's profile settings. This type of shell is commonly used for running scripts or commands that do not require user input.

C. An interactive shell with login capabilities requires the user to provide login credentials and loads the user's profile settings. This type of shell provides a full login session with access to the user's environment variables, aliases, and settings.

D. A non-interactive shell without login capabilities does not require user interaction and does not load the user's profile settings. This type of shell is typically used for running scripts or commands in a non-interactive manner.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need