files, user interfaces, and the os files: programs (.exe); data (.jpg,.html,.doc, etc.) user...

36
Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg, .html, .doc, etc.) User Interface: used to run programs and manage files and folders through the OS. User Interface also manages and controls other devices (printers, disk drives, displays, networks)

Upload: virginia-nichols

Post on 17-Jan-2016

225 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Files, User Interfaces, and the OS

• Files: programs (.exe); data (.jpg, .html, .doc, etc.)

• User Interface: used to run programs and manage files and folders through the OS.

• User Interface also manages and controls other devices (printers, disk drives, displays, networks)

Page 2: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Communicating with the OS

User

UserInterface

… but what does a User Interface look like?

OperatingSystem

Page 3: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Windows Desktop

Devices, folders, program icons

Mac Desktop

Windows vs. Mac User Interfaces

Page 4: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Windows Desktop

Devices, folder, program icons

window

Mac Desktop

Windows vs. Mac User Interfaces

Page 5: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Windows Desktop

Devices, folder, program icons

window

menu

Mac Desktop

Windows vs. Mac User Interfaces

Page 6: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Windows Desktop

Devices, folder, program icons

window

menu

close window

Mac Desktop

Windows vs. Mac User Interfaces

Page 7: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Windows Desktop

Devices, folder, program icons

window

taskbar task (pull-down)

menu

close window

Mac Desktop

Windows vs. Mac User Interfaces

(windows/programs in use)

Page 8: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Windows Desktop

Devices, folder, program icons

trash

window

taskbar task (pull-down)

menu

close window

trashMac Desktop

Windows vs. Mac User Interfaces

(windows/programs in use)

Page 9: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Windows Desktoppopupmenu

Devices, folder, program icons

trash

window

taskbar task (pull-down)

menu

close window

trashMac Desktop

Windows vs. Mac User Interfaces

(windows/programs in use)

Page 10: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

control icon title barminimize

maximize

closemenu

files

folders

sizingcornerprogram icon

scrollbox

status bar

scrollarrows

Windows UI – a closer look

Page 11: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

close box title bar zoom box collapsebox

files

folders

sizingboxscroll

bars

scrollbar

Mac UI – a closer lookheader

Page 12: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

DOS (Command-line) User Interface

Page 13: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

DOS (Command-line) User Interface

The Command Prompt

Page 14: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Types of User Interfaces

• Graphical User Interfaces (GUIs)

- Windows, menus, icons, dialog boxes

- visual/graphic “point-and-click” interface

• Command Line User Interfaces: text-based commands and messages

• Some systems offer both

Page 15: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Viewing the contents of a Folder

• Windows/Mac:

Page 16: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Viewing the contents of a Folder

• Windows/Mac:- double click the folder

Page 17: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Viewing the contents of a Folder

• Windows/Mac:- double click the folder

Page 18: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Viewing the contents of a Folder

• In DOS “Folders” = “Directories”

• So type “dir” followed by enter at the command prompt:

D:\CS100\CS100 Lectures >dir

Page 19: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Viewing the contents of a Folder

• In DOS “Folders” = “Directories”

Page 20: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Viewing the contents of a Folder

• In DOS “Folders” = “Directories”

Page 21: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Viewing the contents of a Folder

• In DOS “Folders” = “Directories”

• So type “dir” followed by enter at the command prompt:

D:\CS100\CS100 Lectures >dir

• The prompt is the path in the folder tree

Page 22: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

File Organization & Management

• Files are organized hierarchically in Trees• Contained within Folders• A path in DOS is a path in the tree:

Page 23: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

File Organization & Management

• Files are organized hierarchically in Trees• Contained within Folders• A path in DOS is a path in the tree:

A:\Pictures\objects\

Page 24: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Getting to DOS

1. Start menu

Page 25: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Getting to DOS

1. Start menu

2. Programs

Page 26: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Getting to DOS

1. Start menu

2. Programs

3. MS-DOS Prompt

Page 27: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

File Management

• Change Folder/Directory

• Make Folder/Directory

• Copy Files

• Delete and Undelete Files

• Rename Files

Page 28: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Change Drive/Folder/Directory

• GUI (Windows or Mac)- double click on folders (up & down the tree)

• DOS: to change from C:\> to D:\CS100- type “d:”- Then type “cd cs100” (cd = change directory)- Type “cd \” to get back to the root (top of tree)

Page 29: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Make Folder/Directory

• GUI (Windows or Mac)- File > New > Folder

• DOS: to make a new folder “gronk”- type “mkdir gronk”- To remove/delete: type “rmdir gronk”

Page 30: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Copying Files

• GUI (Windows or Mac)- “drag & drop”

• DOS: to copy a file “foo.doc” to d:\cs100- type “copy foo.doc d:\cs100”- To rename as you copy

Type “copy foo.doc d:\cs100\newname”

Page 31: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Deleting Files

• GUI (Windows or Mac)- drag to recycle bin (Windows) or trash (Mac)- Empty to really delete

• DOS: to delete a file “notworthkeeping”- type “del notworthkeeping”

Page 32: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Renaming Files

• GUI (Windows or Mac)- Click on the name of the file …. Pause ….- Then click on it again and edit it

• DOS: to rename file “bug” to “itruns”- type “ren bug itruns”

Page 33: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Running Programs

• GUI (Windows or Mac)- Double click on the program or file … or …- “Drag & drop” file onto program

• DOS: to program “ItRuns”- type “ItRuns” and hit the enter key

Page 34: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Printing Files

• GUI (Windows or Mac)- Print from within the application … or …- “Drag & drop” file onto printer

• DOS: to print a text file “MyPaper”- type “print MyPaper”- type “type MyPaper” outputs it to the screen

Page 35: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Editing Files

• GUI (Windows or Mac)- Edit from within the application … or …- Open with Notepad as shown with html files

Page 36: Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User Interface: used to run programs and manage files and folders

Review

• User Interfaces allow us to communicate with the OS

• User Interfaces: Graphical and Command-line flavors

• UIs can be used to run programs and manage files

• The User Interface can also be used to manage and control other devices (printers, disk drives, displays, networks)