Find answers, ask questions, and connect with our <br>community around the world.

Home Forums OpenFOAM Forum openfoam bashrc

  • openfoam bashrc

    Posted by Ahmar on August 29, 2023 at 7:02 am

    Hello everyone

    When I am changing the permission for bashrc file in etc folder

    ahmar@LAPTOP-UEOBP851:/usr/lib/openfoam/openfoam2212/etc$ chmod og=rw bashrc
    chmod: changing permissions of ‘bashrc’: Operation not permitted

     

    ahmar@LAPTOP-UEOBP851:/usr/lib/openfoam/openfoam2212/etc$ chmod 777 bashrc
    chmod: changing permissions of ‘bashrc’: Operation not permitted

    i cant edit the bashrc file bc of this and cant add the file location or alias

    Barış Bicer replied 7 months, 2 weeks ago 2 Members · 1 Reply
  • 1 Reply
  • Barış Bicer

    Moderator
    September 3, 2023 at 8:46 am

    Hi,

    bashrc file is not executable file. why do you wanna change its permission I didnt understand.

    Anyway, If you wanna execute it you should simple source it as I explained in the lectures

    source ~/.bashrc

    or

    . ~/.bashrc

    and if you wanna add something you should open it with a text editor.

    nano ~/.bashrc

    or

    nano ~/.bashrc

    if you wanna change this file permission, try below:

    sudo nano .bashrc

    chmod 777 .bashrc

    I hope it will work for you.

    Best

     

Log in to reply.

error: Content is protected !!