Question: Please write the bash code and the run of the code. Thanks Design and implement bash script (mybash.sh) to create a few files and directories

Please write the bash code and the run of the code. Thanks

Please write the bash code and the run of the code. Thanks

Design and implement bash script (mybash.sh) to create a few files and directories as shown below (in the current working directory). 1. Create a few directories as shown below in your current directory (dir1, dir2, dir3, and dir4 in dir1, dir5 in dir2), a few files (file1 and file2 in current directory, file4 in dir4, and a soft-link link1 in dir5 (to link to file3). You should use system call to do these tasks. For example, system("mkdir dir1"), etc. 2. Traverse the directory structure from current directory (recursively, that is, to traverse left-to-right depth-first manner) and (1) to print the current path (with pwd command using system("pwd") call) and (2) to print (list) any file/directory entries (with Is command) in each directory as you traverse. Your bash script should print the result from current-directory, then to the path name of dir1, and then dir4 and so on. Deliverables: list your bash code here and the run of it

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!