CS 3000 -- Lab Assignment #1 Using Unix -- Read this material. Do the exercises here that you don't understand completely. Work with a partner 1. a. login b. Change your password if you have not given yourself an appropriate password. (On Suns, use nispasswd.) c. If you change your password logout and then log back in to make sure your new password works the way you think it should. 2. Do a man ls and read the DESCRIPTION section, and look at some of the options such as -l, -a, -F, and -C 3. a. Do ls ~john This does an ls on my home directory. Remember that the ~ is a special symbol that means "home directory of". It allows you to access home directories when you only know someone's user name. ~john is one example of a relative path name. b. Do ls -l ~john Look at the information and ask someone what it means or go back and do man on ls again. Find a directory that you will be able to cd to. c. Do a cd to the directory you found in part b. d. Look around and see what is there (if you get stuck ask for help) e. Look for an ascii file. If you don't find one where you are, try moving into a different sub-directory of ~john. f. Do cp filename ~/ where "filename" means the name of the ascii file you found. This command copies the files into your home directory. g. Do cd ~ or just cd (This cd's you back into your home directory) 4. a. Do an ls on your home directory b. Do an ls -al on your home directory c. Do mkdir CS3000 d. Do another ls or ls -al and look at the permissions on the directory you just created e. Move the file you copied in step 3f into the new CS3000 directory using the mv command f. Repeat steps 3 & 4 for a different file except don't make a new directory this time. 5. a. Take a look at a file using more b. Take a look at a file using less c. Take a look at a file using cat d. Take a look at the file using cat, piping the file thru more 6. a. Do a man on the rm command. Read the DESCRIPTION section and several of the descriptions of options. b. Remove one of the files you made in step 3f. 7. a. Do a pwd (this tells you the current working directory) b. Do a cd to your home directory c. Do a pwd again d. Remove the other file you copied in step 3f, unless you want to hold on to it for a while.