Azure Learn for AZ-104 description of .bash_logout

Gavin Reynolds 20 Reputation points
2025-01-26T09:44:11.4866667+00:00

Hello,

Page: https://learn.microsoft.com/en-us/training/modules/bash-introduction/4-exercise-try-bash

describes .bash_logout as "... special Bash file that is read and run every time a sign-in shell exists."

Shouldn't the description state something like ".bash_logout is a file that is sourced by Bash when the shell terminates and typically used to run code when logging out" ?

cheers

This question is related to the following Learning Module

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
2,051 questions
0 comments No comments
{count} votes

Accepted answer
  1. VarunTha 12,495 Reputation points Microsoft Vendor
    2025-01-27T18:42:27.0066667+00:00

    Hi Gavin Reynolds,

    Thank you for reaching out on the Microsoft Q&A Forum.

    I would appreciate your feedback about the description of the .bash_logout file in the Azure Learn module.

    You are actually right on in your interpretation about the .bash_logout file. For better comprehension, let it be stated here that .bash_logout is nothing but a script which, at the point of termination of a login shell, is being executed. It contains commands or scripts you wish to run automatically after logging out the shell session. The common usage is to clean out temporary files created, show an exit message, and execute any commands you may require running as part of the log out.

    The original description could be misleading to the reader to think that it reads the file during the sign-in process and not at the end of the session. Your suggestion on a better description is very important and I will pass it on to the relevant team to consider.

    Thank you again for your input. If you have any further questions or need more clarification, feel free to ask.

    If you have found the answer provided to be helpful, please click on the "Upvote and Accept Answer" button so that it is useful for other members in the Microsoft Q&A community.


1 additional answer

Sort by: Most helpful
  1. Abiola Akinbade 23,135 Reputation points
    2025-01-26T12:09:27.91+00:00

    Hello Gavin Reynolds,,

    Thanks for your question.

    I will recommend you post this as feedback.

    How to Submit Feedback.

    • Scroll to the bottom of the page.

    Click on This page under the "Feedback" section.

    • Select Content feedback and provide your suggested improvement.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.