CSCI 320 - Operating Systems & Concurrency

Spring 2019

Shell Assignment 1

What shell command produces each of the following outputs?
  1. Listing of all files in a directory, including "hidden" files.
  2. A long-list of files in a directory, with file sizes in the most appropriate of the following: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte
  3. The first fifteen lines of a file.
  4. The last fifteen lines of a file.
  5. Every line in a file containing the word "red".
  6. All files in a directory ending with "txt".

Grading Criteria