Scripts help
Welcome, Guest.
"When tyranny becomes law, rebellion becomes duty." -Thomas Jefferson

Author Topic: Scripts help  (Read 1142 times)

Offline at54tl

  • Supporter!
  • Contributor
  • *******
  • Posts: 125
  • "Don't let any computer control You, use Linux"
    • Skype
    • Luis's Blog
Scripts help
« on: April 14, 2019, 05:18:12 AM »
Good morning,

I made some simple scripts to make my use of the command line easier, my question is: Where can I place them so that I can run them from any folder that I happen to be in ?

Thank you,

Offline Spatry

  • Benevolent Dictator
  • Administrator - Sysop
  • **********
  • Posts: 5860
  • Cup of Linux Founder
    • Cup of Linux
Re: Scripts help
« Reply #1 on: April 14, 2019, 08:00:20 AM »
I usually put scripts I made for system wide use into /usr/bin this way the script can be executed by invoking it's name. Example, I made a shell script which allows me to run opensimulator. The script checks to be sure opensim is continuously running, if the software crashed, it will restart the software. I put the script in /usr/bin and now I can invoke the script by running 'opensim'
Windows assumes the user is an idiot... Linux DEMANDS Proof!