Where to put bash files

To put custom made scripts :

/usr/local/bin

To put personal bash scripts :

~/bin

Or

/usr/local/

But generally, we put them in :

/usr/local/bin

Warning : the following folder are only managed by the operating system.

/bin
/usr/bin