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

How to get user's ip address in JavaScript

How to make a static http server in nodejs using express

Array concat method in JavaScript

What is 'this.' keyword in JavaScript

How to create promises in JavaScript