Kas yra "Linux" ("Linux") aplanko "Windows" atitikmuo?

Turinys:

Kas yra "Linux" ("Linux") aplanko "Windows" atitikmuo?
Kas yra "Linux" ("Linux") aplanko "Windows" atitikmuo?

Video: Kas yra "Linux" ("Linux") aplanko "Windows" atitikmuo?

Video: Kas yra
Video: Basic Computer Skills for the Workplace in 2021 - 12 Hours of Free Tech Training - YouTube 2024, Gegužė
Anonim
Nors visose operacinėse sistemose yra keletas bendrų dalykų, gali kilti klausimas, ar vienos operacinės sistemos tipas turi tam tikrą "funkciją", kuri yra kita. Atsižvelgdami į tai, šiandieninis "SuperUser" Q & A įrašas turi atsakymus į įdomų skaitytojo klausimą.
Nors visose operacinėse sistemose yra keletas bendrų dalykų, gali kilti klausimas, ar vienos operacinės sistemos tipas turi tam tikrą "funkciją", kuri yra kita. Atsižvelgdami į tai, šiandieninis "SuperUser" Q & A įrašas turi atsakymus į įdomų skaitytojo klausimą.

Šiandieninė klausimų ir atsakymų sesija pateikiama su "SuperUser" - "Stack Exchange", bendruomenės valdoma Q & A grupių asociacija.

Nuotrauka mandagumo BiblioArchives / LibraryArchives (Flickr).

Klausimas

SuperUser skaitytojas Toby Blunt nori sužinoti, ar yra "Windows" (Linux) bin katalogo ekvivalentas:

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

Koks yra "Windows" (Linux) bin katalogo ekvivalentas?

Atsakymas

"SuperUser" autorius CBHacking turi mums atsakymą:

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.

Būtinai perskaitykite kitus įdomius atsakymus į šį klausimą, naudodamiesi žemiau esančia nuoroda!

Ar turite ką nors įtraukti į paaiškinimą? Garsas išjungtas komentaruose. Norite skaityti daugiau atsakymų iš kitų "Tech-savvy Stack Exchange" vartotojų? Patikrinkite visą diskusijų temą čia.

Rekomenduojamas: