New Year Sale 2026! 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

Actual exam question for SUSE's SCA_SLES15 exam
Question #: 33
Topic #: 5
[All SCA_SLES15 Questions]

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

Show Suggested Answer Hide Answer
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.


Contribute your Thoughts:

0/2000 characters
Fannie
4 months ago
100% agree, /etc/profile is the right answer!
upvoted 0 times
...
Frederick
4 months ago
Wait, is it really the first one?
upvoted 0 times
...
Nieves
4 months ago
No way, it's not /etc/profile.alias!
upvoted 0 times
...
Cathrine
4 months ago
I thought it was ~/.bash_profile?
upvoted 0 times
...
Reiko
4 months ago
It's definitely /etc/profile!
upvoted 0 times
...
Kimberlie
5 months ago
I’m pretty certain it’s /etc/profile, but I should double-check my notes just in case.
upvoted 0 times
...
Rosalind
5 months ago
I remember practicing a similar question, and I think it was about the login shell configuration files.
upvoted 0 times
...
Pa
5 months ago
I think the first file executed is /etc/profile, but I'm not completely sure.
upvoted 0 times
...
Renay
5 months ago
I’m a bit confused; I thought it might be -/.alias, but that doesn’t sound right now.
upvoted 0 times
...
Kathryn
5 months 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.
upvoted 0 times
...
Terrilyn
5 months ago
This question seems straightforward, but I want to make sure I understand the requirements correctly before answering.
upvoted 0 times
...
Jerry
5 months 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.
upvoted 0 times
...

Save Cancel