Qual è l'equivalente della directory del cestino (Linux) in Windows?

Sommario:

Qual è l'equivalente della directory del cestino (Linux) in Windows?
Qual è l'equivalente della directory del cestino (Linux) in Windows?

Video: Qual è l'equivalente della directory del cestino (Linux) in Windows?

Video: Qual è l'equivalente della directory del cestino (Linux) in Windows?
Video: Come avere Microsoft OFFICE 365 GRATIS per SEMPRE Legalmente | Senza Crack o Licenze 2023 - YouTube 2024, Maggio
Anonim
Mentre tutti i sistemi operativi hanno alcune cose in comune, ci si potrebbe chiedere se un tipo di sistema operativo abbia una "caratteristica" specifica che un altro tipo fa. Con questo in mente, il post di Q & A di SuperUser di oggi ha le risposte alla domanda di un lettore curioso.
Mentre tutti i sistemi operativi hanno alcune cose in comune, ci si potrebbe chiedere se un tipo di sistema operativo abbia una "caratteristica" specifica che un altro tipo fa. Con questo in mente, il post di Q & A di SuperUser di oggi ha le risposte alla domanda di un lettore curioso.

La sessione di domande e risposte di oggi ci viene fornita per gentile concessione di SuperUser, una suddivisione di Stack Exchange, un raggruppamento di domande e risposte basato sulla comunità.

Foto per gentile concessione di BiblioArchives / LibraryArchives (Flickr).

La domanda

Il lettore SuperUser Toby Blunt vuole sapere se esiste un equivalente per la directory bin (Linux) in Windows:

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

Qual è l'equivalente della directory bin (Linux) in Windows?

La risposta

Collaboratore SuperUser CBHacking ha la risposta per noi:

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.

Assicurati di leggere le altre risposte interessanti per questa domanda tramite il link qui sotto!

Hai qualcosa da aggiungere alla spiegazione? Audio disattivato nei commenti. Vuoi leggere più risposte dagli altri utenti di Stack Exchange esperti di tecnologia? Controlla la discussione completa qui.

Consigliato: