CSCI 320 - Operating Systems & Concurrency

Spring 2019

Shell Assignment 2

What shell command produces each of the following outputs?
  1. The five most recently modified files in the current directory.
  2. The five least recently modified files in the current directory.
  3. The number of files in the current directory.
  4. All Python files in the current directory or any of its recursive subdirectories.
  5. All Python files in the current directory that import the math module. Do not include the text from the file, only the filename.
  6. All currently executing Python programs.
  7. All files in the current directory, sorted from the largest number of lines to the smallest. Include the number of lines in the output.
  8. All files in the current directory, sorted from the smallest number of characters to the largest. Include the number of characters in the output.

Grading Criteria