ECE 175 Lectures

ECE 175 Lectures - ECE 175: Computer Programming for...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 175: Computer Programming for Engineering Applications Just Enough Unix
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ECE 175: Computer Programming for Engineering Applications - Just Enough Unix Computer systems Computer hardware Central processing unit (CPU) Main memory Mass storage Input/output devices Computer software System software - Interaction with user; Mgmt. of other softwares; Control of peripherals Application software - Eg. Word, Excel, Web browsers Open and closed systems Closed systems: Eg. MS-DOS, Original Mac OS Open systems: Eg. Unix Single and multiple user systems 2
Background image of page 2
ECE 175: Computer Programming for Engineering Applications - Just Enough Unix Unix Components of Unix Kernel Master control program of the computer File system Organizes data into collections of Fles and folders/directories Shell Interprets user commands and passes them to kernel (command line interface) Utilities Software tool included as a part of the system (often called commands ) Versions of Unix System V Unix AIX, Irix, Solaris, Tru64 Unix, Unicos, UnixWare BSD Unix BSD/OS, Dynix/ptx, ±reeBSD, Mac OS X, NetBSD, OpenBSD, ULTIRX Unix-like systems Hurd, Linux, Minix, XINU Graphical user interfaces Common Desktop Environment, Java Desktop (on Solaris) Remote login (“telnet” or “ssh”) 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ECE 175: Computer Programming for Engineering Applications - Just Enough Unix 4
Background image of page 4
ECE 175: Computer Programming for Engineering Applications - Just Enough Unix Unix fle system Files and directories Ordinary Fles - Most common computer Fles Special Fles - Fles represent physical devices such as terminals, printers, and peripherals Directory Fles - Ordinary and/or special Fles organized into collections Text and binary fles Text Fles - Information in the form of text that can be read (ASCII format) Binary Fles - Non-textual data Home and working directories Home directory: The directory that you log into the unix system (Eg. /home/username) Working directory: The directory in which you are presently in 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ECE 175: Computer Programming for Engineering Applications - Just Enough Unix Unix fle tree File Tree bin - software for shell dev - special Fles needed to operate on peripheral devices etc - various administrative Fles home - home directories of users tmp - temporary Fles usr - some versions of unix keep home directories of users here; may contain manual pages var - contains Fles whose information can vary (Eg. /var/mail holds users’ emails) There may be other directories depending on implementation 6
Background image of page 6
ECE 175: Computer Programming for Engineering Applications - Just Enough Unix File and directory names Up to 255 characters that can include Upper case letters (A to Z) Lower case letters (a to z) Numerals (0 to 9) Period ( . ), underscore ( _ ), comma ( , ), hyphen ( - ) Avoid Using unix command names as Fles & * \ | [ ] { } $ < > ( ) # ? / ; ^ ! ~ % Absolute path names The root directory is / Home directory for ece175 is: /home/ece175 The directory public_html in ece175 has absolute path: /home/ece175/public_html 7
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ECE 175: Computer Programming for Engineering Applications - Just Enough Unix File and directory names Relative path names .
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 146

ECE 175 Lectures - ECE 175: Computer Programming for...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online