Tutorial Six 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.
ENEE150: Discussion 1 Section 0104 Please Sit Down at a Computer and Login!
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.
COP 3275 COMPUTER PROGRAMMING USING C Instructor: Diego Rivera-Gutierrez
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.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
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.
Unix Workshop Aug What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
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.
A crash course in njit’s Afs
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
1 Intro to Linux - getting around HPC systems Himanshu Chhetri.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
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.
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.
AE6382 Secure Shell Usually referred to as ssh, the name refers to both a program and a protocol. The program ssh is one of the most useful networking.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
UNIX Introduction CSCE 221H Texas A&M University.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
CGS 3460 Why we choose UNIX n Powerful lMulti-user operating system lGood programming tools Most heavy-duty database management systems started out on.
C programming and compilers. At least 3 ways to compile C Using gcc in UNIX environment via chaos.cs.auckland.ac.nz Using gcc in Cygwin in Windows Using.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
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.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
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.
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.
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.
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.
First Day in Lab Making a C++ program
CS1010: Intro Workshop.
Getting started with CentOS Linux
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Andy Wang Object Oriented Programming in C++ COP 3330
Software Tools Recitation 1
A Guide to Unix Using Linux Fourth Edition
Intro to UNIX System and Homework 1
Welcome to CSCI 230! Problem Solving using C
Operating Systems and Using Linux
Operating Systems Lecture 5.
Lab 00 Discussion Linux Basics
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Tutorial Unix Command & Makefile CIS 5027
Video Notes.
Presentation transcript:

Tutorial Six Linux Basics CompSci 210 - Semester Two 2016

Agenda C on Windows C on Linux <<<<< must know Visual Studio C on Linux <<<<< must know Linux Server My favorite IDE Clion (Mac and Windows) Hello world demonstration CompSci 210 - Semester Two 2016

Personal C Environment Programming with IDE Visual studio - for windows Student free Clion – my favorite on Mac A student can get a 1-year free license from its website Eclipse/CodeBlocks CompSci 210 - Semester Two 2016

Linux C Environment Editor: Nano/Vim/Emacs Sublime text/Notepad++ Compiler: Gcc - unix Clang – Mac os Debug: GDB (advanced) CompSci 210 - Semester Two 2016

Linux CompSci 210 - Semester Two 2016

operating systems family UNIX Family Commercial Unix BSD Mac OS Linux MS-DOS Windows CompSci 210 - Semester Two 2016

Practice on linux Login on Linux Commands on Linux Programming on 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

Connection From mac 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 or http://www.thegeekstuff.com/2012/10/gcc-compiler-options/. 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 https://afsweb.ec.auckland.ac.nz/ => EC AFS

Moving files to/from Linux => unixhome