book collections email follower instructable user
Picture of How to Write a Simple Linux Shell Script

This Instructable will show you how to create and execute a simple Linux shell script.

A shell script, at its simplest, is an automated series of Linux commands stored for repeated later use. For this example, we are going to use a number of simple commands, like ls, pwd, chmod, touch, uname, ping and grep.

Step 1: Choose Text Editor

Picture of Choose Text Editor

Shell scripts are written using text editors. On Linux systems, there are a number to choose from: Vim, Emacs, Nano, Pico, Kedit, Gedit, Geany, Notepad++, Kate, Jed or LeafPad.

Once you have chosen a text editor, start the text editor, open a new file to begin to typing a shell script.

selikiekone1 month ago
How to save file in the editor
tytower2 years ago

Why is it in an Open Document Template file? Why not just a simple text file or bash script? I would guess you are trying to get some macro or other on to peoples machines.

tytower2 years ago

So this is not at all clear . Its a mess in fact

Certainly it appears as a script and you can copy the text into a .sh file , change permissions and run it but it gives you nothing .It does not get the web site . It comes up with xml and I have no idea what you are trying to do but I am suspicious !