Page 1 of 1

Confusing /etc/profile not executed

Posted: Thu Aug 03, 2023 9:49 am
by almahdi
How come here, /etc/profile not executed as proved: no file exist from the code e.g.

Code: Select all

echo foo>/home/foo/Downloads/FILE
also somemore codes that cannot give existing result at all

Has one had the same problem then had useful solution ?

Re: Confusing /etc/profile not executed

Posted: Thu Aug 03, 2023 9:58 am
by dolphin_oracle
IIRC, /etc/profile is only executed on a console login. I can confirm that it does work when doing a console line.