Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User...
-
Upload
virginia-nichols -
Category
Documents
-
view
222 -
download
1
Transcript of Files, User Interfaces, and the OS Files: programs (.exe); data (.jpg,.html,.doc, etc.) User...
![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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/1.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/2.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/3.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/4.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/5.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/6.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/7.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/8.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/9.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/10.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/11.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/12.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/13.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/14.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/15.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/16.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/17.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/18.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/19.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/20.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/21.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/22.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/23.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/24.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/25.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/26.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/27.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/28.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/29.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/30.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/31.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/32.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/33.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/34.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/35.jpg)
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.](https://reader036.fdocuments.us/reader036/viewer/2022062423/5697bf8a1a28abf838c8a84b/html5/thumbnails/36.jpg)
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)