What is a bin directory

A bin is an abbreviation of binary, a bin directory is a standard directory used to store executable binary applications.

For example When you type a command on your terminal the operating system looks up for an entry in the bin directory
Take for instance.

cowsay 'hello world'

If you type out the command above your operating system will look up for a file named cowsay inside the configured bin directory

let's say /usr/bin/

Should it find a relevant entry that matches the command 'cowsay' it will then pass arguments passed as parameters made available to the program 'cowsay'

Comments

Popular posts from this blog

What is 'this.' keyword in JavaScript

How to iterate array elements using 'for loop' in JavaScript