Question: Scripting in Linux: Write a linux script that checks the contents of the current working directory and prints the names of the directories and files

Scripting in Linux: Write a linux script that checks the contents of the current working directory and prints the names of the directories and files that are currently in it. It should print all the directory names in one group and the file names in another in a manner like below (including the tab whitespace):

Files:

file1

file2

Directories:

dir1

dir2

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!