Spring 2015 CSCI 372 Homework 5

This homework will test out your find and grep.

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

Now show how you can use find and grep to do the following within the directory /home/brock/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 (exclude directories) which have all three permission bits set
  8. List all files that contain the string CSCI
  9. List all files that contain the string CSCI followed by whitespace followed by a three digit number
  10. List all files that contain the string CSCI followed by either whitespace or the string   followed by a three digit number

Upload your captured log to the Homework 5 moodle page by 11:00 PM on Wednesday, 25 February.