22S:166 Fall 2006 Instructor: Cowles Homework 1 Week 1, 8/21: Intro to Linux and LateX Reading (should be completed by Mon. Aug. 28): "Learning the shell" at www.linuxcommand.org Problems (due Fri. Sept. 1 in class) 1. If you are new to Linux, go through all the steps in "Learning the shell" (in Reading section) on a Linux computer. You do not have to turn in anything for this problem. 2. If you do not already know how to use a Linux text editor, begin learning to use "gedit." It can be brought up in either of two ways: a. From the RedHat icon, choose "Accessories/Text editor." b. In a command window, enter gedit Read through the first 3 sections of the on-line manual (under the "Help" pull-down). (If you already know how to use Emacs, Vi or Vim, it is fine to use them for this course.) You do not have to turn in anything for this problem. 3. Create a directory called "s166hw" in your home directory. Download the text file of this homework assignment into that directory. Use either gedit, Emacs or Vim to edit the file as follows: a. Insert your name as the first line of the file. b. Delete the section containing the reading assignment. c. By default, do the Linux computers on the statistics network operate in text mode or in graphical mode? Type your answer in the space below, with a one-sentence justification. d. Open another terminal window. In that window, type the approprate Linux commands to: (1) change to the s166hw directory (2) make a subdirectory called "junk" in the s166hw directory (3) set the permissions on the "junk" subdirectory so that your group has read/write/execute permission and others do not have any access (4) list the contents of the s166hw directory in such a way that file permissions are displayed (5) move the "junk" directory from the s166hw directory into your home directory (6) remove the "junk" directory Copy the commands and output from the new window into the text file in the space below: 4. (Optional. Do this question only if you are already familiar with Linux and need something more challenging than question 3.) Your configuration file will be called .cshrc unless you have changed to a shell other than the default. Edit your configuration file to accomplish the following: a. Add the directory /group/yoyo/bin/i386-linux to the end of your path. b. Create an alias so that if you type "print2col " what will actually be executed is nenscript -2rG Copy the lines that you have added to your .cshrc file in the space below: 5. Save the text document. To submit your homework, email the text document to me as an attachment. kcowles@stat.uiowa.edu