Tutorial Six Recap & Linux Basics CompSci 210 - Semester Two 2016.

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

Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
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.
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Working Environment - - Linux - -.
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.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Unix Workshop Aug What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters.
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.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
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”
CSE 390a Editing and Moving Files
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Copyright (c) by CNAPTICS Corporation. All rights reserved.1 INFO Oracle Database 11g: Administration II Presented By: Marc S. Paller,
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
Vim Editor and Unix Command gcc compiler Computer Networks.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
TAMU CSCE 313 (the basics). Basic Unix/Linux programming Accessing CS systems  PuTTY (putty.exe) – a Telnet and SSH client  Common hosts: unix.cs.tamu.edu.
COMPSCI 210 Semester Tutorial 7 – C Exercises.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
CGS 3460 Why we choose UNIX n Powerful lMulti-user operating system lGood programming tools Most heavy-duty database management systems started out on.
Tera Term Brian Smith Chris Vasse Zaheemat Adetoro William Newton Tom Presgraves.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
1 Chapter 34 Internet Applications (Telnet, FTP).
City Cluster Quickstart Lien-Chi Lai, COLA Lab, Department of Mathematics, NTU 2010/05/11.
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
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.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
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.
Object Oriented Programming COP3330 / CGS5409.  Compiling with g++  Using Makefiles  Debugging.
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
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.
Tutorial Six Linux Basics CompSci Semester Two 2016.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Precept I : Lab Environment, Unix, Bash, Emacs
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.
Class Projects and Environment
First Day in Lab Making a C++ program
CS1010: Intro Workshop.
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Useful Linux Commands.
Part 3 – Remote Connection, File Transfer, Remote Environments
Assignment Preliminaries
Lab 1 introduction, debrief
Intro to UNIX System and Homework 1
Welcome to CSCI 230! Problem Solving using C
Operating Systems and Using Linux
Web Programming Essentials:
Operating Systems Lecture 5.
Lab 00 Discussion Linux Basics
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Tutorial Unix Command & Makefile CIS 5027
Internet Applications (Telnet, FTP)
Presentation transcript:

Tutorial Six Recap & Linux Basics CompSci 210 - Semester Two 2016

So what have we done Boolean Algebra Binary Logic circuits Binary Addition Two’s compliment how to write assembly code for the LC-3 What an assembler / Linker is CompSci 210 - Semester Two 2016

Linux CompSci 210 - Semester Two 2016

Connecting to the University Linux Server We use an SSH client to make a network connection to a remote computer (basically text-based remote desktop) Any SSH client should work (hint for mac/linux users) Use SSH to connect to: login.cs.auckland.ac.nz Login using your UPI and password You can access the Linux server from anywhere CompSci 210 - Semester Two 2016

Make an SSH Connection with PuTTY CompSci 210 - Semester Two 2016

You will see this the first time you log in from a new computer CompSci 210 - Semester Two 2016

your connection to the Linux server CompSci 210 - Semester Two 2016

Basic Linux Commands We will not use the Linux command-line very much, but it is important to know a few basic commands ls list files and directories mkdir make directory cd change directory pwd print working directory Source: http://www.ee.surrey.ac.uk/Teaching/Unix/unix1.html

More Basic Linux Commands …and a few additional commands cp copy file mv move file (also used to rename files) rm remove file rmdir remove directory clear clear screen …many more! Feel free to explore. Source: http://www.ee.surrey.ac.uk/Teaching/Unix/unix2.html

Nano Nano is a simple text editor you can use to write code while connected to the Linux server. There is a basic tutorial HERE. You can start Nano by typing the command: nano Or you can edit a specific file by typing it with the command: nano myfile.txt

GCC GCC is the C language compiler we will be using. Only code which compiles using GCC version 4.4.5 (the version found on the Linux server) will be awarded marks for assignment 2. There is a basic tutorial HERE. This command will turn your code into a program called a.out: gcc mycode.c Or you can name your program by typing a name with the command: gcc mycode.c –o myprogram Note: In Linux, compiled programs traditionally have no extension.

cplusplus.com Reference site for C and C++ Provides information on all standard functions Think of it as the LC-3 Reference, but for C. (have it open when you are working) Great place to find example code! Also en.cppreference.com/w/c

Moving files to/from Linux

Moving files to/from Linux