विंडोज़ में (लिनक्स) बिन निर्देशिका का समतुल्य क्या है?

विषयसूची:

विंडोज़ में (लिनक्स) बिन निर्देशिका का समतुल्य क्या है?
विंडोज़ में (लिनक्स) बिन निर्देशिका का समतुल्य क्या है?

वीडियो: विंडोज़ में (लिनक्स) बिन निर्देशिका का समतुल्य क्या है?

वीडियो: विंडोज़ में (लिनक्स) बिन निर्देशिका का समतुल्य क्या है?
वीडियो: How To Download and install Office 2023 for free || Activate office 365 Key - YouTube 2024, मई
Anonim
हालांकि सभी ऑपरेटिंग सिस्टम में कुछ चीजें आम हैं, लेकिन आप खुद को सोच सकते हैं कि एक प्रकार के ऑपरेटिंग सिस्टम में एक विशिष्ट 'फीचर' है जो कोई दूसरा करता है। इस बात को ध्यान में रखते हुए, आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवाल का जवाब है।
हालांकि सभी ऑपरेटिंग सिस्टम में कुछ चीजें आम हैं, लेकिन आप खुद को सोच सकते हैं कि एक प्रकार के ऑपरेटिंग सिस्टम में एक विशिष्ट 'फीचर' है जो कोई दूसरा करता है। इस बात को ध्यान में रखते हुए, आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवाल का जवाब है।

आज का प्रश्न और उत्तर सत्र हमारे पास सुपरयूसर की सौजन्य है - स्टैक एक्सचेंज का एक उपविभाग, क्यू एंड ए वेब साइट्स का एक समुदाय संचालित समूह।

फोटो बाइबिल आर्चिव्स / लाइब्रेरी आर्चिव्स (फ़्लिकर) की सौजन्य।

प्रश्न

सुपर यूज़र रीडर टोबी ब्लंट जानना चाहता है कि विंडोज में (लिनक्स) बिन निर्देशिका के बराबर है या नहीं:

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

विंडोज़ में (लिनक्स) बिन निर्देशिका के बराबर क्या है?

उत्तर

सुपरयूसर योगदानकर्ता सीबी हैकिंग के पास हमारे लिए जवाब है:

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.

नीचे दिए गए लिंक के माध्यम से इस प्रश्न धागे के अन्य दिलचस्प उत्तरों के माध्यम से पढ़ना सुनिश्चित करें!

स्पष्टीकरण में जोड़ने के लिए कुछ है? टिप्पणियों में विचार व्यक्त करो। अन्य तकनीक-समझदार स्टैक एक्सचेंज उपयोगकर्ताओं से अधिक उत्तरों पढ़ना चाहते हैं? यहां पूर्ण चर्चा धागा देखें।

सिफारिश की: