• Welcome.
  • Last Updated: Apr.16.2003
  • Remember to link back to us! Thank you for visiting!

    Web-Site General

    - Home
    - Updates
    -FAQ
    - WebMasters
    -Links
    -Comments
    -E-mail Us
    -Page Information
    - Legal Information

    Web-Creation

    -Layouts
    - BackGrounds
    - CSS Scripts
    - JavaScripts
    -Blogs
    -HTML
    -HTML Color Chart
    - DHTML
    -Frames
    - GUI

    Graphics

    - Paint
    - Paint Shop Pro
    - Adobe Photo Shop
    - Flash
    - Gif Animators
    -Microsoft Photo Editor
    - Movie Maker

    Windows Programs

    -Access
    - Excel
    - Internet Explorer
    -PowerPoint
    -Microsoft Works
    -Misc.
    -MS Dos Prompt
    - Outlook
    -Win-Zip
    -Windows Explorer
    -Word

    Operating Systems

    - 3.1
    -95
    -98
    -ME
    -NT 2000
    -XP
    -XP Pro.
    -Linux
    -Unix

    Other Tips

    - Keyboard ShortCuts
    -TroubleShooting
    -Media and Music
    -Binary
    -Macros
    -Files

    Unix

    History of Unix

    The first version of UNIX was created in 1969 by Kenneth Thompson and Dennis Ritchie, system engineers at AT&T's Bell Labs. It went through many revisions and gained in popularity until 1977, when it was first made commercially available by Interactive Systems Corporation.

    At the same time a team from the University of California at Berkeley was working to improve UNIX. In 1977 it released the first Berkeley Software Distribution, which became known as BSD. Over time this won favour through innovations such as the C shell.

    Meanwhile the AT&T version was developing in different ways. The 1978 release of Version 7 included the Bourne Shell for the first time. By 1983 commercial interest was growing and Sun Microsystems produced a UNIX workstation. System V appeared, directly descended from the original AT&T UNIX and the prototype of the more widely used variant today.

    Unix Today

    There are two main versions of UNIX in use today: System V and BSD. System V is the more popular of the two.

    From a user's perspective they are very similar and you are unlikely to have difficulty unless you use more than one type of system. In this case you might notice differences in the structure of the file system or in how certain commands behave. The on-line manual should be helpful if you have problems.

    Although UNIXhelp is now based on a System V variant of UNIX, you should see only minor differences in the example input and output if your system is a BSD one.

    The OS

    Strictly speaking, UNIX is not one single operating system, it is a family of operating systems. Different computer manufacturers produce their own versions of UNIX.

    Although these are mostly similar, there are small differences which can cause problems. The most obvious examples are the layout of the file system and the exact format of certain commands.

    Processes

    When you enter a command it invokes a program. While this program is running it is called a process. It is important to grasp that although there is only one copy of a program held in the file system, any number of processes can be invoked which run this program.

    When the operating system is started after a boot, a single process is started. This process is the parent of all subsequent processes. Each process created on the system has a unique number, known as its PID, associated with it.

    When you login to the system a process is started to run your shell program. Any processes that are started from within your shell - such as entering a command - are the children of this process. A process can have many children, but only one parent.

    Command Lines

    Options modify the way that a command works. They usually consist of a hyphen followed by a single letter.

    For example the wc command counts the number of words, characters and lines in a file. By using a different option you can choose what is counted.

    wc -w file1 counts the words
    wc -c file1 counts the characters
    wc -l file1 counts the lines

    As well as using the shell to run commands you can use its built-in programming language to write your own commands or programs. You can put commands into a file - known as a shell script - and then execute that file as you would a command or program.

    The use of the Bourne shell (sh) is illustrated as this is available on all UNIX systems. Bourne shell scripts will also work under the Bourne Again SHell. The C and TC shells use a programming language which is similar to the C programming language.

    These are the contents of a shell script called display:
    cat display
    # This script displays the date, time, username and
    # current directory.
    echo "Date and time is:"
    date
    echo
    echo "Your username is: `whoami` \\n"
    echo "Your current directory is: \\c"
    pwd

    The first two lines beginning with a hash (#) are comments and are not interpreted by the shell. Use comments to document your shell script; you will be surprised how easy it is to forget what your own programs do!

    The backquotes (`) around the command whoami illustrate the use of command substitution.

    The \\n is an option of the echo command that tells the shell to add an extra carriage return at the end of the line. The \\c tells the shell to stay on the same line. See the man page for details of other options.

    The argument to the echo command is quoted to prevent the shell interpreting these commands as though they had been escaped with the \\ (backslash) character.Before using a file as a shell script you must change its access permissions so that you have execute permission on the file, otherwise the error message Permission deniedis displayed.

    To run the shell script, simply type its name at the prompt. The commands in the script will then execute one at a time as though you were typing them in at the terminal.

    To give yourself execute permission for the file containing the script use the command:
    chmod u+rwx filename

    The +rwx after the u allows you to read, write to and execute the script: no one else has permission to read, write or execute.

    To give other users permission to read and execute but not alter the shell script use:
    chmod go+rx filename

    © 2003 helevorn

    Site hosted by Angelfire.com: Build your free website today!