Download 22 Questions on Unix Fundamentals - Experiment 3 | CSCI 2200 and more Lab Reports Computer Science in PDF only on Docsity! CSCI 2200 Lab 3 – Working with Files Name: _______________________________________________________ Objectives: • Reinforce the Unix directory structure. • Reinforce the Unix directory commands. • Introduce the following Unix file commands: – touch – cat – chmod – rm – cp – mv • Introduce the concept of redirection Enter the commands to accomplish the following tasks. Also answer any questions. Do not change directories to accomplish these tasks unless instructed to do so. Each question worth .4 points. 1. Create a new subdirectory of your home directory named SourceFiles. Command:_________________________________________________ 2. Go to the SourceFiles directory. Command__________________________________________________ 3. Create a new file called HelloWorld.java in this directory with the following content: public class HelloWorld { public static void main (String args[]) { System.out.println(“Hello World!”); } } a. Initial command to start entering data:_________________________________ b. Command used to terminate data entry:________________________________ 4. (no response necessary) Create another file called csci2200.html in this directory with the following content: <html> <body> This is yourname’s CSCI2200 links:<ul> <li><a href=http://csciwww.etsu.edu/zucker/csci2235dir/slides/lab2stud.ppt> Directory slideshow</a> </li> </ul> </body> </html> 5. Verify that you have a public_html directory as a subdirectory of your home directory. If public_html directory is not there, please create one, and then verify that it is there. Do not change directories. Command:_____________________________________________ 6. Create a subdirectory of the public_html, calling it csci2200dir. Do not change directories. Command:_____________________________________________ 7. Move the csci2200.html file to csci2200dir directory? Command:_____________________________________________ 8. What permissions does the csci2200.html have by default for: a. Group? ___________________________________________ b. the World?_________________________________________ 9. Change the permissions on the csci2200.html file to allow: all permissions for you; execute permission for the group and the world, using the numeric method. Command:_______________________________________________