Command Lines
Kelley Katzenmeyer

1) cp test.txt test2.txt
2) mv test.txt test3.txt 
3) rm test3.txt
4) chmod 555 myscript.sh (?)
5) The file "/etc/motd" only contains the word "welcome" once, on one line. The line reads: "Welcome to Darwin!" You can find this out by typing the command “grep -ic welcome \/etc\/motd”.
6) export BUILDING=300\ West\ Morgan\ Street
7) tar czf myfiles.tar.gz myfiles
A:
 tr "[:upper:]" "[:lower:]" <list2.txt | sort -r +1

Vi

1) Vi has two different modes: command and insert. When vi is first opened it appears in command mode. Command mode can be used for saving, quitting and moving/altering text. Vi commands are typically short and simple, which makes them useful and easy to remember. Once in command mode, you can switch to insert mode by typing the command 'a' (or 'i').  Insert mode allows you to go in and change the file's actual text. To exit insert mode, press ESC. This will return you to command mode- the only mode where you can quit the program. To quit, use the command :q, or to save and quit you can just type ZZ.
2) The command keys h, j, k, and l are very useful for moving through text. However, you can only use them in command mode. (In insert mode, you'll just end up typing a bunch of j's and k's.) Use h to move the cursor one character left, and l to move to the right. J is used to travel down one line, while k will take you up one.
3) To search for a string in vi, enter command mode and type "/mystring" However, to search for the string "/etc" you have to remember to 'escape' the slash it contains. This means instead of tying to type "//etc", you must type "/\/etc". (Add in a backslash.) It looks kind of strange, but there you go.
4) To delete the current line, just type dd.

Miscellaneous

1) My numeric userid is 1443
2) I am a member of the groups: users aprentice
3 ) You (skarpen) are a member of the groups: users succeed newdev cserd committers video cvsusers clientadmin group cvsadmin staff owner webcal_admin
4) The command used to find the full operating system is: “uname –a”. 
The full operating system version I used to complete this activity with is:
Darwin synapse-67.shodor.org 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep  8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc