Notes about using your Shrike/Students account

Unix: Changing your password

shrike% passwd Old password: your old password New password: what you want your password to be Retype new password: again

The Nice Editor



Unix files and directories



Subdirectories



Other Useful UNIX commands

Command Function Example man explain a command man ls ls list entries in a directory ls ~/ mkdir make a new subdirectory mkdir ~/public_html cd change directories cd ~/public_html cat list a file cat project1.txt more list a file more project1.txt cp copy a file cp project1.txt project2.txt mv move a file mv *.txt ~/public_html rm delete a file rm project2.txt rmdir delete a directory rmdir ~/public_html ne edit a file ne project1.txt

Posting a Web page

Posting applets on shrike

  1. Write the Java program on a PC or on hawk. If on a PC, use Notepad or some other ASCII editor to create and edit the .java file.

  2. Compile the program. This produces one .class file, or more than one .class file if your .java file has more than one class in it.

  3. If the assignment involves an applet, write a .html file to run the applet, still on a PC or on hawk. Use an ASCII editor, or an html editor such as FrontPage.

  4. FTP the .class file(s) and the .html file to shrike. Place them in your public_html subdirectory. Be sure to use binary mode when ftp-ing the .class file(s).

  5. Make sure the protections of your .html file and .class file(s) are set properly, as well as the protections of your public_html subdirectories. The following Unix commands will set these protections properly: chmod 711 ~/public_html chmod 744 ~/public_html/*.class chmod 744 ~/public_html/*.html