Question: Please write a bash script to do the following tasks: 1. Please create 10 files under your home directory /home/ubuntu/. These files should be named

Please write a bash script to do the following tasks: 1. Please create 10 files under your home directory /home/ubuntu/. These files should be named test1.txt, test2.txt, , test10.txt (20 points) 2. Create a directory named TestBackup under /home/ubuntu/, and copy the newly created 10 files into the TestBackup and then change the extension of the 10 files to pdf. So after this command, you should see 10 files whose names are test1.pdf, test2.pdf, , test10.pdf (40 points)

3.Please print the names of the running processes related to socket to the terminal. Hint: use the ps ef command to display all of the running processes and then use grep socket to search processes related to socket.(40 points)

Note: You need to write only one bash script to do all of those jobs!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!