Docsity

Operating Systems Assignment: File and Directory Manipulation, Assignments of Software Engineering

Partial preview of the text

Download Operating Systems Assignment: File and Directory Manipulation and more Assignments Software Engineering in PDF only on Docsity!

Operating Systems Assignment

Name:B.Manish Rao

I.D: 19BIT0333 L- 1

Here we have changed the directories and we can see as of now I have only created dir5,dir6,dir7,dir So there is no dir3 so it shows directory3 is not created.

L- 2

Here we have created the files as when we type ‘dir’ it displays every files and directories created in it. When we use ‘ clear command ’ the terminal will clear all the data. This is the “echo command” using echo command we display or store the data in files or we directly used to print the data.

(i)

(ii)

(iii) #!/bin/bash FILES=$@ for FILE in $FILES do if [ - f “$FILE” ] then echo “$FILE is a reguler file” elif [ - d “$FILE” ] then echo “$FILE is a directory” else echo “$FILE is another type of file” fi ls - l $FILE done (iv) (v)