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.
- List all directories
- List all files with names ending in *.py
- Run the ls program with the
-l
option on all files ending in *.py - List all files that are less than 1024 bytes in size
- List all files that are less than 1024 bytes in size and have names ending in *.py
- List all files that are less than 1024 bytes in size or have names ending in *.py
- List all files (exclude directories) which have all three permission bits set
- List all files that contain the string CSCI
- List all files that contain the string CSCI followed by whitespace followed by a three digit number
- 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.