Lab 1 Preparation UNIX/Linux background Java Language Intro.

Slides:



Advertisements
Similar presentations
Operating-System Structures
Advertisements

Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.
Operating Systems. Operating System (OS) The software that manages the sharing of the resources of a computer. Examples of Operating Systems ◦ Windows.
COSC 120 Computer Programming
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
MCT260-Operating Systems I Operating Systems I Navigating the File System.
1 CSE 390a Lecture 4 Persistent shell settings; users/groups; permissions slides created by Marty Stepp, modified by Jessica Miller
Information Networking Security and Assurance Lab National Chung Cheng University 1 What Linux is? Free Unix Like Open Source Network operating system.
What is a class? a class definition is a blueprint to build objects its like you use the blueprint for a house to build many houses in the same way you.
The UNIX File System.
Guide To UNIX Using Linux Third Edition
Xuan Guo Chapter 1 What is UNIX? Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003 Original Notes.
By Rashid Khan Lesson 8-Crowd Control: Controlling Access to Resources Using Groups.
Applying OO Concepts Using Java. In this class, we will cover: Overriding a method Overloading a method Constructors Mutator and accessor methods The.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
Linux File Security. What is Permission ? Specifies what right are granting to users to access the resources available in the computer. So that important.
Installing Windows XP Professional Using Attended Installation Slide 1 of 41Session 2 Ver. 1.0 CompTIA A+ Certification: A Comprehensive Approach for all.
Linux Files and Directories. Linux directories Linux system are arranged in what is called a hierarchical directory structure. This means that they are.
OPERATING SYSTEMS AND SYSTEMS SOFTWARE. SYSTEMS SOFTWARE Systems software consists of the programs that control the operations of the computer and its.
An Introduction to Operating Systems. Definition  An Operating System, or OS, is low-level software that enables a user and higher-level application.
Chapter 4: Operating Systems and File Management 1 Operating Systems and File Management Chapter 4.
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC as a Linux Computer January.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Guide To UNIX Using Linux Fourth Edition
Writing Classes (Chapter 4)
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
Operating Systems.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Operating Systems Lecture 4. Agenda for Today Review of previous lecture Operating system structures Operating system design and implementation UNIX/Linux.
Agenda Review Unix Review Algorithms Your first program Compiling programs What are functions? What is Object Oriented Programming? Variables Data Types.
SOFTWARE: the power behind the machine By Mrs. Gonzales.
CSC Java Programming, Fall, 2008 Week 2: Java Data Types, Control Constructs, and their C++ counterparts, September 4.
Chapter Two Exploring the UNIX File System and File Security.
Systems Software Operating Systems. What is software? Software is the term that we use for all the programs and data that we use with a computer system.
Copyright © Curt Hill Turtles The beginning of media computation.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Windows Listening Guide.  The software that manages the sharing of the resources of a computer. The overall function of the computer.  MASTER CONTROLLER.
Data Storage H Drive  You have access to a personal network drive called the “H” drive.  This is 250MB of space where you can keep your most crucial.
Storing data on your computer & network. Storage devices Hardware Hard drive Flash drive Tape File server (HD) SAN NAS Software System software Windows.
Chapter Two Exploring the UNIX File System and File Security.
8-2 What is a program? What is a “Window Manager” ? What is a “GUI” ? How do you navigate the Unix directory tree? What is a wildcard? Readings: See CCSO’s.
Introduction to Java Chapter 7 - Classes & Object-oriented Programming1 Chapter 7 Classes and Object-Oriented Programming.
Introduction to Programming Using C An Introduction to Operating Systems.
Criteria for comparing OS Character-based or GUI-based Single or multi tasking Single or multi threading Weak or strong security 8,16, 32 or 64 bit processed.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Linux Commands C151 Multi-User Operating Systems.
1 Class 1 Lecture Topic Concepts, Definitions and Examples.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
In this class, we will cover: Overriding a method Overloading a method Constructors Mutator and accessor methods The import statement and using prewritten.
BIF703 File Permissions. As you recall from our previous notes, that Unix/Linux recognizes everything as a file: Regular files to store data, programs,
CEG 2400 FALL 2012 Linux/UNIX Network Operating Systems.
“Candidates were not advantaged by defining every type of operating system provided as examples in the explanatory notes of the standard. Candidates who.
Operating systems Lecture #3 Modern OS characteristics.
Keeping Organized How to set up and use your school work folder.
به نام خدای مهربان زبان تخصصی دانشجویان کامپیوتر English for Computer Students درس 3 جوانمرد Ejavanmard.blogfa.com
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II FILES AND FILE SYSTEM STRUCTURE.
Java Interview Questions
Command Line Basics.
UBUNTU INSTALLATION
Lecture #3 Modern OS characteristics
BIF703 File Permissions.
Lecture #3 Modern OS characteristics
OPERATING SYSTEMS.
Exploring the UNIX File System and File Security
Chapter 2: System Structures
Operating Systems Lecture 4.
Consult America Technology Consulting Services
Presentation transcript:

Lab 1 Preparation UNIX/Linux background Java Language Intro

UNIX/Linux Background UNIX/Linux (*NIX) are operating systems – “Use small programs that are each good at one thing” – Multiuser – Become a desktop OS Why use it? – UNIX released in 1971 Legacy support for companies – “Windows rot” and stability – Multiuser and security

Linux in the Lab

Navigating *NIX Windows: Device based file system – C:\  hard drive, D:\  CD-ROM (for example) – You open the hardware you want, and then navigate folders *NIX: Mounting file system – / (root) and then directories. No direct notice of the devices – Multi-users Permissions Distinct file spaces

Navigating *NIX /home/smiller /home/smiller/stuff/more stuff/file.txt / RootDirectorySub-directory HOME DIRECTORY Sub-directory File Root

Navigating *NIX / / home smiller other bin *NIX C:\ Documents & Settings smiller other Program Files Windows My Documents

Permissions chmod filename will change the permission of each entity to a file/directory – Owner, Group, Others (everyone else) – Read with ls -l as 3-value sets or read, write and execute

Java Tutorial/Refresher Java structure Static variables Calling other classes (Intro to OOP)

Java Language Structure Packages - contain many related classes Classes – (generally) single.java files containing variables and methods – Encapsulates and object – Classes encapsulate lots of similar “work” in many methods Method – function; unit of code that “does work” on data stored in an object

Static Variables Static variables – Created at execution time for the program – Only available in scope where defined – Are never destroyed and therefore their values are always available until program termination Static methods can ONLY use static global variables The main method is static for this reason Keep in mind for JSP

Calling Classes A class has 4 main pieces – Class definition: name and type of class – Data: variables stored in class’ data structure – Methods: code that operates on the data in the class – Constructor or main(): This is the entry point to the class

Calling Classes Think of how you create other variables: String, int, etc. – int myVariable = 100; – Creates an object of type integer and allocated the memory (optionally initializes it) If you have a class to instantiate (create), you call it the same way – MyClass myVariable; – To initialize it: MyClass myVariable = new MyClass(arguments);

Calling Classes Much like classes you have used in CSC110, you call a method in a class with a ‘.’ MyClass myVariable; myVariable.doSomething(); System.out.print(“We did something”);

Classes and Java Java provides nearly any function you’d need to do common tasks (including networking) in provided classes. You need to create objects containing the functionality you need.

NEXT CLASS Object-Oriented Programming and finishing Networking slides Finish Lab 1 and be ready to submit it