Incomplete PATH


before I can execute most commands on my OSMC I have to run

export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Why is this and what is the best way to fix this?


Can you give an example command?

It’s not normal and must be related to a specific change on your system

Have you made any changes to your .bashrc or .profile files?

The default $PATH comes from /etc/profile and then the addition of further entries from /etc/profile.d/ and /etc/profile.d/ but if you have incorrectly set the $PATH in your .bashrc or .profile it’s easy to overwrite these.

How are you logging in (via SSH?) and what user are you logging in as?

At this point we need more information from the OP.