Welcome to CSCI 230! Problem Solving using C

Slides:



Advertisements
Similar presentations
Introduction to the Omega Server CSE Overview Intro to Omega Basic Unix Command Files Directories Printing C and C++ compilers GNU Debugger.
Advertisements

CSE1222: Unix IntroThe Ohio State University1. Common Directory Commands  lsList directory contents  cd {dir}Change working directory to {dir}  pwdPrint.
Linux Orientation Computer Systems Lab Computer Sciences Department Room 2350.
ENEE150: Discussion 1 Section 0104 Please Sit Down at a Computer and Login!
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Using Pine to send your ICS111 homework First Log in into UNIX using SSH either from home (If you have previously installed SSH or from the Lab. Once in.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
CS 110 Intro to Computer Science I Sami Rollins Fall 2006.
Linux & Applications Sean GavinWayne State University multi-user environment -- log in: user name and password -- you never turn the computer on or off.
Basic linux shell commands and Makefiles. Log on to engsoft.rutgers.edu Open SSH Secure Shell – Quick Connect Hostname: engsoft.rutgers.edu Username/password:
CS 202 Computer Science II Lab Fall 2009 August 27.
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall linux.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
What is Unix? A multi-user networked operating system –“Operating System” Handles files, running other programs, input/output Looks like DOS…but more powerful.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
Notes Assignment #1 is due next Friday by 11:59 pm via Test #1 will be held Thursday February 18 at the start of class (one period long) Format:
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Lesson 1. PC vs. Multi-user System  Personal Computer – each user gets his/her own processor (or multicore processor).  Multi-user system – The processor,
Unix Basics Chapter 4.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
November 5, 2015CIS 118 Intro to UNIX What’s a Unix? Unix is an Operating System Designed for high-traffic usage Many variants –Linux, BSD: free versions.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
Introduction to Programming Using C An Introduction to Operating Systems.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
Intro. To Unix commands For those who’ve never used Unix before Quick tutorial to let you move around your Unix Accounts No discussion of inner workings.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
A gentle introduction to LINUX at the command prompt.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  There are many different.
Introduction to UNIX and Linux.  Written by Dennis Ritchie and Ken Thomsom at Bell Labs in 1969  Initially written in assembly language and a high-level.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Tutorial Six Linux Basics CompSci Semester Two 2016.
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
ENEE150 Discussion 01 Section 0101 Adam Wang.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
First Day in Lab Making a C++ program
CS1010: Intro Workshop.
Introducing the UNIX Operating System.
Getting started with CentOS Linux
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Prepared by: Eng. Maryam Adel Abdel-Hady
UNIX The Basics Source:
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
The Command Prompt Commands are the way to “do things” in Unix
Welcome to CSCI 230! Problem Solving using C
Introduction to UNIX UNIX developed at Bell Labs in 70s
Unix : Introduction and Commands
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems Lecture 5.
Lab 00 Discussion Linux Basics
Getting started with CentOS Linux
Module 6 Working with Files and Directories
Lab 2: Terminal Basics.
Presentation transcript:

Welcome to CSCI 230! Problem Solving using C CSCI 230 Computing-I Welcome to CSCI 230! Problem Solving using C

Objectives for the Lab Learn problem solving strategies Achieve intermediate knowledge of C Programming Language Gain experience leveraging basic data structures Get an understanding of simple algorithms

Agenda Environment setup Introduction to UNIX Login to Pegasus Email UNIX files and directory structure Basic UNIX commands

Agenda How to use a text editor emacs editor -- basic commands Create and compiler your first C program! “Hello world” program Compile using “gcc” compiler Execute

Login to UNIX User Name Oncourse username Password Oncourse password

Login (Cont’d) UNIX is case-sensitive! The username and the password are in lower-case If you are NOT able to logon then: Contact a Lab Instructor or Course Instructor Once you login for the first time, the system will prompt you to change the password…create a new password and remember it

Introduction to UNIX UNIX is a multitasking operating system that manages the resources of a computer and provides a user interface. UNIX is case sensitive, which means, upper and lower case characters are treated as different characters. The UNIX machine for which you are given an account is: pegasus.cs.iupui.edu

The UNIX Directory Structure A directory is a location to store information. UNIX starts with a root directory / /etc /home /usr /bin /jsmith /tjones /local

The UNIX Prompt login: jsmith Password: Last login: Mon Aug 22 08:42:33 from gatekeep.usagrou Sun Microsystems Inc. SunOS 5.8 Generic February 2000 pegasus{jsmith}1: Command number Machine name User name

Essential UNIX Commands ls- list files in present working directory pwd- display present working directory cd- change directory cd .. Backup one directory level lp (or lpr) - print file to printer: Printer in SL251! rm- remove a file cp- copy a file mv- move or rename a file mkdir- make a directory rmdir- remove a directory

Email All email correspondence should take place through Oncourse.

Class E-mail Subscription Subscribe to the class email to receive mail sent to the entire class by instructors and other classmates Send mail to: majordomo@cs.iupui.edu Subject: blank Body of Message: subscribe cs230

Pine You can practice subscribing from unix, but you should subscribe from whatever email account you use most during the day or the email you want to receive emergency notifications. From the unix prompt type pine The system will indicate the welcome message for the first time Type c to compose a mail Write majordomo@cs.iupui.edu in the To field Leave the Subject field blank Type subscribe cs230 below Message Text Type control x to send the mail Type q to quit

How to Use Emacs pegasus{jsmith}1:emacs filename There is a Tutorial listing the major emacs commands. I suggest you use the Tutorial. To use the tutorial, type emacs at the prompt and then type <ctrl>h t. This starts the tutorial. Quick Access Card – Linux

How to Compile A Program pegasus{jsmith}1: gcc first1.c C programs end in the “.c” extension The executable file is called a.out

How to Execute Your Program pegasus{jsmith}1: a.out Type the name of the executable file at the prompt to run your program

Your First C Program # include <stdio.h> main(void) { printf(“Hello, CSCI 230!\n”); } Try it!