capricorn1 said:
Ok, dumb Windows only user question time. :?
What do I use to create the script? In Windows for example I'd use something like notepad?
Mousepad. It's not in the standrad Linpus desktop menus, but you can run it by doing ALT-F2 and typing 'mousepad' in the dialog box.
Likewise, when I've created the script - where do I save it?
You can save it wherever you like, to start with!
The chmod 755 adhoc && sudo cp adhoc /usr/bin/ part - should that be part of the script or is it a command I should be running somewhere? if so, where and how (in a Terminal?)
Those lines are not part of the script - they are Terminal commands which affect the script.
The first one
changes its '
mode' (hence 'chmod') to make it executable (Linux won't execute a file unless it's been made executable - that's one of the things which makes it much harder to make a virus work in Linux - not only does the user have to download it, but they also have to explicitly make it executable before it will run. Just clicking on a download link won't run anything!).
The second one copies the script into the directory /usr/bin. This is where many executable files 'live' - they are "user" rather than main system files (so usr), and originally most of them were binaries (so bin). These three letter directory names are a very historic throwback and no longer at all necessary, but Unix/Linux people are used to them so they survive for certain purposes!
The reason for putting the script there is that /usr/bin is part of the path Linux automatically uses to find programs, so if it's in /usr/bin you can start the program by just typing 'adhoc'.
Sorry if the questions are dumb, I'm 3rd level support in a Windows Environment but Linux is new to me and I'd like to learn more (hence not just reloading my One with Windows).
Hope this helps. It might be worth checking your local library to see if they have a book on using Linux - even if it's a bit old it will give you a lot of the basic concepts which don't change.
Your questions aren't dumb at all - Linux is not the same as Windows, and it's better to ask questions than expect things to work the same way when they won't!