Aký je ekvivalent adresára (Linux) bin v systéme Windows?

Obsah:

Aký je ekvivalent adresára (Linux) bin v systéme Windows?
Aký je ekvivalent adresára (Linux) bin v systéme Windows?

Video: Aký je ekvivalent adresára (Linux) bin v systéme Windows?

Video: Aký je ekvivalent adresára (Linux) bin v systéme Windows?
Video: How to Download & Install Microsoft Office - YouTube 2024, Smieť
Anonim
Zatiaľ čo všetky operačné systémy majú spoločné veci, môžete zistiť, či jeden typ operačného systému má špecifickú 'vlastnosť', ktorú má iný. S ohľadom na to má dnešný príspevok SuperUser Q & A odpovede na otázku zvedavého čitateľa.
Zatiaľ čo všetky operačné systémy majú spoločné veci, môžete zistiť, či jeden typ operačného systému má špecifickú 'vlastnosť', ktorú má iný. S ohľadom na to má dnešný príspevok SuperUser Q & A odpovede na otázku zvedavého čitateľa.

Dnešná relácia otázok a odpovedí sa k nám pridelí zdvorilosťou SuperUser - podskupiny Stack Exchange, skupín webových stránok týkajúcich sa otázok a odpovedí.

Foto s láskavým dovolením BiblioArchív / knižnicaArchív (Flickr).

Otázka

Čítačka SuperUser Toby Blunt chce vedieť, či existuje ekvivalent pre adresár (Linux) bin v systéme Windows:

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

Aký je ekvivalent adresára (Linux) bin v systéme Windows?

Odpoveď

Dodávateľ SuperUser CBHacking má pre nás odpoveď:

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.

Nezabudnite si prečítať ďalšie zaujímavé odpovede na túto otázku vlákno pomocou nižšie uvedeného odkazu!

Máte niečo doplniť vysvetlenie? Znížte komentáre. Chcete si prečítať viac odpovedí od iných používateľov technológie Stack Exchange? Pozrite sa na celý diskusný príspevok tu.

Odporúča: