When I write a command name then it don't worked and I should write the full command path:
Code: Select all
# mkfs.ext4
bash: mkfs.ext4: command not found
Code: Select all
# /usr/sbin/mkfs.ext4
Thank you.
Code: Select all
# mkfs.ext4
bash: mkfs.ext4: command not found
Code: Select all
# /usr/sbin/mkfs.ext4
Code: Select all
echo $PATH
Code: Select all
echo $path
Code: Select all
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH
Code: Select all
ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Code: Select all
echo $PATH
You wroteKitchM wrote:Right, as noted above, it is empty.
Code: Select all
echo $path
Code: Select all
echo $PATH
Note that LightDM doesn't run the user's shell as a login session so ~/.profile won't be read. Use ~/.xsessionrc to either source ~/.profile or set PATH explicitly from there. The former approach will allow ~/.profile to work for console (TTY) logins also.KitchM wrote:We want to know where to make the settings once and for all
I don't think your question, or rather request, has any sensible answer.KitchM wrote:And does that work for all users then?