The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 263β€…    Votes:  4β€…
Tags: bash   scripts  
Link: πŸ” See Original Question on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/830074
Title: Best directory to place my bash scripts?
ID: /2016/09/26/Best-directory-to-place-my-bash-scripts_
Created: September 26, 2016    Edited:  January 4, 2018
Upload: April 8, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


I’m developing some scripts. One for the annoying speaker beep regression that popped in Ubuntu 16.04 even though pcspkr is blacklisted. Another to fix a PulseAudio 8.0 bug in Ubuntu 16.04 where sound switches off from TV to the laptop.

What is the best directory to put my bash scripts in?

I’ve searched the Q&A database but I get a bunch of different answers for a bunch of different scenarios.

/usr/local has been recommended by one person because it’s in the PATH$. Is that the right thing to do?

Thank you for your advice.


Even though I accepted below answer over a year ago, I ended up using:

After creating directory /home/me/bin you need to log out and in again for it to get into your PATH.

⇧ Password set but login without password? Touchpad not working after suspending laptop  β‡©