Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 549  / 2 Years ago, wed, august 10, 2022, 8:51:30

I just compiled ffmpeg, now I just want to add it on the path.



Every source I can find reference .profile, and if not present or in specific cases, tell to use .pam_environment.



But double tab give me:



user@domain:~$ echo $HOME
/home/user
user@domain:~$ cd /home/empreinte/
user@domain:~$ nano .
./ .cache/ .local/ .npm/
../ .config/ .nano_history .ssh/
.bash_history .dbshell .node-gyp/


Am I missing something? Can I just create the file?



EDIT:



user@domain:~$ ls -a $HOME
. .cache drywall .nano_history npm-debug.log test x264
.. .config ffmpeg .node-gyp .ssh tmp yasm
.bash_history .dbshell .local .npm sysplay video

More From » paths

 Answers
1

There is no reason to copy the default if you don't want to. You can simply create a new, empty .profile and add this line there:



export PATH=$PATH:/home/empreinte/


Avinash's approach is also correct of course, the files in /etc/skel are the defaults and you can copy the template file from there. It is just unnecessary since you can create it yourself.



In any case, I would recommend you create a new folder where you want to keep your own binaries and add that to the $PATH instead of keeping ffmpeg in your $HOME:



mkdir ~/bin
mv ~/ffmpeg ~/bin


Then, edit your ~/.profile and use this line instead of the above:



export PATH=$PATH:/home/empreinte/bin

[#25423] Wednesday, August 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
variark

Total Points: 82
Total Questions: 114
Total Answers: 122

Location: Sweden
Member since Mon, May 8, 2023
1 Year ago
variark questions
Wed, Nov 3, 21, 13:30, 3 Years ago
Sun, Jan 8, 23, 16:05, 1 Year ago
Thu, Dec 15, 22, 02:10, 1 Year ago
Sun, Jun 26, 22, 12:20, 2 Years ago
Tue, Dec 14, 21, 15:40, 2 Years ago
;