Back t



o the Assignments Main Page







The Unix Assignment

Why Bother with Unix: Some Reasons

  • The web page you are now looking at resides on a unix server.
  • The web page you develop and use for your teaching at Northeastern will also reside on a unix server. Therefore, at some point you will probably need to know a little bit of unix, just to accomplish certain necessary tasks.
  • Unix is like Linux, an open source OS which will allow you to run your own server.
  • Unix isn't owned by Bill Gates!

    What We'll Learn About Unix

    I have condensed the most basic of unix commands into a "Just Enough Unix" list and game. For those of you who are interested in a more thorough knowledge of Unix, take a look at two great sources on the Hotwired's WebMonkey Site, Unix Reference Guide and Just Enough Unix for Your Resume. For those of you who have other things to do with your time, but just want to skim by on Unix, use my "Just Enough Unix" below.

    NEIU and UNB UNIX Information

    Just Enough Unix

     
    JUST ENOUGH UNIX: A Bare-bones Summary by Jim Lucas
    
    Note: while UNIX may be hard to learn, it is easy to use.  The more you
    learn of it and use it, the more you'll respect it as a powerful and
    elegant tool. 
    
    
    Here are some basic unix commands:
    
    ls 
        	this means "display files and subdirectories of current directory"
    dir
            this will work instead of ls, even though it's not a unix command  
    |
        	this means to pipe (connect two programs)
    more
        	this means to show data one screen at a time
    ls|more
        	this means to show contents of current directory one screen at a
    	time
    cd
        	this means to change directory to the home directory
    
    cd http
        	this means to change to the http directory (from the home
    	directory)
    
    cd ~
        	this means to change to the home directory
    
    cd ../
        	this means to move up in the directory heirarchy one level
      	(so, if I'm in http, typing cd ../ will place
      	me back in the home directory)
    
    pico
        	this means to open the pico text processor (pine composer)
    
    pico index.htm
        	this means to open the pico textprocessor with index.htm file in
    	the buffer
    
    cp
    	copy a file (cp oldfile newfile)
    
    rm
    	remove a file (rm file)
    
    passwd
    	change your password
    
    chmod
    	change mode of permission for a file or directory (chmod o+r file)
    
    chmod o+r
    	change permissions of a file to basic web permissions
    	(others/read)
    
    chmod o-r
    	change permissions of a file to take away basic web permissions
    	(others/not read)
    
    exit (or logout)
    	the command to end the session
    
    pwd
    	tells you where you are in the directory structure
    
    
    General UNIX Information:
    	To back up and correct typos, try pressing Backspace or
    	Control/Backspace
    
    	Type a space between the command the the file name
    
    	Always log out with the exit or logout prompt/command before you
    	use the file/exit command
    
    	Captial and small letters are different in file names
    
    	File names can contain letters, numbers, periods, and underscores.
    	Avoid other punctuations.  Don't put spaces in file names.
    
    	Use the * wild card to represent a bunch of characters in a
    	filename.
    	
    	A pathname is the path in which you can find a file or directory.
    	For example, if I'm in my home directory and want to read in a file
    	called media.html which is in my multi directory, which is inside
    	my http directory, I type this in when prompted for the file name
    	"http/multi/media.html".
    
    
      

    The UNIX Tic Tac Toe Game

  • The UNIX Tic Tac Toe Game

    Resources

  • Unix Reference Guide
    A fabulous resource!
  • Unix is a Four Letter Word...
    A useful tutorial.
  • UNIX Guide for Beginners
    Useful for beginners.
  • A Basic UNIX Tutorial
    Their section on files and directories is useful.

    Alternatives to UNIX

    Here are some alternatives to using and learning UNIX:
    • Use a web server like UserActive
    • Use WebCT
    • Use a WindowsNT server
    I'm sure other alternatives are available. I hope seminar members will submit some, and I'll post them here.

    The UNIX Quiz

    Once you've read this material, tried most of these commands a few times, and played the UNIX Tic Tac Toe Game, take the
  • UNIX Quiz
  • Back to Assignment Page
  • Back to Web 101 Main Page