Answer the question
In order to leave comments, you need to log in
Where does sudo get PATH?
Faced with strangeness: It is
necessary that /home/lexx/bin be everywhere
Everything is written in .bashrc for root.
It is worth adding that two versions of ffmpeg are installed on the system (one from the turnip, the other compiled from the master)
Answer the question
In order to leave comments, you need to log in
sudo doesn't take anywhere, sudo executes some command. By default, the shell of the specified user.
If it is bash, then you watch how bash reads its configuration files - /etc/bash.bashrc, /etc/profile.d
$HOME/.bashrc and others can be called from them in certain cases.
Therefore, study the entire chain in your shell (in case you don't have bash by default, but ksh or zsh) and you can specify PATH in the correct file.
Or do not bother and write the full path to the command
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question