Steve Reynolds wrote:
I have a few commands that I would like to run at the command prompt.
In Windows I do this with a bat file that looks like the sample below. How do I do a similar thing with Linux?
For those not familiar with windows bat files the snippet below presents the user with a menu at the command prompt.
In windows I have a shortcut to a text file called backup.bat, when I double click that shortcut I launch a DOS window with the menu below already loaded for the user. I would like to do a similar thing with Linux.
Linux doesn't directly support bat files. I would recommend you do a google for "linux shell scripting" for a quick tutorial on Linux's version of bat files. You'll find the shell scripting language syntax very similar, though not identical, to a batch file and I'm certain you'll be able to accomplish what you need to do with minimal effort. A little bit of reading is all that is required. I'll start you off with a very good shell scripting site: http://steve-parker.org/sh/sh.shtml