Home | | Schedule | | Assignments | | Lectures | | Resources
Question 1 Run ls -l ~/labs/lab7/practice/*.gnu in the terminal. All the files Linux lists have something in common that is different from all other files in that directory. What is it?
All of the file names end in ".gnu".
Question 2 Run ls -l ~/labs/lab7/practice/sample.* in the terminal. All the files that Linux lists have something in common, different from all the files not listed. What is it?
All of the file names start with "sample.".
Question 3 How many files in that directory have a lowercase 'a' in their name? Hint: You can use the ls command with a cleverly chosen wildcard pattern to print exactly those file names.
Six files. They can be listed with this command: ls -l ~/labs/lab7/practice/*a*.
Question 4 What command can you use to delete all files ending in ".cc" in that directory?
rm ~/labs/lab7/practice/*.cc
Question 5 What do the Up or Down keys do at the shell prompt? Try them to see.
They let you use previously typed commands.
Home | | Schedule | | Assignments | | Lectures | | Resources
CSCI 131: Techniques of Programming
Last Modified: March 28, 2014
Page Expires: October 12, 2014