text
stringlengths
0
33k
Gaining access to your UNIX account.
The UNIX Shell
How to enter UNIX commands.
Files and Directories
Storing and manipulating files.
Input/Ouput Redirection
How to manage input and ouput.
Pipelines and Filters
Creating processing pipelines.
Processes and Multitasking
Managing processes.
Interaction and Job Control
More on managing processes.
Text Editing with Emacs
Creating and editing text files with the emacs editor.
The Execution Environment
The environment under which shell commands and programs run.
Customizing the Shell
Personalizing your UNIX shell environment.
Interactive Use of the Shell
Tips and tricks to enhance your efficiency with the command line interface.
The UNIX Filesystem
A closer look at UNIX files and directories.
IDAHO STATE UNIVERSITY
Contact: webmaster@isu.edu
Revised: January 9, 1996
URL: http://www.isu.edu/departments/comcom/unix/workshop/unixindex.html
Section 1: What Is UNIX?
UNIX is an operating system. The job of an operating system is to orchestrate the various parts of the computer -- the processor, the on-board memory, the disk drives, keyboards, video monitors, etc. -- to perform useful tasks. The operating system is the master controller of the computer, the glue that holds together all the components of the system, including the administrators, programmers, and users. When you want the computer to do something for you, like start a program, copy a file, or display the contents of a directory, it is the operating system that must perform those tasks for you.
More than anything else, the operating system gives the computer its recognizable characteristics. It would be difficult to distinguish between two completely different computers, if they were running the same operating system. Conversely, two identical computers, running different operating systems, would appear completely different to the user.
UNIX was created in the late 1960s, in an effort to provide a multiuser, multitasking system for use by programmers. The philosophy behind the design of UNIX was to provide simple, yet powerful utilities that could be pieced together in a flexible manner to perform a wide variety of tasks.
The UNIX operating system comprises three parts: The kernel, the standard utility programs, and the system configuration files.
The kernel
The kernel is the core of the UNIX operating system. Basically, the kernel is a large program that is loaded into memory when the machine is turned on, and it controls the allocation of hardware resources from that point forward. The kernel knows what hardware resources are available (like the processor(s), the on-board memory, the disk drives, network interfaces, etc.), and it has the necessary programs to talk to all the devices connected to it.
The standard utility programs
These programs include simple utilities like cp, which copies files, and complex utilities, like the shell that allows you to issue commands to the operating system.
The system configuration files
The system configuration files are read by the kernel, and some of the standard utilities. The UNIX kernel and the utilities are flexible programs, and certain aspects of their behavior can be controlled by changing the standard configuration files. One example of a system configuration file is the filesystem table "fstab" , which tells the kernel where to find all the files on the disk drives. Another example is the system log configuration file "syslog.conf", which tells the kernel how to record the various kinds of events and errors it may encounter.
Section 2: Accessing a UNIX System
There are many ways that you can access a UNIX system. The main mode of access to a UNIX machine is through a terminal, which usually includes a keyboard, and a video monitor. For each terminal connected to the UNIX system, the kernel runs a process called a tty that accepts input from the terminal, and sends output to the terminal. Tty processes are general programs, and must be told the capabilities of the terminal in order to correctly read from, and write to, the terminal. If the tty process receives incorrect information about the terminal type, unexpected results can occur.
Console
Every UNIX system has a main console that is connected directly to the machine. The console is a special type of terminal that is recognized when the system is started. Some UNIX system operations must be performed at the console. Typically, the console is only accessible by the system operators, and administrators.
Dumb terminals
Some terminals are referred to as "dumb" terminals because they have only the minimum amount of power required to send characters as input to the UNIX system, and receive characters as output from the UNIX system.
Personal computers are often used to emulate dumb terminals, so that they can be connected to a UNIX system.
Dumb terminals can be connected directly to a UNIX machine, or may be connected remotely, through a modem or a terminal server.
Smart terminals
Smart terminals, like the X terminal, can interact with the UNIX system at a higher level. Smart terminals have enough on-board memory and processing power to support graphical interfaces. The interaction between a smart terminal and a UNIX system can go beyond simple characters to include icons, windows, menus, and mouse actions.
Section 3: Logging In and Logging Out
To ensure security and organization on a system with many users, UNIX machines employ a system of user accounts. The user accounting features of UNIX provide a basis for analysis and control of system resources, preventing any user from taking up more than his or her share, and preventing unauthorized people from accessing the system. Every user of a UNIX system must get permission by some access control mechanism.
Logging in