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
- at NEIU, your web files go in your http directory
- at UNB, your web files go in your web directory
- Note: All UNB web pages are somewhere within:
- http://www.unb.ca/web/ for regular
- or
- https://www.unb.ca/web/ for secure server
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