Question
Please do all steps this is Unix. I am Attaching some of the steps with pictures below so it is easier for you to understand
Please do all steps this is Unix. I am Attaching some of the steps with pictures below so it is easier for you to understand what is going on, please do these steps.
Task #7. Write a bash shell script in cs3377 directory.
First (1), create a shell script (myScript1.sh) in cs3377 directory by: touch myScript1.sh
Second (2), change its file attribute to be executable: chmod a+x myScript1.sh
Third (3), edit this file with vi or vim
Fourth (4), insert the first line of the file to be: #!/bin/sh
Fifth (4), collect all the commands from Task#2 to Task#6, and insert each command to be one line in this file.
Make sure that you are in the right directory to execute each command as specified in each task.
For example, for task#6, you should have: cd a1task6 (before running ls R)
The script file will contain:
#!/bin/sh
mkdir a1part1
cd a1part1
mkdir dir1
cd dir1
touch file1.txt
Copy and paste your shell script here
Task#8. You are in cs3377 directory. First, remove (delete) a1part1 directory and all the files and its subdirectories recursively (with rm command). Show (ls R) that all the files and its subdirectories are deleted. List the directory information and also save the output to task8.txt.
rm r a1part1
ls R a1part1
ls R a1part1 > a1task8.txt
Copy and paste the output of Task#8 here
Task #8. Write a bash shell script (myScript2.sh) in cs3377 directory, to do what you did in Task#7 (to delete a1part1 directory and all files and subdirectories of a1part1 in cs3377).
Copy and paste your shell script (myShell2.sh) here
Task#9. run the myShell.sh file to recreate all the files and directories that you have done in Task#2 to Task#6.
List all the files and subdirectories and save its output to a file:
ls R
ls R > a1task9.txt
Copy and paste the output of Task#9.
Please do steps 7,8,9 like this.................thanks
Task 2 ********
Task 3 ********
Task 4 **********
Task 5 ********
Task6 ********
ubuntu17.10 [Running) - Oracle VM VirtualBox File Machine View Input Devices Help Activities Terminal Sat 21:14 madhav@madhav-VirtualBox:~/Desktop Trash File Edit View Search Terminal Help madhav@madhav-VirtualBox:- cd Desktop/ madhav@madhav-VirtualBox:~/Desktops ls chegg ftp.txt ssh.txt test.c nadhav@nadhav-VirtualBox-/DesktopS mkdir CS337 test.c chegg ssh.txt ftp.txt 914 PM 49 ENIG 15/09/2018Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started