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.

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

Introduction of Unix/Linux Compiled by Anant Vishnoi.
ENEE150: Discussion 1 Section 0104 Please Sit Down at a Computer and Login!
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.
© Janice Regan, CMPT 102, Sept CMPT 102 Introduction to Scientific Computer Programming Preparation for working in the CSIL Basic LINUX operations.
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.
Basic linux shell commands and Makefiles. Log on to engsoft.rutgers.edu Open SSH Secure Shell – Quick Connect Hostname: engsoft.rutgers.edu Username/password:
1 ENERGY 211 / CME 211 Lecture 2 September 24, 2008.
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
UPLOADING YOUR SERVER CODE TO YOUR VIRTUAL MACHINE.
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.
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.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
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”
Unix Basics Chapter 4.
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.
C compilers and assignment 3 CS 210 Tutorial 8 Compiling C, assignment 3 helps Studwww.cs.auckland.ac.nz/ ~mngu012/public.html/210/8/
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
The UNIX development environment CS 400/600 – Data Structures.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
Carnegie Mellon Linux Boot Camp Jenna MacCarley, Peter Pearson, Shashank Goyal 9/19/2015.
UNIX Introduction CSCE 221H Texas A&M University.
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.
PostgreSQL Installation By: Keerthi Nelaturu Previous version by Ahmed Jeddah & Miguel Garzon.
Introduction to Programming Using C An Introduction to Operating Systems.
CPS120: Introduction to Computer Science Compiling a C++ Program From The Command Line.
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
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.
COP 3530 Spring 12 Discussion Session 1. Agenda 1.Introduction 2.Remote programming 3.Separate code 4.Compile -- g++,makefile 5.Debug -- gdb 6.Questions?
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
C code organization CSE 2451 Rong Shi. Topics C code organization Linking Header files Makefiles.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
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.
PuTTY Introduction to Web Programming Kirkwood Continuing Education by Fred McClurg © Copyright 2016, All Rights Reserved ssh client.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Tutorial Six Linux Basics CompSci Semester Two 2016.
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.
How to Work on your METEO 473 codes from your PC at home
First Day in Lab Making a C++ program
Tutorial of Unix Command & shell scriptS 5027
CS1010: Intro Workshop.
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Web Programming Essentials:
UNIX The Basics Source:
Andy Wang Object Oriented Programming in C++ COP 3330
Software Tools Recitation 1
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Intro to UNIX System and Homework 1
CSCE 206 Lab Structured Programming in C
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Lab 00 Discussion Linux Basics
Andy Wang Object Oriented Programming in C++ COP 3330
Tutorial Unix Command & Makefile CIS 5027
Module 6 Working with Files and Directories
Video Notes.
CSCE 206 Lab Structured Programming in C
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

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 linux.cs.tamu.edu  Port 22 and SSH option  Accept key if prompted  Open and enter CS username and password

Common Commands ls – list current directory (ignores files that are ‘invisible’) cd bob – change directory to bob folder  cd.. (jumps one level up in directory) mkdir filename – makes a folder of given filename rm blah – removes file  rm *.ext – removes everything in current directory of a given extension ext pwd – lists the path of the current directory other commands can be found at mands mands

File Editors As the directory you log into with unix and linux is the same as your H drive in most cases, you can modify files in a normal windows environment  Visual Studio, Notepad++, GVIM, etc. If you want to modify files in the putty system, common editors are pico (gives help at bottom) and vi (has more syntactical highlighting)  pico filename  vi filename

Compiling C programs  gcc filename.c - compiles and links c program, generating an executable file C++  g++ filename.cpp - compiles and links c++ program, generating an executable file Options for both  ‘-c’ –compiles only, thus a main function is not needed  ‘-o’ –renames the executable or compiled part in case of –c, thus your executable no longer must go under the a.out name

Debugging Unix/Linux debugger GDB  First compile and link your program (gcc or g++)  gdb executable – starts up gdb  run – executes the program and returns details about errors if any  For more info that concerns inserting breakpoints and stepping through your code look at oc.html oc.html

Makefiles makefiles are ways you can simplify compilation and linking on large projects by specifying once the order of linking/upkeep of the compilation process More info on creation and use of these files can be found at /make.html and urces/make.htm /make.html urces/make.htm