Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

SUSE SCA_SLES15 Exam - Topic 5 Question 33 Discussion

Posted by Meaghan on May 07, 2022 at 07:10 PM

What is the first file executed by a bash login shell?

Suggested Answer: A

https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html

When Bash is invoked as an interactive login shell, or as a non-interactive shell with the--loginoption, it first reads and executes commands from the file/etc/profile, if that file exists. After reading that file, it looks for~/.bash_profile,~/.bash_login, and~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The--noprofileoption may be used when the shell is started to inhibit this behavior.


Get Premium SCA_SLES15 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
FA
Fannie 11 months ago
100% agree, /etc/profile is the right answer!
FR
Frederick 11 months ago
Wait, is it really the first one?
NI
Nieves 12 months ago
No way, it's not /etc/profile.alias!
CA
Cathrine 12 months ago
I thought it was ~/.bash_profile?
RE
Reiko 12 months ago
It's definitely /etc/profile!
KI
Kimberlie 1 year ago
I’m pretty certain it’s /etc/profile, but I should double-check my notes just in case.
RO
Rosalind 1 year ago
I remember practicing a similar question, and I think it was about the login shell configuration files.
PA
Pa 1 year ago
I think the first file executed is /etc/profile, but I'm not completely sure.
RE
Renay 1 year ago
I’m a bit confused; I thought it might be -/.alias, but that doesn’t sound right now.
KA
Kathryn 1 year ago
I've got a strategy for this - I'll start by listing out the possible configurations and then narrow it down based on the options provided.
TE
Terrilyn 1 year ago
This question seems straightforward, but I want to make sure I understand the requirements correctly before answering.
JE
Jerry 1 year ago
Okay, I've got this. The principles of "exhaustive testing is not possible" and "where many errors exist, more errors are usually hidden" are definitely true. I'll select those two options.
0/2000 characters

Save Cancel