Operating System
Operating System
Structure :
1.0 Introduction
1.1 Objectives
1.2 What is an Operating System?
1.3 History of Operating System
1.4 Operating System Concepts
1.0 Introduction
Without software, a computer is basically a useless lump of metal. With its software,
a computer can store, process and retrieve information and engage in many other valuable
activities to earn its keep. Computer software can be divided roughly into two kinds:
System program, which manage the operation of the computer itself, and application
programs, which perform the actual work the user wants. The most fundamental system
program is Operating System, which controls all the computer resources and provides
the base upon which the application program can be written.
A modern computer system consists of one or more processors, some main memory,
disk, printers, network interfaces and other input/output devices. It is all in all, a complex
system. Writing programs correctly, is an extremely difficult job. If every programmer
had to be concerned with how disk drives work, and with all things that could go wrong
when reading a disk, it is unlikely that many programs could be written at all.
Some way had to be found to shield programmers from the complexity of the
hardware. The way that has evolved gradually is to put a layer of software on top of bare
hardware to manage all parts of the system. This layer of software is the Operating
System.
1
The situation is shown in the following figure. At the bottom hardware, which
composes two or more layers. Lowest layer contains physical devices, consisting of
Integrated circuits chips, wires, power supplies, CRT and similar physical devices.
Banking Airline
Web Browser
Application Programs
System Reservation
Command
Compilers Editors System
Interpreter
Software
Operating System
Machine Language
Micro Programming
Hardware
Physical Devices
Next comes primitive software that directly controls these devices. This software is
called Microprogram usually located in Read Only Memory. The set of instructions that
the microprogram interprets defines the Machine Language.
In this layer Input / Output devices are controlled by loading values into special
device registers. Next layer is operating system. The major function of the operating
system is to hide all this complexity and give the programmer a more convenient set of
instructions to work with. On top of the operating system is the rest of the system
software. Here we find, Command Interpreter (Shell), Window system, Compilers,
Editors and similar application independent programs.
Finally above the system programs come the application programs. These programs
are purchased or written by the users to solve their particular problems for Ex: Word
processing, Spreadsheets, Engineering Calculations, Games etc.
1.1 Objectives:
2
1.2 What is an Operating System
• Access to Input / Output devices: Each Input / Output device requires its
own peculiar set of instructions of control signals for operation.
Operating system takes care of details so, the programmes can think in terms
of simple read and writes.
• Error detection and response: Variety of errors can occur which a computer
system is running, i.e., internal and external hardware errors, such as memory
error, device failure error, various software errors, inability of Operating
3
System to grant request of an application errors and so on. In each case,
Operating System must make the response that clears the error condition. The
response may range from ending the program that caused the error, to retrying
the operation to simply reporting the error to the application.
Operating System is nothing more than the computer program. This provides
instructions to processor like other programs do. Main difference between Operating
System and other programs is, Operating System directs the processor in the use of the
other system resources and in the timing of its execution of other programs.
• Second Generation (1955-65) Transistors and Batch System. Here for the
first time between the programmers and maintenance persons, Transistors
were introduced. To run a job, a programmer would first write the program on
paper, then punch it on cards, bring the card deck down to Input / Output
4
room batch system was to collect a tray full of jobs in the Input / Output room
and then read them onto a magnetic tape just to reduce the wasted time.
Job3
Job2
Job1
Operating System
While one job was waiting for Input/Output to complete, another job could be
using the Central Processing Unit. Therefore, if enough jobs could be held in
main menu at once, Central Processing Menu could be kept busy nearly 100%
of time. This concept is called as Multiprogramming.
Another major feature in Third Generation System was the concept of time
sharing, in which each user has an On-line terminal. As multiprogramming
allows the processor to handle multiply and batch jobs at a time, the processor
time is Shared among multiple users in time sharing systems. The basic idea
for time sharing system is to have multiple users Simultaneously using the
system with the Operating System inter leaving the execution of each user
program in a short burst of computation. Thus if there are n users actively
requesting service at one time, each user will see on average only 1/n of
effective computer speed. The following figure shows Multiprogramming
with two programs:
5
Program A Run Wait Run Wait
Operating Systems are among the most complex pieces of software. Five major
achievements in the development of Operating System are
• Process
• Memory Management
• System Structure
6
• Processes : It is somewhat more general term than job. Process is a program
that is in execution. Three major lines of computer system development
created problems in timing and synchronization that contributed to the
development of the concept of the process. Multiprogramming batch
processing, time sharing and real time transaction. The design of system
software to co-ordinate the various activities turned out to be difficult. With
many jobs in progress at any one time, each of which involved numerous steps
to be performed in sequence, it became impossible to analyze all the possible
combination of sequences of events. So many errors were detected which
were difficult to diagnose because they needed to be distinguished from
application software errors and hardware errors. To tackle these problems, it is
required to monitor and control the various programs executing on the
processor in a systematic way.
The concept of process provides the foundation process consists of the following
three components.
• An executable program
Execution context includes the information that the Operating System needs to
manage the process and that the processor needs to properly execute the process.
If two processes A and B exist in a portion of the main memory, each process is
recorded in process list, which is maintained by Operating System. Process index register
contain the index in to the process list of the process currently controlling the processor,
Program counter points to the next instruction in that process to be executed. Base and
limit register defines the region in memory occupied by the process.
7
• Process Isolation : Operating System must prevent independent process from
interfacing with data and memory of each other.
• Long term storage : Many users and application require means for storing
information for extended periods.
Operating Systems meet these requirements with the concept of Virtual Memory
and file system facilities. Virtual Memory is a facility that allows program to address
memory from a logical point of view without regard to the amount of main memory
physically available. That is, when a program is executing only a portion of program and
data may actually be maintained in main memory. Other portions of program and data are
kept in blocks in disk itself and will be brought to main memory whenever its execution
is required.
• No sharing : In this case, processes are completely isolated from each other
and each process has exclusive control over resources statically or
dynamically assigned to it.
8
policy enforces restrictions concerning which users have access to which
classifications
• Access Control : Is concerned with regulating user access to the total system,
sub systems, and data, and regulating process access to various resources and
objects within the system
• Information flow control : Regulates the flow of data within the system and its
delivery to users
• Fairness : Typically, we would like all processes that are competing for the
use of a particular resource to be given approximately equal and fair access to
that resource. This is especially so for jobs of the same class, that is, jobs of
similar demands, which are charged the same rate.
The operating system maintains a number of queues, each of which is simply a list of
processes waiting for some resource. The short-term queue consists of processes that are
in main memory (or at least an essential minimum portion is in main memory) and are
ready to run. Any one of these processes could use the processor next. It is up to the
9
short-term scheduler, or dispatcher, to pick one. A common strategy is to give each
process in the queue some time in turn; this is referred to as a round-robin technique.
Priority levels may also be used. The long-term queue is a list of new jobs waiting to use
the system. The operating system adds jobs to the system by transferring a process from
the long-term queue to the short-term queue. At that time, a portion of main memory
must be allocated to the incoming process. Thus, the operating system must be sure that it
does not over-commit memory or processing time by admitting too many processes to the
system. There is an I/O queue for each I/O device. More than one process may request
the use of the same I/O device. All processes waiting to use each device are lined up in
the device queues. Again, the operating system must determine which process to assign
to an available I/O device. The operating system receives control, of the processor at the
interrupt handler if an interrupt occurs. A process may specifically invoke some operating
system service, such as an I/O device handler, by means of a service call. In this case, a
service-call handler is the entry point in to the operating system. In any case, once the
interrupt or service call is handled, the short-term scheduler is invoked to pick a process
for execution.
System Structure
As more and more features have been added to operating systems and as the
underlying hardware has become more complex and versatile, the size and complexity of
operating systems has grown. The size of a full-featured operating system and the
difficulty of the task it addresses have led to three unfortunate but all too common
problems. First, operating systems are chronically late in being delivered. This goes for
new operating systems and for upgrades of older systems. Second, the systems have
latent bugs that show up in the field and must be fixed and reworked. And finally,
performance is often not what was expected. To manage the complexity of operating
systems and to overcome these problems, much attention has been given over the years to
the software structure of the operating system. Certain points seem obvious. The software
must be modular. This helps to organize the software development process and limits the
task of diagnosing and fixing errors. The modules must have well-defined interfaces to
each other, and the interfaces must be as simple as possible. Again, this eases the
programming task. It also makes the task of system evolution easier. With clean, minimal
interfaces between modules, one module can be changed with minimal impact on other
modules.
10
Chapter 1 - EXERCISE
True or False
11
Chapter 2
INTRODUCTION TO DOS
Disk Operating System manages your computer’s resources. The part of Disk
Operating System that controls the hardware such as the video screen, keyboard, mouse,
disks and printer is the Kernel. A second part of Disk Operating System that interprets
your commands and causes the kernel to do what you want is called the Command
Interpreter. However, I will use the term command prompt to refer to it since the
prompt is its visible part that you use to communicate with the kernel. More precisely, the
command interpreter converts commands you enter at the command prompt to their
required form and gives them to the kernel.
The Disk Operating System shell is actually an interface between you and the
command interpreter that provides an easy way to enter commands. Each time Disk
Operating System is started, the command prompt is automatically displayed on your
screen. Nevertheless, you can set up your system to have the Disk Operating System shell
automatically displayed instead. Since the Disk Operating System shell is easier to use
than the command prompt. First let’s see which interface is waiting for your command. If
you are working at the command prompt, the last line on the screen looks like this :
C:\>
This line may be the only one on the screen. When the Disk Operating System shell
is first set up and is waiting for your command, the Start Programs screen appears.
A disk drive is a device which runs the disk (floppy or hard) and in the process either
storing data or reading from it. A PC has floppy drives only and the first floppy drive is
conventionally called drive A: whereas the second floppy drive is designated as drive B:
Booting is synonymous with starting a computer. When you switch on the computer
first thing in the morning, the computer with instructions from BIOS, which are programs
fused in to ROM, the read only memory of the computer or the firmware, checks the
memory and peripheral routines. Drive A: of a microcomputer is the primary drive,
which a computer looks for first of all on switching on. It reads the disk in drive A: for
12
any boot record or system files. If drive A: does not have these it goes to the drive C:,
skipping drive B: as per specific BIOS instructions, to read the same. On finding these
the computer starts the process of loading DOS in to the RAM of the computer. Once the
DOS is loaded it is said that the DOS has been booted and the computer is ready to accept
your order. The following prompt stares at you and awaits your orders:
A>_ or C>_ will be displayed along with a flashing cursor depending upon whether
the system has been booted from A: or C: drive. When you boot from A: drive DOS
diskette must be in drive A: snugly inserted with drive door properly closed otherwise
disk in drive A: will not be read. When you boot from C: drive DOS must be previously
installed in the hard disk so that the system files are duly loaded in to RAM.
MS-DOS is a command-driven operating system. This means that there are a set of
commands which you give to the operating system for the tasks you wish it to perform.
These commands are entered in front of the System Prompt (A, or B, or C..) at the place
you see the blinking “hyphen” which is the cursor. After you enter the command you
press the {Return} key to record your command. Until you press {Return} you can
correct any typographical mistakes that you may have made while entering your
command. The line at which you enter your command is called the Ms-DOS Command
Line.
A> tells you the current default drive. Unless overridden by the command, DOS will
search this drive for all files. To change the default drive, simply enter the drive desired
as follows:
The DOS FORMAT command performs several functions. Firstly, the FORMAT
command converts an off-the-shelf disk to a disk that DOS can use. Secondly, FORMAT
can make a disk bootable by DOS if you use the /S qualifier in the FORMAT command.
Thirdly, FORMAT places a list of damaged disk locations on the disk so that DOS will
not try to use those locations to store data. Lastly, FORMAT allows you to specify a
volume label. Give the following command to format diskette in drive B:
Filename.txt
13
The file name must contain one to eight characters. The extension is optional and, if
present, must contain from one to three characters. A period separates the file name from
the extension. The following are valid DOS file names:
DOSFILENAME.DAT is illegal because the file name portion of a DOS file name
can not exceed eight characters.
CON.DAT is illegal because CON is a DOS device name. DOS reserves several
names for the devices that are attached to your computer. The following are illegal DOS
file names on account of these being reserved desired names:
The .234 is illegal because it lacks a file name. Only the three-character extension in
DOS file names is optional.
By directory is meant the list of files and/or sub-directories that are present in a
floppy disk or hard disk.
14
DIR/W <Return> The above displays the files and directory entries across the screen
with W standing for “wide view”. This way you can get more file names on the screen at
one time. However, the display will consist of only primary name and extension, if any. It
will not <Dir> entry nor it will give the space used and the date and time of creation of
individual files. The command is used to quickly browse through the list of all files
present in a disk or directory.
A>DIR *.EXE You will see all the files having extension .EXE will be displayed.
A>DIR S*.EXE You will see all the files having primary name which starts with S
and with extension .EXE will be displayed.
C:\>DIR A: <Return> is the command from drive C to see directory of disk in drive
A.
C:\>DIR C: <Return> is the command to see the directory of C:.
C:\>DIR *. <Return> is the command to see the names of just the sub directories
present in the root directory of the hard disk C.
C:\> DIR FILENAME.* <Return> is the command to display the files having the
same primary name (say FILENAME) but different extension.
C>DIR ???A.?B? The above command will search for all files that have a primary
name of 4 characters with the fourth character as A and an extension of 3 characters with
the middle character as B.? is a character which represents any single character in a file
name. This technique is used to search those files whose full names are not known or are
temporarily forgotten. ? is called a wild card character.
C:\>DIR *.* Represents all the characters of the primary file name if it is written
prior to the extension dot. If entered after the extension dot it represents all the characters
given to the extension. Thus the above command will show all the files located in C
drive. The difference between ? and * is only that where as ? represents single character,
* represents all characters. * is also called a wild card character.
15
2. ASSIGN -- Changes the name of a disk drive
Format ASSIGN A = C
ASSIGN A=C;B=C
Assign
3. ATTRIB – Displays and changes read-only and archive attributes of a disk file
Format ATTRIB +R ambig
ATTRIB –R ambig
ATTRIB +A ambig
ATTRIB –A ambig
ATTRIB +A + R ambig /S
ATTRIB
16
Format DATE
DATE 6-9-89
16. EXIT – Returns you to the DOS shell from the second command prompt
Format EXIT
17
23. MEM – Displays amount of total and available memory
Format MEM
MEM /PROGRAM
32. RESTORE – Restores the hard disk from floppy disk backups
18
Format RESTORE A: C:\*.* /S
RESTORE A: C:\*.* /S/N
RESTORE A: C:\LOTUS\*.* /S
RESTORE A: C:\*.* /S/A:2-4-89
RESTORE A: C:\*.* /S/B:2-4-89
33. SET – Changes and displays the current state of DOS features
Format SET COMSPEC=C:\COMMAND.COM
SET
SET SPOOLER = 48K
19
VERIFY = ON
VERIFY
20
Chapter 3
Structure :
3.0 Introduction
3.1 Objectives
3.2 What is Windows NT ?
3.3 Windows NT features and Architecture
3.3.1 Organizing programs and documents in Windows NT
3.3.2 Setting Object Properties
3.3.3 Printing
3.3.4 In Control Panel
3.4 What is new in Windows’98 ?
3.5 Navigating Windows’98 ?
3.5.1 Working with Windows and using Menus
3.5.2 Working with Files, Folders and Disks
3.5.3 Customizing and maintaining Windows’98
3.5.4 Working with Windows applications
3.6 Summary
3.7 Model Answers
A window is a boxed area in which you view programs, files, folders, drives, icons
representing programs, files or folders and other elements. Most windows can be opened,
closed, sized, reduced, enlarged, moved or positioned on the desktop. Some common
elements of Windows are:
• Title Bar : Contain windows name, control menu and Minimum, Maximum
of restore and close button.
21
• Menu Bar : Contains menus with related commands and options that help
you control the window and its contents.
• Control Menu Button :- Contains menu commands that help you to control
window itself which can be used to Minimum, Maximum, Restore and close
the window itself.
• Tool Bar :- Displays graphic tool buttons that represent short cuts to various
menu commands
• Folders :- Icons within windows that represent directories. Folders can hold
other folders and files
• Windows Border :- A rim around a window, that is., used to resize the
window
• Status Bar :- A bar across the bottom of window the describes the contents of
window. Such as free space, number of objects or files in window and so on.
• Scroll Bar :- A vertical and horizontal bar that enables you to move the
internal viewing area of a window.
22
WindowsNT
3.1 Objectives
• Set properties
• Manage Printing
23
NT is easily portable to variety of platforms because of the modular nature of Windows
NT architecture.
• Preemptive, and
• Cooperative:
A thread is most basic unit of code that can be scheduled for execution. A process is
composed of one or more threads.
4. File Systems : Windows NT supports a variety of file systems like:
24
• New Technology File System (NTFS) introduced by Windows NT
6. Support for many clients : Following clients can serve as Work Station on a
Windows NT hardware.
• Windows 3.x
• MS-DOS
• Windows 95/98
• Macintosh
• Operating System/2
25
• POSIX Complaint application
• TCP/IP
• DLC
• NetBEUI
• Apple talk
• Netware Link
• Novell Netware
• User Mode is the Operating System Mode in which user applications and
environment subsystems are executed. Several important sub systems run in
user mode. Two of them are:
26
o Security Sub system which handles logon process. It works directly
with the security reference monitor in kernel mode to verify password.
A user enters the user name and password, the security sub system
builds and sends an authentication package in to the kernel mode, then
to security reference monitor where it is checked against security
account data base. If entered password is correct, security reference
sends an access token back to security sub system.
This method prevents a badly written program from destroying system resources or
leaving the computer in an unstable state. Kernel schedules all system activities for
optimum performance. The kernel queues data channels it to the microprocessor and the
processed data directs it in to the appropriate route. Kernel enforces and manages
execution according to thread priority.
• Demand Paging
It is just a practice of using a hard drive to fool the operating system and application
in to behaving as if there were move Random Access Memory than actually exists.
Whereas Demand Paging is a process of demanding for the required page. Each
application running under a Windows NT is given a unique virtual address space
composed of equal blocks called Pages. Demand Paging refers to the process of moving
data in to paging files and then paging it back in to physical memory when the
applications need it.
27
3.3.1 Organizing programs and Documents in Windows NT using the Start
Menu :
Clicking the start button brings up the start menu. From the start menu, you can find
any thing you need or you have on your system. Just by clicking the contents on the start
menu, you can select the item and move to the required location.
You will always have instant access to the “Controls” for your computer. If you have
a Windows 95/98/NT Keyboard, you can quickly access the start menu by pressing the
special windows key. Otherwise, press Ctrl+Esc.
• Adding programs to start menu : If you copy any file, program or system
object to the start menu, NT work station automatically creates a short cut to
that item, and because you are on the start menu, you can access that short cut
any time.
To create a short cut on start menu, drag the file you want, on to the start
button, next click the start button, the short cut to that file will appear on top
of start menu.
• Arranging open Windows with task Bar : Start menu and Task Bar provide
right click menus that enable you to set options for controlling their behaviour
and appearance.
You can change the size and position of all open application by making
choices from the n Task Bar’s right Click menu. Simply right click anywhere
on Task Bar to bring up the menu with the following choices.
• Minimize all Windows : Minimizes all your open applications to the Task
Bar, just to clear the desktop.
• Undo Tile and Undo minimize all : Undoes whatever task bar operation you
last performed
28
• Properties :- Brings up task bar properties sheet with various pages of options
that not only let you arrange items on the start menu and the task bar, but
also permit you to specify opening and closing behaviour of those items.
Properties sheet has two tables.
Task Bar Options : tab lets you set a few basic options for start menu and task bar
as follows:
• Always on top keep task bar visible all times
• Show small icons in start menu :- shrinks the size of icons on start menu and
removes with NT
Start Menu programs tab provides options to remove the programs from start
menu. This tab permits changes to Properties like
• Click the item you want to remove if you had to go to a fly out menu when
you used the start menu to access the item, then item will be in sub folder in
mini explorer window now.
29
• Click Remove Button
• Dialog box ask if you are save to delete a program (Click OK if save)
Using Explorer : Explorer is almost like desk top, because any thing you expect
want to do to a file or program and any configuration changes can be done from explorer.
Opening Vs Exploring : Main difference between opening a desk top object and
exploring a desk top object is opening simply opens a window that shows only the
contents of object. Whenever, when you explore the same program it displays the tool bar
full of useful buttons and right pane for displaying the contents of whatever you select in
left pane. Explorer is best when you want to explore what file on application you want to
use.
Branches : Explorer shows a file system with may levels or branches. Top level lets
you look at fundamental pieces of your System. When you first open explorer, there is no
highlight to show you what is selected in left pane. This changes as soon as you click
30
something in left pane to change the view in right pane. There is a line at the top of right
pane that displays the name of the selected folder.
Views : The ways how the objects appear in explorer are called views. The view that
you choose affects only the right explorer pane. The left pane always looks the same.
That is, an expandable list of folders and files on your computer.
There are four views you can choose from to display icons in explorer and five ways
to arrange the icons.
• Large Icon View :- The one you are familiar with. In this view, the icons are
large, so easily recognizable.
• The small icon view shrinks the size of icons on the right explorer pane. That
is., to see all the Files in a folder
• List view takes same icons of small icon view and lists them up and down
instead of across the Explorer pane.
• Details View move all the icons to the left most column and user the other
column for file/object Information related to the icons. This information
includes the file type, size of file, and date of the File was last modified or
saved.
Sorting of files in right pane can be done by name, size, date or file type. This makes
it easier for you to find the file you are looking for. To do this, go to right pane view
31
menu and click arrange icons, select the required sorting options. Type of file refer to
three character extension like .doc file and size refers to size of file in bytes, kilo bytes or
mega bytes as appropriate.
Tool Bar :- Tool Bar take all the most commonly used tasks from a specific
application and put them in easy reach. Below Figure shows the explorer tool bar.
• Previous folder takes you to the folder above the one you are in. Clicking this
button takes you up to next level that is, my computer, from there it takes to
desk top is end.
• Disconnect network drive Disconnects you from the network drive you
specify
• Cut : Cuts or detects a selected file or folder from your hard drive. You can
also use Ctrl X on Key board or choose cut from edit menu
• Copy : Copies a selected file or folder from your hard drive. Alternative is
Ctrl + C or cut of edit Menu
• Paste : Adds a selected file or folder from your hard drive. Alternative is Ctrl
+ V or paste from Edit menu
• Delete : Moves any files or folders selected to the recycle bin. This is same as
cut, but after you have deleted you can not paste it as you do in cut operation
• Properties : Opens the properties sheet for the item you have selected.
Alternative is Ctrl + Enter or Properties from file menu
• Large Icons, Small Icons, List View and details :- Sets different views for
explorer right pane
32
• Open Opens your selected file using its associated application. If the file
selected does not have an associated application it prompts you for the
application to open the file.
• Send To Sends your selected file to any of location you have placed in your
send to folder
• Create Short Cut : Creates short cut to the selected file in current folder.
• Delete Sends selected files and files and folders to recycle bin
• Rename : High lights the name of the selected file or folder. Type your new
name for the file or folder and press enter to accept it.
• Cut Removes files and folders from the current location . You can paste them
in to a new folder or use cut as a means of deleting them
• Paste Pastes or inserts files and folders you have cut and copies from other
folders in to currently open folder
• Paste Short Cut takes a file you have copied and paste a short cut to the file
in the active folder
• Invent Select Reverses the number of items selected. That is, if we have
selected two items reverse select will select all but the two items you
originally selected
• Map network drive :- Assigns a drive letter to a network drive. If you check
a reconnect at logon box any drive you have mapped is automatically assigned
the same drive letter each time you restart the NT Work Station.
33
• Disconnect network drive :- Removes a drive letter assigned from network
drive that is, previously mapped
• GOTO Automatically takes you to the drive or folder you indicate. In the text
filed, enter the path of drive or folder you want to go and click OK or press
Enter. As a power, Go to keeps a test of folders you have gone previously. To
access one of those, click the drop down list and choose the path. You can
also access go to by using Ctrl + G is explorer.
• Help Menu Opens explorers help file. This menu provides access to overall
Windows NT help too.
Right Click Menus : Commands available on the right click menu changes
depending on such factors as your current folder’s location. Current file or folder type,
user privileges and existence of other programs on your computer. Most common
Commands on right click menu are:
• New to create a new file or folder
• Send To
• Rename
• Delete
• Properties
• Choose where you want to create a new folder. You can create new folder on
desktop, at the root of hard drive or floppy drive or inside another folder.
34
• If you are in explorer, choose new folder from the file menu or from the right
click menu. Similarly if you are creating a folder on desktop, choose new and
then folder from right click menu.
• The folder is created with the default name new folder. To give a new name to
the folder, type the Name. You can always rename a folder by choosing
rename from file menu or right click menu and typing new name
• Moving Items Files or folders can be moved any where on your computer or
over the network you are attached to. To move, do the following:
1. Select the file or folder you want to move. To select move than one
object, use the mouse to highlight all the objects you want to move or
copy.
2. To move you can follow two methods. One is to choose cut and paste,
other is to drag the items from one Place to other there are various drag
destinations.
• Drag from either explorer pane to the start button. This don’t
move the item but it creates a Short cut on start menu
• Copying Items : Files and folders can also be copied any where on your
computer or the network attached to. To copy a file or folder, do as follows:
1. Select the file or folder Press Ctrl + Click to select multiple objects.
One at a time or shift + Click the first and last objects
2. To Copy, you can follow two methods. One is to choose copy and
paste from edit menu. Other is to Drag the items from one place to
another. To ensure that the objects you are dragging are copied and not
moved, you should hold down the Ctrl Key while you are dragging.
35
Saving files and folders on to desk top
To save files on the desktop do one of the following
• If you are saving the file from within an applications, scroll to desk top in the
applications save as dialog box and then save your file
When you drag files with the right mouse button and then release the button, a menu
pops up offering a special set of options to help you decide how to move the file or
folder. Use the following steps to move a file or folder.
• Select the file or folder you want to move to desk top
• Click with the right mouse button and drag the objects to the desk top
• When you drag the object to the desk top and release the right mouse button, a
menu appears, giving you these options:
o Create Short Cut here creates a short cut to the file at new location
Deleting files and folders : If you do not want a file or folder any more, you can
easily delete it. By default if you default a File, the file is not actually deleted. Instead
it is compressed and sent to a folder called recycle bin that is, it is not removed from your
hard drive. Recycle Bin is a good intermediate place to keep files you are pretty sure you
want to delete. If you want to get it back, you can always open the recycle bin and use its
restore option to get the object.
Sending items to recycle bin : There are several ways to send a file to the recycle
bin:
36
• Drag and drop the item on to recycle bin
Emptying Recycle Bin : After sending a file to recycle bin we can delete it from the
recycle bin. After deleting it from Recycle Bin, the file is removed from your hard drive
and is gone forever.
To empty the recycle bin, do one of the following:
• Right click the recycle bin icon on your desk top and choose empty recycle
bin
• Open the recycle bin in explorer and choose empty recycle bin from the file
menu.
Restoring items from the recycle bin :- For this you can do one of these things
• Open recycle bin and drag the file you want to restore to folder
• Open recyle bin, select file you want to restore, Choose restore from file menu
or right click menu
• Right click the location you deleted the file from and select undo delete from
the context menu
Windows NT Folder :- This Windows NT folder contains several sub folders that
perform specific function for the Operating System. Windows NT folder is divided in to
following folders.
• Configuration Contains NT registry. This provides information on all the
hardware devices connected to your machine, directly or indirectly
• Cursors Stores NT animated mouse cursors. This folder may be empty if you
did not choose to install all the cursors during set up
• Forms Stores forms if you are using forms with Microsoft exchange. By
default, only basic form Templates are stored here
• Media Stores system sound files. When you assign system sounds to different
operating system events, you call files from this folder. You can store any
.WAV file in this folder and make it available to NT
37
• Profiles Holds a hierarchy of personal folders for each user who uses your
system
• Repair Contains back up copies of some essential system files, so that you
can restore them in case of a system crash
• System Stores 16-bit system files if you can install NT Work Station over
Windows 3.1. It also provides some backward compatibility for 16-bit
windows applications that really want to see a system folder.
Right Clicking objects throughout the NT interface brings up a short cut menu with
options pertaining to the Objects at hand. The same options are available from main
menu also, but are more conveniently reachable with right Click. A good example of
right click item is task bar.
Right click start button you will see the following menu:
38
Other right click menus often have cut, copy, paste, open, print and rename choices.
Just as most objects have right click menus, may also have properties sheets.
Properties provide you with a simple and direct means for setting everything from how
the screen looks to whether a file is hidden or what a shared Printer is named.
Every object in NT work station, whether a printer, modem, short cut, hard disk,
folder, hard ware computer, or hard ware driver has a properties sheet containing its
settings. These settings affect how the object works and some times how it looks.
Properties sheets not only display the settings for the object, but also usually enable you
to easily alter the settings.
Many right click menus have properties choice at the bottom. This choice is often the
quick path to an objects Properties sheet. Note that there are not other ways. Many dialog
boxes have a properties button to object settings. The control panel also can be used for
setting numerous properties. Still, as you become more comfortable with NT, you will
find right click approach is most expedient.
Trying out few properties sheet :- Properties option is last button on right click
menu. Example: If you right click My Computer Icon Desktop you will see this menu
39
Just choose properties command, to set time, date and time zone for your computer.
Other Example is, suppose you are browsing some folders using explorer and you come
across an item word document, wondering what it is ?, when it was created ?, and who
created it ? You right click and choose properties you find the following properties sheet
Notice that several tab pages are on the sheet. Because word stores its property
information in several location. Other applications might pop out only single tabbed
property sheets. Most document properties sheets are truly useful only if you want to
examine the history of the file or set its attributes such as whether it should be read only
or hidden from view etc. The point is you can view the status of document not alter it.
Properties sheets for objects other than documents, however often let you make
move changes to them. Short cut properties for example lets you adjust some goodies
about how short cut works, file it points to.
40
These properties sheet can affect any program or document. Short cut key lets you
assign a key combination that will run the short cut from any where. Example : to jump to
My Computer, With out having to first minimize all your other windows.
• Get to the desk top. Then My Computer, choose create create short cut, this
creates new short cut on desk top called short cut to My Computer
• In properties dialog box, click the short cut tab, then click short cut key filed
• Click OK to finish
• General page tells you some useful information about version NT, How much
memory your computer has, what type of Central Processing Unit chip is in
your machine
41
• Performance page lets you set to what degree the foreground application gets
extra process priority, and also lets you adjust the system virtual menu
settings. Unless you know what you are doing, it is best to keep the default
settings.
• User Profile page lets you save different configuration of your desk top
appearance, including which items appear on your start menus and other
interface settings, so that different desk top appearances can be associated
with different users logging in to the system. You can also specify “Roaming”
configuration which permits your desk top appearance to be available to every
machine on your hardware.
3.3.3 Printing :-
42
1. Log on as an administrator
2. Select Start -> Settings -> Printers
5. Position the properties window so that you can see both the properties
window and printer window
6. Click the print test page button in the properties window. As soon as
the test page appears in printers Window, click once on the test page
print job and then select document -> pause
If you have fiddled around with the Control Panel at all, you can see that it acts as a
sort of “Mission Central” for NT Workstation. Some of the settings behind the icons can
be reached from other directions, but others can be reached only by way of the Control
Panel.
43
• Installing or uninstalling software applications
• If the check box is gray, a part of the component is selected for installation.
Click the details button to specify which parts you want.
Click OK once or twice until the window closes. You will be prompted to put the NT
Workstation CD in the CD Drive.
Console :- When you want to run a DOS session from NT, you open a command
prompt window (by choosing Start -> Programs -> MSDOS Prompt). The command
prompt window in NT is not DOS, but rather a full 32-bit program that understands DOS
commands. You can set options for the command prompt window through the console
program. Double click the Console icon to set the display as window or full screen and
adjust other settings, such as the font, colors, and the cursor size.
44
Display :- Behind the Display icon are all the settings that affect your screen display,
including colors, screen savers, the appearance of windows and dialog boxes, and
resolutions.
Installing New Fonts :- Installing new fonts is a pretty easy project. Just double
click the Fonts icon in the Control Panel and select Install New Font from the File Menu.
In the Add Fonts dialog box, you can specify the drive and directory where the font(s)
reside(s). If there is one or more TrueType or PostScript fonts at the location you specify,
they will show up in the List of Fonts Box. Highlight the font or fonts you want to install
and click the OK button.
45
WINDOWS’98
The first change that you will notice in Windows’98 is the new Active Desktop. This
has a similar look but a very different feel from Windows’95. Point at a desk top icon and
a hand appears. The icon is immediately selected and you have to click only once to
activate the short cut. The Active desktop gives you the ease of use of a web browser.
Internet explorer 4 steps with Windows’98 so that many windows have a web browser
feel. You will find new navigation buttons and add bars, making it easy for you to browse
files on browse web sites, with out having to change windows or programs. The start
menu has new favorites choice, so you can quickly go to your favorite web site and
customize the task bar by adding a windows tool bar. Other new features are :
• Outlook Express uses open internet standards and allows you to read your
e-mail and addition books created
• Net meeting provides Internet collaboration in real time. Using data, audio
and even video, you can share information, work together and exchange files
during conferences.
• Secure your Personal Computer with Zones. Zones allow you to assign
security options to web sites
• A unified driver model for Windows’95 and Win NT means, all the old
drivers for your hardware will continue to work even though you have
upgraded your operating system
46
• Incorporated full window dragging, font smoothing and other interface
enhancement
Windows’98 includes the features like multitasking or the ability to run more than
one program at a time. It uses a graphical user interface(GUI) which allows you to use
the pictures and graphics, instead of having to type out long commands to operating
system.
• Starting with Windows’98 As your computer boots, windows loads the files
it need to run. After operating system is loaded, you may see a password
dialog box asking for your user name and password.
• User name the name by which you are identified to your computer network
The items you see enable you to open application, manage files, send/receive mail,
and perform many other tasks through out your work. The components of windows
screen include:
47
• Desktop This is the back ground on which all other elements appear. Just like
a top of your office desk, as you can move papers around, hide certain items
in drawers, add/remove things on your desk.
• Icons are pictures that represent Programs folder’s files, printer information
and so on. Most often you use, icon to open folders and files.
• Outlook Express Works with internet explorer and allows you to send mail,
chat and work in news groups user internet
48
• Online Services enables you to quickly and easily sign up for any of online
services it contains including America online, AT & T world net and compu
serve. ( You need modem connected )
• Task bar contains start button, window button and time. You can click
taskbar button to open the window or application it represents.
• Start Button This displays a menu from which you can choose to open an
application, open document, customize windows, find file or folder, get help
or shut down Win’98 program.
• Pointer is an on-screen icon, that represents your mouse, track ball, touch pad
or other selecting devices. You use it to select items and choose commands.
o Windows update A short cut to the web site, down load updated files
and seek technical support
49
o Find enables you to search for specific file, folder or computer. You
can also search your address books to locate a person using the people
selection
o Run Enables you to enter a command line to run program from hard,
floppy or CD disks
o Shut down Displays the shut down dialog box in which you prepare
your computer before turning it off
• Using Task Bar This contains quick launch tool bar in addition to start button
as shown in figure below
Quick launch tool bar contains four items that act as a short cut on your desk top.
• Launch internet explorer browser Launches internet explorer Four
• Show DeskTop Launch outlook express minimize all open programs and
windows. Once clicked, the button remains depressed. Click the depressed
button to restore all windows and programs
50
• View Channels Launches internet Explorer four channels
The task bar also displays buttons representing open windows and applications. To
move task bar click the Mouse anywhere on bar except on button and drag to required
position on screen.
• From start menu, click settings and then the task bar
• Choose the Auto hide check box by clicking that box, then press enter to close
the dialog box
When you need it back, move the mouse to where the task bar last appeared, you
may have to slide the mouse off of the screen. The task bar reappears.
Using Menus :
What is Menu ?
A menu is a list of related commands that you use to perform tasks in windows and
in windows applications. Menu commands are organized in a logical groups. Different
menu options and different menus will appear within the menu depending on the task you
are currently performing. Items on menu bar, are organized to help you find the command
you want. Example all commands that relate to editing functions such as cut, copy and
paste are found in the edit menu.
To choose the menu command,
• Click the menu title in menu bar. The menu opens to display the available
commands
51
Using Short cut keys instead of menus
Short cut keys enable you to select commands with out using menus. These short cut
keys generally combine, Alt, Ctrl or Shift keys, with a letter key. If a short key is
available, it is tested on the pull down menu to right of the command.
Example : Below figure shows Edit Menu from the hard drive window on My
Computer. We can see short cut key Ctrl + X for cut and for others.
Edit
Undo Ctrl+Z
Cut Ctrl+X
Copy Ctrl+C
Paste Ctrl+V
Paste Short
Cut
Invert
Selection
Windows also provide variety of Short cut or Quick Menu that contain common
commands you often use. You can display a short cut menu by right clicking an object
such as the desk top, window, folder or file and so on. The commands that a short cut
menu displays depend on the item and its location. These menus are often referred to as
pop-up menus.
Using Windows’98 Help Windows’98 offers several ways to get outline help.
Windows’98 help offers four ways to seek Help
• Web Help
• Index
• Search
52
• Click Start Button
• Press F1 Key
Button Description
Hide Displays or hides the left pane of the window. The right pane
(or preview pane) is always visible. If you hid the left pane, the
icon changes to read “show”. Click Show, and the left pane
reappears
Back Displays the previous page. Like a Web Browser, the Back
button will only work as far back as the first page you viewed
when you opened the Windows Help Program
Forward After you have clicked the Back button, the Forward button will
move you ahead through pages you have viewed, in the order
you have viewed them
Options Displays a menu containing the following commands: Back,
Forward, Stop, Refresh, Customize and Print
Web Help If you are connected to the Internet, Web Help will display the
Microsoft Web site containing information and help for
Windows 98.
Search Feature :- To search for specific words and phrases within help topic use the
search feature. Search feature is especially useful when you can not find a particular help
topic in help contents or on the index tab list of topics.
Dialog Box Windows application use dialog boxes to exchange information with
you. A dialog box asks for related information the program needs in order to complete the
53
operation. Dialog boxes vary depending on the program, procedure and number of
options in actual box. Some simply ask you to confirm an operation before it is executed.
Others ask you to choose a drive, folder, filename, type, network path or any of numerous
options. Some components of dialog box are:
• Text Box provides place to type an entry such as filename, path, font or
measurement
• List Box presents possible options from which you can choose. Scroll bars
often accompany a list box so you can view the items on the list.
• Drop down list box is a single line list box with a drop down arrow button to
the right of it. When you click the arrow, the drop down test box opens to
display a list of choices
• Option Button present a group of related choices from which you can choose
only one
• Check Box enables you to turn an option on or off. A Check mark appears in
box next to any option that is active
• What is this ? Feature provides a handy way for you to get more information
about dialog box options
• Command Button carries out the command displayed on the button. If there
is an ellipse on the button, choosing it will open another dialog box
• Tabs represent multiple selection or pages of dialog box. One tab is displayed
at a time and each tab contains related options. Components of dialog box
table
54
Text Box :-After activating a text box and typed text in to it, you can use several
keys to edit the text. Editing keys for text boxes and other text
Key Description
Delete Deletes the character to the right of the insertion point
Back Space Deletes the character to the left of the insertion point
End Moves the insertion point to the end of the line
Home Moves the insertion point to the beginning of the line
Arrow Keys Moves the insertion point one character in the direction of
the arrow
Shift+End Selects the text from the insertion point to the end of the
line
Shift+Home Selects the text from the insertion point to the beginning of
the line
Shift+Arrow Key Selects the next character in the direction of the arrow
Ctrl+C Copies the selected text to the clip board
Ctrl+V Pastes the selected text from the clip board
55
Property Sheets and Tabs: These are similar to dialog boxes in the components
they contain check boxes, text boxes, Command buttons and so on as shown below.
File Management in Windows’98 When you create a document, spread sheet, data
base or any other type of file, you determine where it will reside on your hard drive
when you save it. When you save a document, those documents will be saved in “My
Documents” folder unless you instruct the program otherwise with or without these
folder, you may want to create move folders for your files.
Categorize your files by software You can create folders to store your files based
on software used to create them. Example folder called “Documents” to store files
created with your Word processor, “Spread Sheets” for files created with your spread
sheet software and so forth.
Categorize your files by date You can create folders for all four quarters of the year
and place sub folders inside them, for each month in the quarter.
Categorize your files by Client name If you sell to a few major customers, create a
folder for each one and then slow any documents, spread sheets and other files for a
particular client in that client’s folder.
56
Creating Folders If you were creating a new folder for your paperwork in a file
cabinet, you had write a name or phrase on the tab of a manila folder, and put the papers
in it. You might write “1st Quarter” or “Letters” on the tab, and that would tell you what
to put in it, and help you find your paperwork later. Cheating folders in Windows’98 is
similar.
1. Be sure that you are in the folder that will contain your new folder. You can
check the title bar, Address box , or the folder icon in the Folder pane to
determine which folder is open.
2. From the File menu, choose new Folder. A folder icon appears in the window
with a box around it and the text “New Folder” highlighted.
3. Type the name you want for your new folder. The text you type replaces the
text
57
5. Press Enter. Your new folder, with the name you assigned it, now appears in
the window.
Using my computer
What is my computer?
My Computer is a way to quickly see everything on your computer-files, folders and
drives-and how files and folders are organized, To open My Computer, click its icon on
the desktop. The icons that appear in the My computer window vary from computer to
computer. Depending on what components are installed on your computer.
There are several ways to open the drives or folders displayed in My Computer :
• Select the drive or folder icon by pointing to it or using the arrow keys to
move around the window to highlight the ion you want. Press enter to open
the highlighted drive or folder.
• Select the drive or folder icon by pointing to it or using the arrow keys to
move around the window to highlight the icon you want. Choose file, Open.
• Point at the drive or folder icon and click the right mouse button. From the
pop-up menu, select Open.
When you click one of the drive icons in the My computers window, another
window appears showing a listing of folders and files for that drive
• Each open window is represented by an icon on the task bar. Click the icon for
the window you want to see
• Hold down the Alt Key and Press Tab to bring up the switching window.
Each time you press Tab, it cycles to the next window. Release the Alt Key
when the title of the window you want to see appears in the switching
window.
58
Browsing Folder Options In windows 98, folder views have Web-Style
characteristics.
To turn the Web “look” on or off for a folder in My Computer, Choose View, as
Web Page from the menu or click the down arrow next to the Views button on the
toolbar and select as Web Page. When you do this, the Web-style graphics disappear and
the window looks as it would have in Windows 95. In order to change the function of the
folder window, you need to set the folder options.
• Select Web Style to make the folder and your desktop look and work like a
Web page (point to select icons, single click to open files and folders or run
items). Click Classic Style if you want the folder and your desktop to work as
they did in Windows 95 (single click selects icons, double-click opens files
and folders or runs items). To individually specify the settings you want to
use, choose Custom and then click Settings.
• (Optional) When you click Settings, the Custom Settings dialog box appears.
Make the selections you want to have your folders and desktop act and look
the way that best suits you. Then click OK to return to the Folder Options
dialog box.
• Active Desktop If you want your desktop to look and act like a Web page,
click Enable all web-related content on my desktop. Click Customize to
close the Folder Options dialog box and open the Display Properties box
instead, where you can set options to customize the display. To have your
desktop resemble the Windows 95 desktop, select Use Windows Classic
Desktop.
59
• Browse folders as follows Each time you open a folder in My Computer, that
folder will open as another separate window if you select Open each folder
in its own window. If you do not want several windows opened each time
you look through folders, select Open each folder in the same window.
• View Web content in folders To display all folders as Web Pages, so you can
add information, change fonts, or set backgrounds, click For all folders with
HTML content. If you want only those folders you specify to act like Web
Pages, select Only for folders where I select “as Web Page” (View Menu).
• Click items as follows To set the number of clicks required to select or open
items, select either Single click to open an item (point to select) or Double
click to open an item (single click to select). If you opted to single click, you
need to choose whether you want the icons always underlined or underlined
only when you point at them.
• Click OK to save your settings and close the dialog box, Cancel to close the
dialog box without saving your settings, or Apply to save your settings
without closing the dialog box.
The My Computer Toolbars: To see the standard buttons toolbar, Choose View,
Toolbars, Standard Buttons from the menu. Table gives a short description of each
Button.
60
Paste
Place a duplicate of Clipboard contents in the folder
Undo
Undo the last action you performed
Delete
Remove a selected item from the folder and send it to
the Recycle Bin
Properties Display the Properties dialog box for the selected item
Views
Cycle between the Large Icon, Small Icon, List and
Detail Views (Click the down arrow next to views to
select one of these views from a list or choose to view
the folder as a Web Page
Changing the Appearance of the Folder Window Windows 98 lets you design
your own look for your folders with the help of the Customize This Folder wizard. To
start the wizard, do the following :
• When the Customize this Folder dialog box appears, make one of three
choices :
• Click Next to proceed with the next step of the wizard. When you have
completed your task, click Finish
• Click on the name of a picture to see a preview on the left side of the Dialog
box. To view other picture files found elsewhere on your computer system,
61
click Browse. From the Look In drop down list, select the drive and folder
where your picture files are stored. Then select the name of the file and click
Open.
• Select the colors for the text that appears beneath your icons from the Icon
caption Colors section. Click the color box for Text, select a color swatch, and
then click OK. If you want a background color behind the letters, check
Background and then click the background swatch and choose a color.
Selecting Files and Folders Before you can perform an operation on a file or folder,
you must select (or highlight) the item so Windows knows which one you want to use.
• Single file or folder Point to the file or folder icon, or use the arrow keys to
move the highlighting to the file or folder icon you want to select.
• Multiple contiguous files or folders Point to the first file or folder icon, hold
down the Shift key, and point to the last file or folder icon. This method
selects all the Files between. You can also hold down the Shift key and use an
arrow key to move down to the final icon in the group you want.
• Multiple non-contiguous files or folders Point to the first file or folder icon,
hold down the Ctrl key, and point to each of the additional file or folder icons
you want.
• All the file or folder icons in the Window Choose Edit, Select All from the
menu or press Ctrl + A
• All except the file or folder icons you have currently selected. Choose
Edit, Invert Selection from the menu
Moving Files and Folders Windows 98 lets you move files and folders to different
Folders or different drives. You can do this by copying and pasting the files or Folders, or
by using your mouse to drag and then drop the files or folders in a new location. To use
the drag-and-drop method :
62
• Open the drive or folder window where the file or folder is stored. This is the
Source Window
• Open the drive or folder window where you want to put the file or folder. This
is the destination window
• If the windows you have open are for folders on the same drive, you can just
drag the file or folder icon from the source window to the destination window.
• Choose Edit, Cut from the menu or click the Cut button on the toolbar. This
removes the icon(s) from the current window and stores them in the Windows
Clipboard (a temporary holding place)
• Open the drive or folder window where you want to put the file or folder
• Choose Edit, Paste from the menu or click the Paste button on the toolbar
Copying Files and Folders Copying files and folders to different folders or different
drives is similar to moving files and folders. To copy files and folders using the drag-and-
drop method :
• Open the drive or folder window where the file or folder is stored. This is the
source window
• Open the drive or folder window where you want to put the file or folder. This
is the destination window.
• If the windows you have open are for folders on different drives, you can just
drag the file or folder icon from the source window to the destination window
Deleting Files and Folders When you delete files or folders from your hard disk or
a Network drive, they are removed from their current window and placed in the Recycle
Bin. However, if the file is on a floppy disk it does not go to the Recycle Bin, so be very
sure you want to delete files from a floppy disk.
To delete a file or folder :
63
• Press the Delete key, click the Delete button on the toolbar, or choose File,
Delete from the menu
• A windows 98 alert box appears, asking if you are sure you want to send the
selected files or folders to the Recycle Bin. If you are certain, select Yes, If
not, select No and the operation will cease.
• Choose File, Rename from the menu, or click on the icon with the right
mouse button and choose Rename from the pop-up menu. The name gets a
box around it and the text is highlighted
• Press Enter
Creating Shortcuts: Shortcuts provide you with easy access to files and programs.
Once you place a shortcut icon on the desktop, you can click that icon to start up a
program or open file or folder that you use frequently.
• Open My Computer
• Select the drive, folder, or file for which you want to create the document
• A copy of the icon appears in the window with the words “Shortcut To” in
front of the name. Drag that icon from the folder on to the desktop
Finding Files What do you do if you are not sure of a file name or the folder where it
is stored. My Computer has a Find feature to help you search for the file.
• Choose File, Find from the menu. The Find : All Files dialog box appears
64
• In the Named box, enter the name of the file you want to find. If you do not
know the complete name, use an asterisk (*) to substitute for the beginning or
end of the name (such as *97 to find all file names that end in 97); use a
question mark (?) to substitute for a character you do not know. Choose
Options, Case Sensitive from the menu if you want to find a file that is in
uppercase but not find a file with the same name that is in lowercase
• The Look In box should already show the name of the drive you selected
• To search through all the folders in the specified drive, check Include Sub
folders
• If you want to look in a specific folder, click Browse to open the Browse for
Folder dialog box and select the folder you want to search.
• When the search is complete, a list of files or folders matching your search
criteria appears at the bottom of the dialog box. Click the file that you want to
open
• Click New Search to clear the search criteria so you can search for another
file
You can also search for files based on the created or last modified date :
• Follow steps1 through 7 for finding a file, but do not enter a file name in the
Named box
• Click the Date tab of the Find dialog box
• Select Find all files. From the drop-down list select Created, Modified or
Last Accessed
• Choose one of three options. Select Between (and enter the starting and
ending dates) to look for all files created, modified, or last accessed between
those dates. Select during the previous x month(s) (where x is the number of
months) to return a list of files created, modified, or last accessed in the
specified number of previous months. Or select during the previous x day(s)
(where x is the number of days)
65
The Recycle Bin
At the top of the window is the Title Bar, which tells you the name of the Window
you have open. You move the window by dragging the title bar.
Beneath the title bar is the menu bar, which contains commands that you may give to
the program.
Below the menu bar is the Tool bar. If your toolbar is not showing, Choose View,
Toolbars, Standard Buttons from the menu.
The address bar appears below the toolbar. To turn the display of the address bar on
or off, choose View, Toolbars, Address Bar from the menu. The address bar shows your
current location. Enter or select a new path and press Enter to go to that site, including a
Web Page address.
At the bottom of the screen is the Status Bar. The status bar displays the number of
objects (files and folders) in the window and the number of bytes they take up in memory
space. If you select one or more files, the status bar changes to display the number of
selected files and how many bytes of memory they total.
Choose one of the following to place in the left pane of the Explorer Window :
• Search When the Search Explorer bar appears, type a phrase or word you
want to look for on the Web, Usenet News, or both (choose which from the
Search list box). To select an Internet search engine, click on your choice in
the Select Provider list box.
66
• Favorites When the Favorites Explorer bar appears, it displays a list of
folders or Web pages that you added to your Favorites folder. These locations
are the ones you visit most frequently
• History A list of your most recently visited Web Pages appears in the History
Explorer bar, separated by the days on which you visited them. The number of
days displayed is set in the Internet Options of Internet Explorer
• All Folders The All Folders Explorer bar is the default view. It shows the
hierarchy of drives and folders on your system
• None Choose None to remove the Explorer bar from the Explorer Window
Changing Displays In order to change the functionality of the folder window, you
need to set the folder options.
• Choose View, Folder Options from the Explorer menu, or choose Settings,
Folder Options from the Start Menu. The Folder Options dialog box appears
• Select Web style to make the folder and your desktop look and work like a
Web Page (point to select icons; single-click to open files and folders or run
items). Click Classic style if you want the folder and your desktop to work as
they did in Windows 95 (single-click selects icons; double-click opens files
and folders or runs items). To individually specify the settings you want to
use, Choose Custom and then click Settings
• (Optional) When you click Settings, the Custom Settings dialog box appears.
Make the selections you want to have your folders and desktop act and look
the way that best suits you. Then Click OK to return to the Folder Options
dialog box.
67
o Active Desktop If you want your desktop to look and act like a Web
Page, click Enable all web-related content on my desktop. Click
Customize to close the Folder Options dialog box and open the
Display Properties dialog box
• Click OK to save your settings and close the dialog box, Cancel to
close the dialog box without saving your settings, or Apply to save
your settings without closing the dialog box
Using the Explorer Toolbar: To see the toolbar choose View, Toolbars, Standard
Buttons from the menu or right-click a toolbar and then select Standard Buttons from
the shortcut menu. Table lists the buttons and what they do
A text label at the bottom of the button identifies each button on the toolbar. To
make these labels visible or invisible, Choose View, Toolbars, Text Labels
68
The Explorer Toolbar Buttons
Click To
Back Return to the previously opened folder
Forward Go to the next folder on the recently opened folder
list
Up Go up one level in the folder hierarchy
Cut Remove a selected item from the folder and store it
in the Windows Clipboard
Copy Store a duplicate of a selected item in the
Windows Clipboard
Paste Place a duplicate of Clipboard contents in the
folder
Undo Undo the last action you performed
Delete Remove a selected item from the folder and send it
to the Recycle Bin
Properties Display the Properties dialog box for the selected
item
Views Cycle between the Large Icon, Small Icon, List
and Detail views (Click the down arrow next to
Views to select one of these views from a list or
choose to view the folder as a Web Page)
Searching for a File Use the Explorer to search a drive, to find a file or folder, or to
Search for a computer by name if you have a network. To find a file :
• Choose Tools, Find, Files or Folders from the menu. The Find dialog box
appears.
• In the Named box, enter the name of the file you want to find. If you do not
know the complete name, use an asterisk (*) to substitute for the beginning or
end of the name (such as *97 to find all file names that end in 97); use a
question mark (?) to substitute for a character you do not know. Choose
Options, Case Sensitive from the menu if you want to find a file that is in
uppercase but not find a file with the same name that is in lowercase
69
• If you want to search for a file that contains specific text, enter some of that
text in the Containing text box
• The Look in box should already show the name of the drive you selected
• To search through all the folders in the specified drive, check Include
Subfolders
• If you want to look in a specific folder, click Browse to open the Browse for
Folder dialog box and select the folder you want to search
• When the search is complete, a list of files or folders matching your search
criteria appears at the bottom of the dialog box. Click the file that you want to
open.
• Click New Search to clear the search criteria so you can search for another
file
Selecting Files and Folders Before you can perform an operation on a file or folder,
you must select (or highlight) the item so Windows knows which one you want to use.
To select files or folders :
• Single file or folder Point to the file or folder icon, or use the arrow keys to
move the highlighting to the file or folder icon you want to select
• Several files or folders that are together Point to the first file or folder icon,
hold down the Shift key, and point to the last file or folder icon. This method
also selects all the files between. You can also hold down the Shift key and
use an arrow key to move down to the final icon in the group you want.
• Several files or folders that are not together Point to the first file or folder
icon, hold down the Ctrl Key, and point to each additional file or folder icon
you want selected
• All the file or folder icons in the window Choose Edit, Select All from the
menu or press Ctrl + A
• All except the file or folder icons you have currently selected. Choose
Edit, Invert Selection from the menu
70
Moving Files and Folders There are two ways to move files and folders to different
Folders or different drives. One method is called drag and drop.
• From the All Folders pane, open the drive or folder where the file or folder
you want to move is stored by clicking on the drive or folder icon
• Drag the file or folder icon from the Contents pane to the drive or folder icon
in the All Folders pane where you want to put it. Do not release the mouse
button until the destination drive or folder is highlighted
• From the All Folders pane, open the drive or folder where the file or folder
you want to move is stored
• From the Contents pane, select the file file or folder you want to move
• Choose Edit, Cut from the menu or click the Cut button on the toolbar. This
removes the icon(s) from the current folder or drive and stores the item(s) in
the Windows Clipboard (a temporary storage area). Be careful not to copy or
cut another item before you paste the icons, or you will lose them
• In the All Folders pane, open the drive or folder where you want to put the file
or Folder
• Choose Edit, Paste from the menu or click the Paste button on the toolbar.
The contents of the Clipboard appear in the folder or drive
Copying Files and Folders Copying files and folders to different folders or different
drives is similar to moving. To do this using the drag and drop method :
• In the All Folders pane, open the drive or folder where the file or folder you
want to copy is stored. Just click the drive or folder icon to open it
• Hold down the Ctrl key and drag the file or folder icon you want to copy from
the Contents pane to the drive or folder icon in the All Folders pane, where
you want to put it
• Release the mouse button when the destination drive or folder is highlighted
71
Deleting Files and Folders: When you delete files or folders from your hard disk or
a network drive, they are removed from their current folder and placed in the Recycle
Bin. If necessary, you can recover them from the Recycle Bin
• Press the Delete key, click the Delete button on the toolbar, or choose File,
Delete from the menu
• A Windows 98 alert box appears, asking if you are sure you want to send the
selected files or folders to the Recycle Bin. If you are, select Yes. If not, select
No and the operation will cease.
• Choose File, Rename from the menu, or click the icon with the right mouse
button and choose Rename from the pop-up menu. The name gets a box
around it and the text is highlighted
• Press Enter
Creating Shortcuts Shortcuts provide you with easy access to files and programs.
Once you place a shortcut on the desktop, you can double-click that shortcut icon to start
a program or open a file or folder
To create a shortcut :
• Select the drive, folder or file for which you want to create the shortcut.
• A copy of the icon appears in the window with the words “Shortcut to” in
front of the name. Drag that icon on to the desktop
File Properties
72
File Names Files needed to run programs are generally installed on your hard disk
when you install the programs. You create new files in your application programs when
you save documents, spreadsheets, databases, pictures and so forth. When you save a file
in an application, you assign a name to the file. Files stored in the same folder must have
unique file names. Any file name longer than eight characters is considered a long file
name, although a name that includes a space or a is also considered a long file name
File Creation Date and Time When you first save a file, Windows automatically
records the date and time that you saved it.When you open the file again and make
changes, the date and time you save it are again recorded as the modified date. You can
see the modified date in the details view of My Computer.
File Attributes: There are four attributes that can be assigned to files :
• Read-Only You can open a read-only file and read it or print it, but you can
not change it or delete it. This protects the original file from being changed.
• Archive Some programs use this option to determine which files are to be
backed up. In most cases, if the file is not read-only, it has an Archive
attribute.
• Hidden Some files are not visible in file listings, and you can not use them
unless you know the name of the file. Program files may be hidden to keep
you from moving or deleting them accidentally.
• System Certain files are necessary to the operation of your system; these are
System files.
• Click the right mouse button and choose Properties from the pop-up menu
• Click the Attributes link on the left side of the Windows Explorer Contents
pane or the My Computer window. The Properties dialog box for the selected
file opens
73
The Properties dialog box provides you with information about the file :
• File name
• Under Registered file types, select the type you want to edit
• Make any modifications you want. Use the New, Edit or Remove buttons to
add, change or delete actions
74
• Select the File Types tab
• Under Registered file types, select the file type you want to remove
• Click Remove
• Windows requests a confirmation that you want to remove the file type. Click
Yes
• Click Close
Changing the Icon for a File Type Every file type has an icon associated with it. To
change the icon for an existing file type :
• Under Registered file types, select the type you want to edit
• Select one of the icons in the Current icon box or click Browse to search for
another icon file
• Click OK to close the Change Icon dialog box and then OK to close the Edit
File Type dialog box
Restoring Files The worst day of your life inevitably arrives, and your hard disk
crashes or the temp filling in during your vacation accidentally deletes all your
correspondence files. Once you have your hard disk repaired or you discover your loss of
vital files, it is time to restore your backup files to your hard disk.
75
To restore your files :
• Choose Programs, Accessories, System Tools, Backup from the Start
menu
• When the Microsoft Backup dialog box appears, click Restore backed up files
and then click OK
• The Restore Wizard opens. In the Restore from box, select the type of
backup you made then indicate the location of the backup in the box below
(such as another network computer). Click the button on the right side of the
box to browse your system for the file location. Click Next
• The Restore Wizard locates all backup files at the indicated location. To select
a set of backup files to restore, check the box in front of the backup set name.
Then click OK
• After a short logging process, the What to restore screen appears. This screen
displays the list of drives, folders and files you backed up in the specified set.
Select the ones you want to restore by clicking the check box in front of the
drive or folder to place a check mark there. Click Next.
• You must decide how you want to replace existing files during the restore
process. You have three options : Replace a file only if the file on the
computer is older than the backup version, automatically replace all the files
even if the file on the computer is newer than the backup file, or do not
replace any of the files. Choose one of the first two options and then click
Start
• The Restore Wizard lists the required media (file, disk or tape) needed for the
backup. If you used a tape or floppy disks for backups, be sure to select the
76
correct one before inserting it into your tape or floppy drive. If you used a
network drive, be sure that drive is available. Then click OK
• The Restore Progress dialog box appears showing the status of the restore and
the number of files and bytes restored. Click OK
• The Microsoft Backup window appears. To close the window, choose Job,
Exit or click the Close button
• From the desktop, click My Computer and then click the Control Panel folder
icon. The Control Panel window appears
• From Windows Explorer, click the Control Panel folder found in the left pane
of the window. The contents of the Control Panel appear in the right panel.
These are the same icons that are displayed in the Control Panel window.
77
What can you Accomplish in the Control Panel ?
78
The Control Panel contains a set of icons indicating the different areas that you can
modify to customize your computer configuration. In this book we only discuss the most
commonly used features of the Control Panel. They include :
• Set the System Date and Time Althrough the internal clock of your
computer maintains the current date and time, you may occasionally have to
adjust it for a new time zone or to turn off Daylight Savings settings when you
are in a particular area.
• Add or Switch Screen Savers Screen Savers preserve your monitor quality,
and you can select the one you want to use.
• Add or Remove Fonts Add new fonts, remove old fonts, and view fonts with
this option
• Change Settings on your Keyboard You can change the character repeat
speed of your keyboard. This is the speed at which a character repeats when
you hold down the key on your keyboard.
• Adjust the Settings for Your Mouse Set the speed of the mouse pointer and
the double-click, as well as swap buttons for left-handed users.
79
• Change Settings for Multimedia Devices If you are using audio or video
devices with your computer, you adjust the settings for those devices through
the Control Panel.
• Change Regional Settings If you are working outside the United States, you
can change the standard settings for how currency, numbers, dates and times
appear.
• Modify Internet Settings Specify where your temporary Internet files are
stored, set parameters for the History folder, select the page to use as your
home page, select security options, specify connection types, and set preferred
programs.
• Adjust System and Program Sounds Certain sounds signify different events,
and you can choose which sounds you want to hear.
• Set up Mail and Fax Set up the messaging profiles to send and receive e-mail
and faxes.
• Configure Your System for Networking Make the settings that help you
connect your system to a network
• Set Up for Dialing Out Enter the settings needed to establish the dialing
properties for your system
• Manage the Use of Your Power Resources Set alarms and establish standby
schemes for your laptop battery.
Selecting a Screen Saver A screen saver is a moving picture or pattern than appears
on your screen when you have left the computer idle for a specified number of minutes.
Screen savers can be interesting and fun to watch, but did you know that screen savers
are designed to prevent monitor burn-in? When the same image stays on the screen for
periods of time without changing, it can leave a ghost image that you can see even when
the monitor is turned off. To prevent burn-in, turn off your monitor when you walk away
from it, or use a screen saver. Screen savers display constantly moving images to prevent
burn in.
80
• Choose Settings, Control Panel from the Start menu and then click the
Display icon, or right-click the desktop and choose Properties from the pop-
up menu
• When the Display Properties dialog box appears, select the Screen Saver tab
• From the Screen Saver drop-down list, select a screen saver. A sample
appears in the monitor on the dialog box. Click Preview to see a full-screen
version.
• Many screen savers can be customized. With screen savers such as 3D Text
and Scrolling Marquis, you need to enter the text that will move across your
screen. Other screen savers let you set the speed, the colors, the number of
elements, and the shape of the elements. To customize your screen saver, click
Settings. After you set your options, Click OK to return to the Display
Properties dialog box.
• In the Wait box, enter the number of minutes that represents the amount of
time the system is idle before the screen saver activates.
• If you want to set a password for your screen saver, click Password
protected. Click Change and enter your password in the New Password box.
As you will only see asterisks, so be careful not to misspell your password.
Then type the password again in Confirm New Password and click OK.
After you create a screen saver password, you won’t be able to turn off the
screen saver without entering your password.
• For computers with energy-saving features, you adjust the standby and power
settings by clicking Settings and entering your options in the Power
Management Properties Box.
• Click OK to accept your settings and close the dialog box. Click Apply to
accept your settings without closing the dialog box. Click Cancel to close the
dialog box without saving your settings.
81
Active Desktop
Arranging Icons When shortcuts are added to the Desktop, they are not arranged
neatly. You can control, or arrange the appearance of icons on the Desktop.
To arrange your desktop icons :
• Click an open area of your desktop with the right mouse button.
Choosing Colors and Backgrounds For better viewing or just for variety, you can
change the background color of your screen or choose a pattern or wallpaper for your
desktop background.
Colors
The desktop color is applied to the area behind the icons and Windows. To change
the color of the desktop :
• From the Control Panel window, click the Display icon. The Display
Properties dialog box appears
• Click the down arrow on the Color list box to see a selection of background
colors.
• Click Apply to see how the desktop will look in that color
82
Wallpaper Wallpaper makes your desktop interesting and fun. To select a wallpaper
for your desktop background :
• Open the Display Properties dialog box
• From the list under Select an HTML Document or a picture, select a picture
to place on your desktop. It will appear in the monitor picture so you can see
how it will look on your screen.
• To determine how the wallpaper fills your screen, choose one of the following
from the Display drop-down list (if the choice is unavailable, the picture
automatically fills the entire screen) :
o Center The wallpaper picture appears in the middle of your desktop. The
background color will still show around the outside of the picture.
o Tile The picture repeats across the screen until it fills the desktop background.
o Stretch The picture fills the entire screen. If your picture is not the same
shape as the screen, stretching it may distort the picture.
83
• Click Apply to see how the desktop will look with the pattern or wallpaper
you selected
Changing Fonts To change the size, color, and font of the screen text :
• Choose Settings, Control Panel from the Start menu and then click Display,
or right-click the desktop and choose Properties from the pop-up menu.
• From the Item drop-down list, select the item for which you want to adjust the
text, such as Active Title Bar, Icon, Inactive Title Bar, Menu, Message Box,
Palette Title, Selected Items, or Tool Tip. Unless you pick one of these items,
the font choices will not be available
• Select the font you want to use from the Font drop-down list, the point size
from the Size drop-down list, and the color of the text from the Color list
(color is not available for all items). Click the B button for boldface and the I
button for italic.
Adding and Removing Programs The Start menu may not list every program you
use. Some of your programs may be old, some may be located on a network drive or on a
CD, or some of them may have been copied to your hard disk but not properly installed.
• Under Customize Start Menu, click Add. The Create Shortcut dialog box
appears
• In the Command line text box, enter the path and file name of the program’s
executable file (the file that starts the program). If you do not know the name,
click Browse, select the file, and click OK.
84
• Click Next
• The Select Program Folder dialog box appears. From the listing in Select
folder to place shortcut in, select a folder where the new program logically
belongs (such as Games for a checkers game). The groupings on the Start
menu follow the organization of these folders. Select Programs if you do not
want your program to appear on a submenu.
• To add a new entry to the Start menu, click New Folder, and enter a name for
the folder. The folder name becomes the entry on the Start menu, and the
program appears as a submenu of that entry.
• Click Next. In the Select a name for the shortcut text box, enter the name
for the program as you want it to appear on the Start menu.
• Click Finish. If the program does not have its own icon, a prompt appears,
asking you to choose one from a set of available Windows icons.
• Open the Taskbar Properties dialog box and select the Start Menu Programs
tab
• A dialog box asks you to confirm that you want to remove the item. Click
Yes.
• Click Close
If you are worried that an unauthorized person might attempt to use your computer in
your absence, use a password. The password is the key to your system. Unless you enter
the correct password, you can not begin working in Windows. When Windows boots up,
a dialog box appears, requesting your password. Enter your user name (if it is not
automatically entered) and then your password. When you type the password, Windows
85
enters asterisks in the text box. Click OK. Windows may ask you to confirm the
password by entering it again. If so, type it and click OK. Then your desktop appears.
Setting Up a Password To set up a Windows password :
• When the Control Panel opens, click the Passwords icon. The Passwords
Properties box appears
• In the Confirm new password box, enter the password again, exactly as you
did the first time
• Click OK
• A confirmation dialog box appears, saying that your password has been
successfully changed. Click OK.
Changing Your Password You must be careful to protect your password so other
people do not learn it. It helps to change your password periodically, just in case someone
has been looking over your shoulder or might have guessed your password.
To change the password :
• When the Control Panel opens, click the Passwords icon. The Passwords
Properties box appears
86
• Enter your previous password in the Old Password box (this proves you are
authorized to make the password change)
• In the confirm new password box, enter the new password again, exactly as
you did the first time
• Click OK
• A confirmation dialog box appears, saying that your password has been
successfully changed. Click OK.
What is WordPad ?
WordPad is Window’s word processing program. With WordPad, you can create
documents such as letters, memos, reports, lists and so on. Although WordPad is a word
processor, it is very basic. For example, you can not check your spelling or grammer in
WordPad, and there are a limited number of toolbars and icons to help speed your work.
However, you can create, edit and format many simple documents with WordPad.
Basically, it is fine to use if you do not have another word processor, such as Microsoft
Word, Lotus Word Pro or Corel Word Perfect.
• From the Desktop, choose the Start button, select Programs and then
Accessories
• Click the WordPad option at the bottom of the Accessories menu. The
program appears with a new, untitled document in the window for you to use.
A blinking vertical bar, called the insertion point, appears in the upper-left
corner of the document area
• The application name (WordPad) and the document name (the generic name is
• “Document” until you assign a name by saving the document) in the title bar
87
• The menu bar containing WordPad menus
• Two Toolbars containing shortcuts for saving and formatting your documents
• A status bar that offers helpful tips and information about the Program
What is Paint ?
Paint is a Windows graphic program that allows you to create drawings you can use,
either alone or in other Windows application such as Microsoft Word, Lotus Word Pro,
or Corel WordPerfect.
To open the Paint program and begin a drawing, follow these steps :
• From the Desktop, choose the Start button and then Programs, Accessories
• Click Paint from the Accessories menu. The Paint Window opens, ready for
you to draw
Drawing in Paint
Drawing with a mouse can be difficult at first, but practice always makes a
difference. You use your mouse to draw lines, curves, and shapes, as well as to enter text
in Paint.
• To select the size of the drawing, choose Image, Attributes and enter the
width and height in the Attributes dialog box. Click OK. The new size is
defined by eight small black handles or boxes, outlining the specified area to
choose the type of object you are going to draw, click a drawing tool in the
toolbox at the left of the screen.
88
3.6 Summary:
EXERCISE
True or False
2. Windows NT is portable
9. Short Cut Keys enable you to select commands with out using menus
89
6. Paste adds a selected file from ___________________
9. _______________ feature search for specific words and phrases within help
topic
True or False
1. True
2. True
3. False
1. Executing
2. Microprogramming and Time Sharing
3. Operating System
4. Resources
True or False
1. False
2. True
3. False
4. False
5. True
90
6. False
7. True
8. False
9. True
10. False
1. Process
2. 32-bit preemptive
3. Microsoft
4. User and Kernel
5. Auto Hide
6. Hard Drive
7. Undo
8. Password
9. Search
10. Control Panel
91
UNIX
STRUCTURE
4.1 INTRODUCTION
92
Chapter 4
INTRODUCTION
Objectives:
• History of UNIX
UNIX consists of a large number of ideas, too many for a single person to master in
a lifetime.
UNIX had to grow through 3 important phases in its life cycle. First reason, it was
considered a product for the Engineering and Scientific community. Later, it made
significant inroads into large Corporations and Government Organizations where its
robustness established it on the operating system of choice for database work (Example
Oracle, Sybase & Informix) The Internet is the third and most significant phase of the
UNIX cycle. Even though the people say that UNIX was died, most servers on the net are
UNIX machines. Internet Service Providers use UNIX machines.
In 1965, Bell Telephone Laboratories joined an effort with the General Electric
Company and Project MAC of the Massachusetts Institute of Technology to develop a
new operating system called Multics. The goals of the Multics system were to provide
simultaneous computer access to a large community of users, to supply ample
computation power and data storage, and to allow users to share their data easily, if
desired. Many scientists later took part in the early development of the UNIX system. In
1969, Bell laboratories ended its participation in the project.
93
Later Ken Thompson, Dennies Ritchie, and others sketched a paper design of a file
system that it evolved into an early version of the UNIX file system. Although this early
version of the UNIX system held much promise, it could not realize its potential until it
was used in a real project. Ritchie has developed a new language called ‘C’, and in 1973,
the UNIX operating system was rewritten in C.
In January 1983, Bell Laboratories added several features to UNIX system III and
called a new product UNIX System V, and AT & T announced official support for
System V.
Unlike DOS and Windows UNIX can be used by several users concurrently. The
UNIX is popular for the following reasons:
• The system is written in a High Level Language, making it easy to read,
understand, change, and move to other machines.
• It uses a hierarchical File System that allows easy maintenance and efficient
implement
• It has a simple user interface that has the power to provide the service that
users want.
• simultaneously.
• It hides the machine architecture from the user, making it easier to write
program that run on different Hardware implementations.
• simultaneously.
94
If you are migrating from the DOS/ Windows environment, then you have quite a bit
of mental preparation to do before you start feeling comfortable. That is, UNIX is not
very friendly.
Exercise 4.1:
1. Give three important reasons of UNIX
3. Name the Scientist who give the paper discover of or File system
Objectives:
UNIX is an operating system in the same way MS-DOS and OS/2 are Operating
System. An operating system performs many functions:
• It controls all input and output on the computer: When you delete a file,
the operating system goes ahead and eliminates a record of that file. When
you save a file, the operating system makes sure your file isn’t written on top
of an existing file.
95
4.2.2 System Architecture:
UNIX carries out various functions through 3 separate, but closely integrated parts:
the File System . the shell, and the kernel. The responsibilities are given below:
• the kernel is responsible for all basic operating system functions.
• the File System tracks files and where they are located. Every thing on UNIX,
whether it’s a file created in a text processor or a driver used to send
instructions to a pointer is contained in a file.
• the shell or command-line interpreter, is the part of UNIX you will actually
a
Other pplication
pr
og
nroff sh
ra
ms
cpp who
CC comp a.out
H/W
as date
Kernel
ld wc
ed grep
s
am
gr Ot
p ro application
her
The hardware at the center of the diagram (see Figure1) provides the operating
system with basic services.
The operating system interacts directly with the hardware, providing common
services to programs, viewing the system as a set of layers. The operating system is
commonly called the system kernel or just the kernel.
Programs such as shell and editors (ed and vi) shown in the outer layers interact with
the kernel, by invoking a defined set of system calls. The system calls instruct the kernel
96
to do various operations for the calling program and exchange data between the kernel
and the program.
Several programs shown the figure 1 are in standard system configurations and are
known as commands.
Others application programs can build on top of low-level programs. For example,
the standard C compiler cc is in the outermost layer of the kernel: it involves a C
preprocessor, assembler, and loader, all separate lower-level programs.
Many application subsystems and programs that provide a high-level view of the
system such as the shell, editors, and document preparation packages, have gradually
become synonymous with the name “UNIX System”.
Exercise 4.2:
97
4.3 FILE SYSTEM
Objectives:
The file system is organized as a tree with a single root node called rod (“/”) (see
figure 2) every non leaf node of the file system structure is a directory of files, and files at
the leaf nodes of the tree are either directories, regular files, or special device files.
The name of the file is given by a path name that describes how to locate the file in
the file system hierarchy.
98
console
spell
div ….
bin troff
……
------
sh telnet
…… …….
bin
libc.a
local
lib lib
….
/ usr include
kra tmac
-----
…..
passwd tmp
etc
group
init
…..
tmp
99
A path name is a sequence of component names separated by slash(/) characters.
Example:
4.3.3 Directories
Directories are like regular files the system treats this data in a directory as a byte
stream, but the data contains the names of the files in the directory.
Permission is given three classes of users: the file owner, a file group, and every
one else. You may create files if directory permission is given.
Devices are also protected in the same way that regular files are protected.
Generally, the system calls allow uses to write programs that do sophisticated
operations and as a result, the kernel of the UNIX system does not contain many
functions that are part of the “kernel” in their systems.
The shell allows 3 types of commands. First, a command can be an executable file
that contains object code produced by compilation of source code (a C program for
example). Second, a command can be an executable file that contains a sequence of shell
command lines. Finally, a command can be internal shell command.
100
4.3.4 Operating System Services
Among the services provided by the kernel so (Figure 1) are:
• Allocating secondary memory for efficient storage and retrieval of user data.
Exercise 4.3:
1) List at least 3 characters of UNIX file system
2) What is root?
Objectives:
After completing the section, you will be able to:
101
• Know what is shell
UNIX is security- conscious, and can be used only by those persons who maintain an
account with the computer system .You can’t simply sit down at any terminal and start
working as in DOS/Windows.
If you are using a UNIX workstation, you must set up your own user account.
System administrator will grant you that authority. He opens an account with the name
(is known as login name/user name) for your use, and given you a secret code called
password that you have to enter when the system prompts you for it.
4.4.2 Logging In
Logging in is a simple procedure that tells the UNIX system who you are:
$ login:
The login prompt indicates that the terminal is available for some one to login (i.e
connect). This message also indicates that the previous user has “logged out”
(disconnected).
Enter your user name (or login name) and hit the <Enter> key after the string:
$ login : Type user name <Enter>
Password:
The system now, request you to enter the secret code (password) that was handed
over to you by your administrator. This code should be known to none except yourself.
Enter your password. The terminal does not display what you type. Then press the
<Enter> key.
Example:
$ login: Anand <Enter>
Password:*******<Enter>
102
The system cross check this password and if it is right you will be presented with a
login sequence like the following:
If you are logging onto a UNIX system V Release 5, the sequence look like this:
Login:
Password:
UNIX system V release AT & T 3B2
System id
Copy right © 1984, 1986, 1987, 1988 AT & T
All Rights Reserved
Last login : Friday March 09 10 :45 : 21 on term /12
If you make mistakes while typing simply press this <Enter> key one or two times
till the login prompt reappears on the screen.
If you enter either of them in correctly, the system flashes the following message
Login incorrect
Wait for login retry:
4.4.3 Shell
When you login your UNIX system, you are immediately thrust into your login
shell. Information about this shell is usually contained in this file /etc/password, as in
login into for all this users on your system.
No Command can be executed unless it obtains the clearance of the shell some
popular shells one:
103
• Jsh the job shell. An extension of the Bourne shell.
• bash Bourne Again shell. Developed by the Free Software Foundation.
User User
ell Sh
Sh Ot ell
se he
taba ge Sy r A
Da acka s.s pp
p /w n.
Inte
H/W
d
man
Com NIX
rnet
She
ll
U
She
tool
Kernel
ll
User User
Concepts
Shell
User
Exercise 4.4:
1) What is an account?
3) What is Password
8) Close the book and draw the kernel-shell relation ship diagram
104
Chapter 5
LINUX SYSTEM
Structurre
5.1 INTRODUCTION
105
5.1 INTRODUCTION
Objectives:
After completing this chapter, you will be able to:
3. Features of LINUX
To work with LINUX, you need a Personal Computer with the following general
configuration:
• You need 500MB of hard disk space for a typical installation. To install
everything, you need about 1.6GB of space.
LINUX is a free Operating System that was created by Linus Torvalds when he
was a student as the University of Helsinki in 1991. Torvalds started Linux by writing a
kernel, which is the heart of the operating system, In the 1980s and 1990s, while
Microsoft flooded the world with personal computers running DOS and Windows
operating systems, power users demanded more from an operating system. They ached
for system that could run on networks, support many users at once (multiuser), and run
many programs at once (multitasking). DOS and Windows didn’t cut it.
106
5.1.3 Features of LINUX:
• Multi user –Not only can you have many user accounts available on a
LINUX system, but you can also have multiple users logged in and working
on the system, at the same time.
• Multitasking –You can have many programs running at the same time in
LINUX. Besides meaning that you can have lots of programs going at once, it
also means that Linux, itself, can have programs running in the background.
Many of these system processes make it possible for LINUX to work as a
server.
• Hardware support –You can configure in support for almost every type of
hardware that can be connected to a computer. There is support for floppy
disk drives, CD-ROMs, removable disks (such as Zip drives), sound cards,
tape devices, video cards, and most anything else you can think of.
107
file server, FTP server, mail server, web server, news server, or workgroup
server.
Exercise 5.1:
Objectives:
This section presents a view of Red Hat Linux from the shell. The shell is a
command line interpreter that lets you access some of the most critical Red Hat Linux
tools. The shell is powerful, complex, and almost completely unintuitive.
108
This section is your guide to logging in and working with Linux system commands,
processes, and file system from the shell. This chapter also describes the shell
environment and helps you tailor it to your needs.
Because Red Hat Linux was created as a multi-user computer system, even if you
are the only person using the computer, you start by logging in. Logging in identifies you
as a particular user.
After the computer has been turned on and the operating system has started, you will
see a login prompt similar to this:
The graphical login is typically your entry into the X Window System graphical user
interface (GUI).
As you log on, Red Hat Linux starts up a user environment that is unique to your
user account. Some of the features that make up your user environment are:
• A shell configuration: There are several shells available for use with Linux,
with each having slightly different features. The bash shell (which stands for
Bourne Again Shell) is most commonly used with Linux.
109
Once the login process is complete, either a shell or a GUI is started automatically.
$
The default prompt for the root user is a pound sign:
When you first log in to Linux, you begin with your home directory as the current
directory. When you request to open or save a file, your shell uses the current directory
as the point of reference.
To find out what your current directory is, type the pwd command;
$ pwd
/usr/bin
In this example, the current or working directory is /urs/bin. To find out the name of
your home directory, type the echo command, followed by the $HOME variable:
$ echo $HOME
/home/Anand
In the above example, the home directory is /home/Anand. To get back to your
home directory, you can simply type the change directory (cd) command.
$ cd
The UNIX system commands cd, ls, which work in the same way in LINUX
system.
110
5.2.5 Exiting the shell
To exit from the shell when you are done, you either type exit or press Ctrl+D. If
you are existing from your login shell (the shell that started when you first logged in),
type logout to exit the shell.
Exercise 2:
1. What message will appear on the screen when the LINUX system on.
4. Use cd .. command and then use pwd to know where you are.
7. Type exit from login mode and watch the difference with respect to
logout.
Objectives:
111
5.3.1 Working with the Red Hat Linux File system
The Red Hat Linux file system is the structure in which all the information on your
computer is stored. Files are organized within a hierarchy of directories. Each directory
can contain files, as well as other directories.
At the top is the root directory, which is represented by a single slash (/). Below that
is a set of common directories in the Linux system, such as /bin, /dev, /home, /lib, and
/tmp, to name a few. Each of those directories, as well as directories added to the root,
can contain subdirectories.
bin/ dev/ etc/
home/ root/ tmp/ …
mary/
Anand/ tom/
memos/
briefs/ personal/
Figure 3-1 illustrates how the Linux file system is organized as a hierarchy.
Some of the Red Hat Linux directories that may be of interest to you include the
following:
• /bin- Contains common Linux user commands, such as ls, sort, date and
chmod.
• /mnt- Provides a location for mounting devices, such as remote file systems
and removable devices (cdrom, floppy, and so on).
112
• /root-Represents the root user’s home directory.
The following procedure steps for creating directories within your home directory,
moving among your directories, and setting appropriate file permissions:
2. To make sure that you got to your home directory, type pwd. When
you do this, you get the following response (reflects your home
directory):
$ pwd
/home/Anand
$ mkdir test
113
$ ls - ld test
drwxr-xr-x 2 Anand sales 1024 January 24 12:17 test
Notice that this listing says that test is a directory (d), the owner is Aanand, the
group is sales, and the file was most recently modified on January 24 at 12:17 p.m.
Suppose that you want to prevent everyone else who uses this computer from using or
viewing the files in this directory. The permissions for the directory is rwxr-xr-x. The
coming section explains what these permissions are.
This command changes the permissions of the directory to give you complete access
and everyone else no access at all. (The new permissions should read like rwx --- ---).
$ cd test
The nine bits assigned to each file for permissions define the access that you and
others have to your file. Permission bits appear as rwxrwxrwx. The first three bits
apply to the owner’s permission, the next three apply to the owner’s group, and the
last three apply to all others.
You can see the permission for any file or directory by typing the ls – ld name
command. The name file or directory will appear as those shown in the example below:
$ ls - ld ch3 test
114
Here are some examples of how to change permission on a file and what the
resulting permission would be:
When you try to create a file, by default it is given the permission: rw- r-- r--. A
directory is given the permission rwx r-x r-x. These default values are determined by
the value of umask. Type umask to see what your umask values. For example:
$ umask
022
Commands for moving, copying, and deleting files are fairly straight forward. To
Change the location of a file, use the mv command. To copy a file one location to
another, use the cp command. To remove a file, use the rm command. Here are some
examples:
$ mv abc def
$ mv abc ~
$ cp abc def
$ cp abc ~
$ rm abc
$ rm *
115
Exercise 5.3:
Objectives:
$ vi /tmp/test
If this is a new file, you should see something similar to the following:
116
~
~
~
~
“ /tmp/test” [New File]
To start out, type either of the following input commands:
a Add: After you type a you can input text that starts to the right of the cursor.
i Insert: After you type i you can input text that starts to the left of the cursor.
Type a few words and press Enter. Repeat that a few times until you have a few lines
of text. When you are done typing press Esc. Try moving around within that text with the
following commands:
Arrow keys Use the arrow keys to move up, down, left, or right in the file one
character at a time. To move left and right you can also use
Backspace and the spacebar, respectively. If you prefer to keep you
fingers on the keyboard, use h (left), I (right), j (down), or k (up)
to move the cursor.
H Moves the cursor to the upper-left corner of the screen (first line on
the screen).
M Moves the cursor to the first character of the middle line on the
screen.
L Moves the cursor to the lower-left corner of the screen (last line on
the screen).
117
dw Deletes from the current character to the end of the current word.
d$ Deletes from the current character to the end of the current line.
d0 Deletes from the previous character to the beginning of the current line.
ZZ Save the current changes to the file and exit from vi.
:q Quit the current file. This works only if you don’t have any
unsaved changes.
:q! Quit the current file and DON’T save the changes you just made to
the file.
1G Go to the first line of the file. (Instead of I, you could use any
number to go to that line number in the file.)
To search for the next occurrence of text in the file, use either the slash (/) or the
question mark (?) character. Within the search, you can also use metacharacters.
118
/ The * foot Searches forward for a line that has the word The in it and also,
after that at some point, the word foot.
? [ pP]rint Searches backward for either the word print or print. Remember
that case does matter in Linux, so using brackets is one way to
search for words that could have different capitalization:
The vi command was originally based on the ex editor.
5.4.4 Using numbers with commands
You can precede most Vi commands with numbers to have the command repeated
that number of times. Here are some examples:
5cl Changes the next five letters (i.e., removes the letters and goes
into input mode).
Exercise 5.4:
119