CSCI 320 - Operating Systems & Concurrency
Spring 2019
Shell Assignment 2
What shell command produces each of the following outputs?
- The five most recently modified files in the current directory.
- The five least recently modified files in the current directory.
- The number of files in the current directory.
- All Python files in the current directory or any of its recursive subdirectories.
- All Python files in the current directory that import the math module.
Do not include the text from the file, only the filename.
- All currently executing Python programs.
- All files in the current directory, sorted from the largest number of
lines to the smallest. Include the number of lines in the output.
- 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
- Each correct answer is worth 2 points.
- The assignment is worth 16 points total.