Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
What is tldir? Directories earlier in the path are searched first, so if different executables in different directories have the same name, it will matter.
Do the first one if you might have other binaries with the same names as the new TeXlive ones but you want to use the newer ones by default. Use the second if you want to use the old binaries by default. If you only have one set of binaries with those names, it doesn't matter.
Directories added to the beginning of $PATH are searched first when the shell looks for an executable. It's dangerous because same-named executables will mask executables in later directories. Add your directory at the end of $PATH.
tldir
? Directories earlier in the path are searched first, so if different executables in different directories have the same name, it will matter.$PATH
are searched first when the shell looks for an executable. It's dangerous because same-named executables will mask executables in later directories. Add your directory at the end of$PATH
.