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 written in /etc/profile are executed in tty but not in terminal emulators?

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 written in /etc/profile are executed in tty but not in terminal emulators?

#1 Post by amin11 »

Why some commands written in /etc/profile are executed in tty but not in terminal emulators
like

Code: Select all

name=amin
Last edited by amin11 on 2024-04-04 10:06, edited 1 time in total.

lindi
Debian Developer
Debian Developer
Posts: 463
Joined: 2022-07-12 14:10
Has thanked: 1 time
Been thanked: 88 times

Re: [Bash] Why some commands written in /etc/profile are executed in tty but not in terminal emulators?

#2 Post by lindi »

Check "man bash" and search for "profile":

Code: Select all

When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists

Post Reply