Mi a (Linux) bin könyvtár egyenértékűje a Windows rendszerben?

Tartalomjegyzék:

Mi a (Linux) bin könyvtár egyenértékűje a Windows rendszerben?
Mi a (Linux) bin könyvtár egyenértékűje a Windows rendszerben?

Videó: Mi a (Linux) bin könyvtár egyenértékűje a Windows rendszerben?

Videó: Mi a (Linux) bin könyvtár egyenértékűje a Windows rendszerben?
Videó: Office 365 - levelezés, dokumentum kezelés - YouTube 2024, Lehet
Anonim
Bár az összes operációs rendszerben van néhány közös dolog, előfordulhat, hogy magad érdekli, hogy az egyik operációs rendszer rendelkezik-e egy másik "funkcióval". Emiatt a mai SuperUser Q & A hozzászólás a válaszokat egy furcsa olvasó kérdésére adott válaszokkal érheti el.
Bár az összes operációs rendszerben van néhány közös dolog, előfordulhat, hogy magad érdekli, hogy az egyik operációs rendszer rendelkezik-e egy másik "funkcióval". Emiatt a mai SuperUser Q & A hozzászólás a válaszokat egy furcsa olvasó kérdésére adott válaszokkal érheti el.

A mai Kérdések és válaszok munkamenetét a SuperUser - a Stack Exchange, a Q & A weboldalak közösség által irányított csoportosulásának részlegével - köszönheti.

Fénykép a BiblioArchives / LibraryArchives (Flickr) jóvoltából.

A kérdés

A SuperUser olvasó Toby Blunt azt szeretné tudni, hogy van-e egyenértékű a (Linux) bin könyvtárban a Windows-ban:

Is there an equivalent for Linux’s bin directory in Windows? If so, how can I access it from the command prompt?

Mi a megfelelő a (Linux) bin könyvtárban a Windows alatt?

A válasz

A CBHacking a SuperUser munkatársa számára a válasz:

There is actually nothing special about /bin on Unix/Linux at all. It is just the location where executable files and scripts (which are not actually binary files) are placed by convention. It is included in the PATH environment variable by default for all users.

As Ryan says (comments one and two), the WindowsSystem32 directory on Windows is also in PATH for all Windows users (and, even if it is not, the program loader in Windows will search there anyhow).

You can easily create your own equivalent of /bin on Windows. To make it system-wide, place it somewhere like the root of the file system (such as C:in or under an already-restricted location like WindowsSystem32in), and add it to the PATH environment variable for all users.

For a per-user location, create the directory in your own profile (%USERPROFILE%in) and add it to your account’s PATH environment variable. Windows combines environment variables with the same name, so anything in the machine PATH variable is also added to any user’s PATH, but not the other way around.

Of course, you will have to add files, scripts, shortcuts, and symlinks to your /bin directory yourself. Windows installers do not expect such a thing and will not put files there automatically the way that Linux installers usually do.

Győződjön meg róla, olvassa el a többi érdekes választ erre a kérdésre szálat az alábbi linken keresztül!

Van valami a magyarázathoz? Hangzik ki a megjegyzésekben. Szeretne többet válaszolni a többi technikus-tudós Stack Exchange felhasználóiról? Nézze meg a teljes vitafonalat itt.

Ajánlott: