Mis on Windowsi (Linux) bin-kataloogi ekvivalent?

Sisukord:

Mis on Windowsi (Linux) bin-kataloogi ekvivalent?
Mis on Windowsi (Linux) bin-kataloogi ekvivalent?

Video: Mis on Windowsi (Linux) bin-kataloogi ekvivalent?

Video: Mis on Windowsi (Linux) bin-kataloogi ekvivalent?
Video: How to Fix All MS Office Uninstall & Reinstall Error Office 2003-2016 (100% Works) - YouTube 2024, Aprill
Anonim
Kuigi kõigil operatsioonisüsteemidel on ühised asjad, võite tunduda mõelnud, kas üks tüüpi operatsioonisüsteemil on spetsiifiline "funktsioon", mida teine teeb. Seda silmas pidades on tänase SuperUseri Q & A postitusel vastused uudishimuliku lugeja küsimusele.
Kuigi kõigil operatsioonisüsteemidel on ühised asjad, võite tunduda mõelnud, kas üks tüüpi operatsioonisüsteemil on spetsiifiline "funktsioon", mida teine teeb. Seda silmas pidades on tänase SuperUseri Q & A postitusel vastused uudishimuliku lugeja küsimusele.

Tänane küsimuste ja vastuste seanss jõuab meile viisakalt SuperUserini - Stack Exchange'i ja kogukonnapõhiste Q & A veebisaitide rühmitusse.

Foto viisakus BiblioArchives / LibraryArchives (Flickr).

Küsimus

SuperUseri lugeja Toby Blunt tahab teada, kas Windowsi (Linux) bin-kataloogi jaoks on samaväärne:

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

Mis on Windowsi (Linux) bin-kataloogi samaväärne?

Vastus

SuperUseri kaasautor CBHackingil on meile vastus:

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.

Lugege kindlasti läbi selle küsimuse teemade teisi huvitavaid vastuseid allpool oleva lingi kaudu!

Kas teil on seletamiseks midagi lisada? Helistage kommentaarides. Kas soovite lugeda rohkem vastuseid teistelt tech-savvy Stack Exchange'i kasutajatelt? Tutvu täieliku arutelu teemaga siit.

Soovitan: