Question: (Linux) Please create a new Linux command called Dirls which behaves like the ls command but only shows directories. If no path is specified it
(Linux) Please create a new Linux command called Dirls which behaves like the ls command but only shows directories. If no path is specified it lists directories in the current directory, if a path is specified it lists directories in the given directory.
The command should handle the following flags:

Option Description -1 Show the detailed listing of directories. Show hidden directories. -a Option Description -1 Show the detailed listing of directories. Show hidden directories. -a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
