{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CS252 Lab2 - CS252 Lab2 Writing a Shell Script to...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS252 Lab2 Writing a Shell Script to Automatically Backup a Directory Goal In this lab you will learn shell scripting using bash. Part 1: Shell Scripting A shell is an application program that interprets the commands that a user types and executes programs. There are several shell programs: Bourne shell (sh, bsh), C-Shell (csh), Korn-shell (ksh), T-cshell (tcsh) , and bash . You will use bash in this lab to implement your shell script. First of all, read the notes about shell programming in Unix Shell Scripting (google also "bash tutorial" for other tutorials) and study the examples in the lab2-src directory. You can get those examples by downloading the file lab2-src.tar.gz and by typing: bash> gunzip lab2-src.tar.gz bash> tar -xvf lab2-src.tar Now that you are an expert in shell scripting write the following script to automatically back up a directory. Part 2: Write a Backup Script Write a backup script backupd.sh that will automatically backup a directory.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}