Home windows What is PATH and how do I put files there?

What is PATH and how do I put files there?

Author

Date

Category

PATH is an environment variable that specifies the search path for executable files. On Windows, paths are written, for example, like this:

  • with the setx command from Support Tools: setx path "% PATH%; C: \ New Folder" ,
  • by changing the registry key: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager \ Environment ,
  • in interface: My Computer – & gt; Properties – & gt; Environment Variable, etc.

Answer 1, authority 100%

In Windows, paths are written, for example, like this:

And on Linux like this: (just in case)

$ echo $ {PATH}
 / usr / local / bin: / usr / bin: / bin: / opt / bin
$ export PATH = "$ {PATH}: / opt /"
$ echo $ {PATH}
 / usr / local / bin: / usr / bin: / bin: / opt / bin: / opt /

The export PATH = ... command can be placed in ~ / .bashrc to avoid typing every time.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions