this is not an area that i have much experience in, but hopefully having some terminology will help you run some searches. i have heard them called either just scripts or shell scripts. i wrote this very rudimentary one to run an rsync command:
Quote:
#!/bin/bash
rsync -rahP --delete /home/user/source /media/user/destination
|
from my admittedly limited understanding the first part (#!/bin/bash) is called a shebang and is necessary to tell your system what shell will be used to run the script (i have also seen python used). bodhi (as with many linux systems) uses bash by default. the rest is just a regular command that i could have run in a terminal.
you can write that in just a regular text file and save it with whatever you want to name your script/command. i have seen some people name theirs with a .sh extension, but i don't know if that is mandatory or just suggested or even necessary.
once it is created, you need to make it executable with
chmod. after that you can click it's icon in the gui to run it. getting it to run
Quote:
from anywhere like the other terminal commands
|
may be a bit more tricky depending on what you mean by anywhere, but those are pretty much the basics that i know.