bin directory and PATH
Asked Answered
S

3

7

I'm beginner in programming. Can somebody please explain (by simple words) what do I have inside the bin directory of program?

What is this PATH environment variable of windows, how does it work (please don't think that I don't know how to use Google, I just want to understand it more clearly)?

Scrutable answered 11/7, 2010 at 20:58 Comment(5)
The concept of a "bin" directory is more commonly used on *nix systems, not on Windows. Do you know what the PATH environment variable is used for? What exactly are you looking to clarify?Symphonist
@James McNellis: I read some information, but a little bit difficult to understand, so can You explain?Scrutable
Belongs on superuser.comWattmeter
@Paul R - why? It's programming related in that you need to know how to organise your dlls so your program works.Ology
@ChrisF: to me it just seems to be a question about PATH on Windows, which is more related to how a particular OS works rather than anything specifically programming-related.Wattmeter
O
8

You usually put all the binary files for a program in the bin directory. This would be the executable itself and any dlls (dynamic link libraries) that the program uses.

This isn't essential as Windows use the PATH environment variable to look for dlls your program needs. This is a list of folders that Windows searches, in order, when it can't find a dll (say) in the current directory.

So if you want to have a dll used by more than one program you could put it in a location already on the PATH or add a new folder to the PATH.

Ology answered 11/7, 2010 at 21:3 Comment(2)
first of all, thanks for answer, secondly, so PATH I need only for dll (I mean for windows to know where it can find some library)?Scrutable
@Scrutable - PATH is used for other things as well - for example if you just type the name of an exe from the command prompt Windows uses the PATH to search for it if it's not in the current directory.Ology
P
0

The /bin directory contains the essential user binaries (programs) that must be present when the system is mounted in single-user mode. Applications such as Firefox are stored in /usr/bin, while important system programs and utilities such as the bash shell are located in /bin. The /usr directory may be stored on another partition — placing these files in the /bin directory ensures the system will have these important utilities even if no other file systems are mounted. The /sbin directory is similar — it contains essential system administration binaries.

Parquet answered 3/3, 2023 at 0:58 Comment(0)
B
0

apk add --no-cache
# Builder deps bash=~5
curl=~8 &&
# Upgrade packages for be able get latest Checkov python3 -m pip install --no-cache-dir --upgrade
pip
setuptools

Boneyard answered 29/6, 2024 at 20:42 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Pfeffer

© 2022 - 2025 — McMap. All rights reserved.