Fix for .bashrc not executing on startup in Ubuntu | GOLINE
Goline Logo



  • Route RPKI validation April 1st, 2022
    RPKI is a security framework by which network owners can validate and secure the critical route updates or Border Gateway Protocol (BGP) announcements between public Internet networks. BGP is essentially the central nervous system of the Internet and one of its fundamental building blocks. The main function of BGP is to facilitate efficient routing between Autonomous Systems (AS), by building and maintaining the Internet routing table. The Internet routing table is effectively the navigation system of the Internet and without it, traffic would be unable to flow between its constituent networks. Unfortunately, routing equipment alone cannot distinguish between legitimate and malicious routing announcements,...
  • RIPE – Atlas Anchor February 17th, 2022
    We have become an even more integral part of the RIPE Atlas project by hosting an anchor, a device that allows for latency analysis of traffic between autonomous systems. Atlas anchors play an integral role in the RIPE Atlas network by acting both as enhanced RIPE Atlas probes with more measurement capacity, as well as regional measurement targets within the greater RIPE Atlas network. Anchors are able to perform many more measurements than a regular RIPE Atlas probe, and the large amount of data they collect is made available to everyone. In addition, anchors act as powerful targets that can...
  • MANRS June 20th, 2020
    GOLINE firmly believes in initiatives to protect networks, improve security and resilience of the global routing system. Therefore we decided to support the MANRS project and join as participants.Mutually Agreed Norms for Routing Security (MANRS) is a global initiative, supported by the Internet Society, that provides crucial fixes to reduce the most common routing threats. MANRS offers specific actions via four programs for Network Operators, Internet Exchange Points, CDN and Cloud Providers, and Equipment Vendors. Requirements for Participation Please read the full MANRS Actions document before applying. You can become a participant if you meet these requirements: You (or your company) support...

Fix for .bashrc not executing on startup in Ubuntu

Caparrelli Paolo Linux 28 February 2023

There can be various reasons why the .bashrc file is not loaded at Ubuntu startup. Here are some possible causes and their solutions:

  1. The .bashrc file does not exist or has been accidentally renamed: Check that the .bashrc file exists in the user's home directory and that the file name is correct. If the file has been accidentally renamed, rename it back to .bashrc.

  2. The .bashrc file does not have the correct permissions: Check that the .bashrc file has the correct permissions to be executed. Use the command ls -l ~/.bashrc to display the file's permissions and make sure that the current user has read and execute permissions on the file.

  3. The .bashrc file contains syntax errors: Check that the .bashrc file does not contain syntax errors. You can use the command bash -n ~/.bashrc to check the file's syntax and detect any errors.

  4. The .bashrc file has not been loaded in the Bash configuration file: Check that the .bashrc file has been added to the Bash configuration file (~/.bash_profile or ~/.bash_login). If the Bash configuration file does not exist, create a new file and add the following line:

    source ~/.bashrc

    Alternatively, you can add this line to the .profile file in the user's home directory.

  5. The Bash configuration file has been modified: Check that the Bash configuration file (~/.bash_profile or ~/.bash_login) does not contain any other instructions that prevent the .bashrc file from being loaded. For example, there might be a line in the configuration file that exits the script without loading the .bashrc file.

In my case it was sufficient to delete .profile in the user's directory.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x