shrike% passwd
Old password: your old password
New password: what you want your password to be
Retype new password: again
The Nice Editor
To start up:
shrike% ne filename
or just ne
Esc key brings up or gets rid of menus
Cursor keys move around file or menus
the mouse does nothing!!! Don't touch it!!!!
some commands are assigned to control keys (signified by ^
)
Commands to try: save, exit, open, mark block, copy,
cut, paste, search, replace
Unix files and directories
Your "home" directory: ~<account name>
for example, mine is ~mgehard
can also refer to as ~
All files are contained in a directory (like a PC folder)
You're always connected to a directory (default: home directory)
Files in connected directory may be accessed without using
directory name
When using directory names, place / after them.
Subdirectories
Directories may contain files and other
directories (subdirectories)
Example: ~mgehard/Mail, or ~mgehard/public_html
Using ls command, directories and files are
indistinguishable
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
All .html files should reside in your public_html subdirectory
(or a subdirectory of public_html)
Your home page is
~<account name>/public_html/index.html
e.g., ~mgehard/public_html/index.html
URL of your home page is the pathname without public_html in it
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.
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.
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.
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).
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