3 scripts needed in Linux

Feb 16th, 2015
Computer Science
Price: $25 USD

Question description

this is what i need : 

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 file in the directory "backups" within the home directory, renaming the file daily.bu.

Script 3:

1.  Ask the user for a file's name

2.  If the file exists, ask them if they would like to (C)opy, (M)ove, or (D)elete it by choosing C, M, or D

3.  If the user chooses C, ask for the destination directory and move it there

4.  If the user chooses M, ask for the destination directory and move it there

5.  If the user chooses D, delete the file.

For Script 3 ensure that the user enters only C, M, or D, warning them about the mistake if they should enter something else.

You will turn in three shell scripts named "Script1.sh", "Script2.sh", and "Script3.sh". Turn in your assignments on BlackBoard.

Tutor Answer

(Top Tutor) Daniel C.
School: Boston College

Studypool has helped 1,244,100 students

8 Reviews

On Time
Dec 1st, 2016
" Goes above and beyond expectations ! "
Nov 22nd, 2016
" awesome work thanks "
Nov 18th, 2016
" Top quality work from this guy! I'll be back! "
Nov 9th, 2016
" Excellent work as usual "
Oct 26th, 2016
" AMAZING as always! "
Oct 17th, 2016
" Excellent job "
Oct 4th, 2016
" all I can say is wow very fast work, great work thanks "
Sep 25th, 2016
" Totally impressed with results!! :-) "
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