Apa yang Setara dengan Direktori Bin (Linux) di Windows?

Daftar Isi:

Apa yang Setara dengan Direktori Bin (Linux) di Windows?
Apa yang Setara dengan Direktori Bin (Linux) di Windows?

Video: Apa yang Setara dengan Direktori Bin (Linux) di Windows?

Video: Apa yang Setara dengan Direktori Bin (Linux) di Windows?
Video: Cara Download OFFLINE Installer OFFICE 365 Dari Microsoft dan Cara Install - YouTube 2024, Mungkin
Anonim
Meskipun semua sistem operasi memiliki beberapa kesamaan, Anda mungkin bertanya-tanya apakah satu jenis sistem operasi memiliki 'fitur' tertentu yang dimiliki oleh yang lain. Dengan memperhatikan hal itu, pos Tanya Jawab SuperUser saat ini memiliki jawaban atas pertanyaan pembaca yang ingin tahu.
Meskipun semua sistem operasi memiliki beberapa kesamaan, Anda mungkin bertanya-tanya apakah satu jenis sistem operasi memiliki 'fitur' tertentu yang dimiliki oleh yang lain. Dengan memperhatikan hal itu, pos Tanya Jawab SuperUser saat ini memiliki jawaban atas pertanyaan pembaca yang ingin tahu.

Sesi Tanya & Jawab Hari ini hadir untuk memberi kami SuperUser - subdivisi Stack Exchange, pengelompokan situs web Q & A berbasis komunitas.

Photo courtesy of BiblioArchives / LibraryArchives (Flickr).

Pertanyaan

Pembaca SuperUser Toby Blunt ingin tahu apakah ada yang setara dengan direktori bin (Linux) di Windows:

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

Apa yang setara dengan direktori bin (Linux) di Windows?

Jawabannya

Kontributor SuperUser CBHacking memiliki jawabannya untuk kami:

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.

Pastikan untuk membaca jawaban menarik lainnya untuk utas pertanyaan ini melalui tautan di bawah ini!

Memiliki sesuatu untuk ditambahkan ke penjelasan? Bicaralah di komentar. Ingin membaca lebih banyak jawaban dari pengguna Stack Exchange yang paham teknologi lainnya? Lihat diskusi lengkap di sini.

Direkomendasikan: