Spring 2017 CSCI 373 Homework 2

This homework will test out your find and grep skills.

First, log into one of the Linux workstations or ssh to arden.cs.unca.edu . Then connect to /home/brock/public_html/classes/Spring2015/csci373, the directory containing the Spring 2015 CSCI 373 web pages.

Now show how you can use find and grep to do the following within the directory /home/brock/public_html/classes/Spring2015/csci373.

  1. List all directories
  2. List all files with names ending in *.py
  3. Run the ls program with the -l option on all files ending in *.py
  4. List all files that are less than 1024 bytes in size
  5. List all files that are less than 1024 bytes in size and have names ending in *.py
  6. List all files that are less than 1024 bytes in size or have names ending in *.py
  7. List all files that contain the string CSCI
  8. List all files that contain the string CSCI followed by whitespace followed by a three digit number
  9. List all files that contain the string CSCI followed by either whitespace or an end-of-line or the string  

Upload your captured log to the Homework 2 moodle page by 11:55 PM on Friday, 3 February.