Day 1 Exercise 2
There are a number of file management tips and techniques that can make creating
and maintaining your web pages a little easier.
Part 2.1: Scan WWW-data Directory.
Despite the fact that the www-data directory is in AFS, you can use the Network
Server SCAN command to view its contents.
- Return to the Network Server menu, by using F3, or
by logging in again.
- At the prompt, enter
scan /ahome/userid/public/www-data/.
- You will see a list of the files you have in your www-data
directory.
Part 1.2: View your page using LUNX
LUnx is a locally-written text-based WWW browser, based on Lynx, that uses the
Network Server-standard function keys. When you list a .htm or .html file,
with the list command or by selecting it in SCAN, the Server displays the file
in LUnx.
- In the SCAN listing of your www-data file, go to (highlight) your home page
file name.
- Press Enter. Your home page will be displayed in LUnx.
- To exit LUnx, press F3.
Part 1.3: Set up UNIX symbolic link for www-data
To make editing and viewing your files easier, you can set up a symbolic link
which will make a nickname for your www-data directory that looks like a
subdirectory of your Network Server space.
- In the Network Server, enter shell to get to the UNIX
prompt.
- To create the nickname, enter:
ln -s /afs/cc.lehigh.edu/home/userid/public/www-data subdirectory
where subdirectory is the nickname you want to use.
- To get back to the regular Network Server, enter exit.
- In the Network Server, type scan.
- In your file listing, you will see the "nickname" subdirectory. Select
it and press enter; you will see the contents of your www-data directory.
End of Exercise.
JAH, 13 Sept 1996.