Lesson 101

Concepts we covered

Commands we used

Commands required for homework


Use the "man" command to read up on all the commands we used. You will also need to read about the 2 commands that we didn't use (listed above).

Remember: To make a script called scriptname and run it, you must follow these steps
  1. Write script with nano scriptname and exit Nano
  2. carry out the following command : chmod +x scriptname
  3. run it as follows (and whilst in the same directory): ./scriptname
Create a directory called "homework101" in your home directory. The three scripts you write should be located here.

Write a script called "info" that outputs the following:
	Hello world!
I am a script located in the following location:
<working directory here>
I am being run by the following user:
on the following system:
Next write a script called "mailme" that takes the output from the "info" script, puts it in a cow and sends it in a mail with
Finally, create a directory called "backup" in your home directory. Write a script called "backup-homework" that copies everything in your homework directory into the backup directory:


For information on Nano text editor: http://www.debianadmin.com/nano-editor-tutorials.html
Pipes (goes a little beyond what we did): http://www.december.com/unix/tutor/pipesfilters.html