If I have a custom shell script or programs that I created myself or downloaded from the Internet, and I want it to be able to be executed from the CLI, is there a standard directory structure for Linux / Unix?
/usr/bin ? /usr/local/bin ? /usr/lib ? /usr/sbin ? /bin ? /sbin ? /var ?
Usually I put it in the ~ / bin folder and put it in PATH, but it does not look clean. And every time I download a new program, I have to put it in PATH again.
command-line linux unix shell directory-structure
atedja Feb 06 2018-12-12T00: 00Z
source share