Scripts help
Welcome, Guest.
“Theory and practice sometimes clash. And when that happens, theory loses. Every single time.” ― Linus Torvalds

Author Topic: Scripts help  (Read 592 times)

Offline at54tl

  • Supporter!
  • Contributor
  • *******
  • Posts: 122
  • "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,
-Luis

Offline Spatry

  • Benevolent Dictator
  • Administrator - Sysop
  • **********
  • Posts: 5603
  • 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!