Write a function that lists the number of ordinary files, directories, block special files, character special files, FIFOs, and symbolic links in the working directory. Do this in two different ways:

a. Use the first letter of the output of ls –l to determine a file’s type.
b. Use the file type condition tests of the [[ expression ]] syntax to determine
a file’s type.


a.





b.


Computer Science & Information Technology

You might also like to view...

A static method can ________.

a. call only other static methods of the same class directly b. manipulate only static fields in the same class directly c. be called using the class name and a dot (.) d. All of the above.

Computer Science & Information Technology

Explain the two major benefits of creating functions for algorithms?

What will be an ideal response?

Computer Science & Information Technology

What is the output from the following?

``` >>> first = "Abe" >>> last = "Lincoln" >>> print first + “ “ +last ```

Computer Science & Information Technology

?The threats-vulnerabilities-assets (TVA) worksheet is a document that shows a comparative ranking of prioritized assets against prioritized threats, with an indication of any vulnerabilities in the asset/threat pairings.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology