Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Why some commands like startx and rmmod aren't executed in bashrc

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
amin11
Posts: 19
Joined: 2023-03-25 09:04
Has thanked: 4 times

[Solved] Why some commands like startx and rmmod aren't executed in bashrc

#1 Post by amin11 »

Why some commands like startx and rmmod aren't executed in bashrc?
Last edited by amin11 on 2024-04-04 10:05, edited 1 time in total.

reinob
Posts: 1198
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: [Bash] Why some commands like startx and rmmod aren't executed in bashrc

#2 Post by reinob »

you mean that those commands are in your .bashrc, and yet they are not executed?
or you mean "why people don't put such commands in .bashrc"

Note that .bashrc is run by bash (not other shells), and only for interactive shells that are not a login shell.

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 750
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 138 times
Been thanked: 70 times

Re: [Bash] Why some commands like startx and rmmod aren't executed in bashrc

#3 Post by cds60601 »

amin11 wrote: 2024-03-30 09:14 Why some commands like startx and rmmod aren't executed in bashrc?
Reflect on this thread.
Supercalifragilisticexpialidocious

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 666
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 88 times
Been thanked: 110 times

Re: [Bash] Why some commands like startx and rmmod aren't executed in bashrc

#4 Post by wizard10000 »

We don't startx from .bashrc because .bashrc is sourced every time you open a terminal window. You can starx from ~/.profile if you like.

You can't rmmod as an unprivileged user, only root can remove kernel modules.
we see things not as they are, but as we are.
-- anais nin

Post Reply