1. Copy the file "test.txt" to "test2.txt" glutamate:~ mknight$ touch test.txt \glutamate:~ mknight$ cp test.txt test2.txt 2.Rename the file "test2.txt" to "test3.txt" glutamate:~ mknight$ mv test2.txt test3.txt 3. Delete the file "test3.txt" glutamate:~ mknight$ rm test3.txt 4. Make the file "myscript.sh" readable and excecutable by all users glutamate:~ mknight$ chmod 555 myscript.sh 5. Tell me how many lines of the file "etc/motd" contain the word "Welcome" (with any capitalization) glutamate:~ mknight$ grep -ic welcome "/etc/motd" 6. Set the environment variable "BUILDING" to "300 West Morgan Street", and make it so that the other programs can see it. glutamate:~ mknight$ export BUILDING=300\ West\ Morgan\ Street 7. Create a compressed tar archive called myflies.tar.gz out of the contents of the Directory "myfiles" glutamate:~ mknight$ mkdir myfiles glutamate:~ mknight$ tar cf myfiles.tar myfiles glutamate:~ mknight$ gzip myfiles.tar 7a. Take the contents of a file and convert it to upper case, sort it in reverse alphabetical order based on the contents of the second column. tr "[:upper:]" "[:lower:]" < PartA.txt | sort -r +1 vi 1) Explain the difference between insert mode and command mode. Insert mode allows the user to write text, while command mode allows you to do everything else, including but not limited to, manipulation of files and the ability to change settings. 2) The h,j,k,and l keys move the cursor. The h key moves the cursor left. The l key moves right. The j key moves the cursor down. The k key moves the cursor up. 3) How would I search for the string "/etc"? Typing /\/etc would give you search results for /etc 4) How would I delete the current line. You would type dd at the end of the line. Miscellaneous 1) My numeric userid is uid=1456(mknight) 2) I am a member of groups users and apprentice. 3)You are a member of gid=100(users) groups=100(users), 107(succeed), 1007(newdev), 1015(cserd), 1013(intranet), 33(video), 104(cvsusers), 1010(clientadmin), 16(group), 105(cvsadmin), 1004(staff), 10(owner), 1003(webcal_admin) 4) The full operating system name is glutamate:~ mknight$ uname -amnpsrv Darwin cholecystokinin.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