Docsity

computer hardware and system software 13, Slides of Computer Fundamentals

Partial preview of the text

Download computer hardware and system software 13 and more Slides Computer Fundamentals in PDF only on Docsity!

MIS 2103

Computer Hardware and

System Software

Fall 2023

Lecture # 13

The User View of Operating Systems

User Interface

§ Help users to use the computer system

productively

§ Provide consistent user interface

services to application programs to

lower learning curves and increase

productivity

§ Choice of user interface depends on the

kind of user

§ Writing programs vs. running applications

Interface Design

§ CLI - Command Line Interface

p Computer terminals, DOS

§ Batch System Commands (BAT files)

p DIR, CD, COPY

§ Menu-Driven Interfaces

§ GUI - Graphical User Interface

Command Line Interface

§ command …

…

§ Operands

§ keyword (switches) and/or positional

§ Advantages

§ More flexible and powerful

§ Faster for experienced users

§ Can combine commands

Command Languages

§ Provide a mechanism to combine sequences of

commands together. These pseudo-programs are

known as scripts or batch files.

§ Startup files – OS configuration, user preferences

§ Features of Command Languages

§ Can accept input from the user and can output messages to

I/O devices

§ Provide ability to create and manipulate variables

§ Include the ability to branch and loop

§ Ability to specify arguments to the program command and

to transfer those arguments to variables within the program

§ Provide error detection and recovery

DOS Batch File

@echo off SET /A a = 5 SET /A b = 10 SET /A c = %a% + %b% if %c%== 15 (echo "The value of variable c is 15") else (echo "Unknown value") if %c%== 10 (echo "The value of variable c is 10") else (echo "Unknown value")

Windows Interfaces

§ Also known as Graphical User

Interfaces (GUIs)

§ Mouse-driven and icon-based

§ Windows

§ Are allocated to the use of a particular

program or process

§ Contain a title bar, menu bar, and widgets

GUI Interface – Windows XP

GUI Interface - MacIntosh

GUI vs. CLI

GUI

§ Advantages

§ Easy to learn and use § Little training § Suitable for multi-tasking

§ Disadvantages

§ Harder to implement § More HW/SW requirements § Requires lots of memory § SW is complex and difficult to write

CLI

§ Advantages

§ More flexible and powerful § Faster for experienced users § Can combine commands

§ Disadvantages

§ More difficult to learn and use

Basic Linux CLI Commands

Thank you for your participation J Good luck in your final exam.