Assignment 1

Jul 14th, 2016
Studypool Tutor
Towson University
Price: $10 USD

Tutor description

ITEC 325 Fall 2012 Assignment 1 Working individually you are to create three scripts. These scripts will perform the functions described below. Script 1: 1. Perform a ls -al on the files within the user's home directory and save it to a file called ls.dat within your ~ directory 2. Save the tree information for the /home directory in a file called tree.dat within your ~directory 3. Create a new directory in your home directory called "backups" 4. Move the files you just created to the new directory 5. Rename the files that you just moved to "ls.bu" and "tree.bu". Script 2: 1. Ask the user for their name 2. Create a file called "daily.dat" within the home directory 3. Ask the user for a line of text that the system should save to the file 4. Add to the file the line of text entered by the user 5. Ask the user for a second line of text that the system should save to the file 6. Append at the end of the file the line of text entered by the user 7. Create a copy of the

Word Count: 348
Showing Page: 1/2
AwanUsman AwanITEC 325.0406/7/2016Assignment 11.#!/bin/bashls -al > la.dattree > tree.datmkdir backupsmv la.dat backups/ls.bumv tree.dat backups/tree.bu2.#!/bin/bashecho "What is your name?"read nameecho "Please write any line of text you would like the system to save:"read line1echo "$line1" > daily.datecho "Please enter a second line:"read line2echo "$line2" >> daily.datmv daily.dat backups/daily.bu3.#!/bin/bashecho "Please Enter a File name:"read fileNameif [ -f "$fileName" ]thenecho "Press C to copy, M to move, and D to delete the file."read optionelseech

Review from student

Studypool Student
" Thanks for the help. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1823 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors