COP3502: Introduction to Computer Science Yashas Shankar.

Slides:



Advertisements
Similar presentations
CS1020 Week 3: 29th January 2015.
Advertisements

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.
1 Introduction to UNIX Ke Liu
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
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.
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.
Working Environment - - Linux - -.
CS 202 Computer Science II Lab Fall 2009 August 27.
CS 202 Computer Science II Lab Fall 2009 September 3.
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
9-2 How do you copy/move/rename/remove files? How do you create a directory ? What is redirection and piping? Readings: See CCSO’s Unix pages andCCSO’s.
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.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
The Unix Environment and Compiling. Getting Set Up Your programs will be compiled and tested on the Departmental server ‘linprog’ The linprog servers.
Learning basic Unix command IT 325 operating system.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
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”
Linux Directory Navigation. File & Directory Commands This is a minimal list of Unix commands that you must know for file management: ls (list) mkdir.
Working with Files Chapter 5. Display a Calendar Display a calendar for a specific month – cal Display a calendar for a specific year – cal 2000.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Unix Basics Chapter 4.
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.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
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.
COP3502: Introduction to Computer Science Yashas Shankar.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
COP3502: Introduction to Computer Science Yashas Shankar Creating a webpage on FSU website.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Text Editing February 2 nd, 2004 Class Meeting 3.
Chapter Three Text Editing1 System Programming Text Editing.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
EGEE-III INFSO-RI Enabling Grids for E-sciencE Apr. 25, Grid Computing Hands On Training for Users Faculty of Sciences, University.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
COP3502: Introduction to Computer Science Yashas Shankar Midterm review.
COP3502: Introduction to Computer Science Yashas Shankar Program Translation.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
Linux Stuff Last Update Copyright 2014 Kenneth M. Chipps Ph.D. 1.
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.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
ICE UNIX TUTORIAL. File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete.
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.
Learning basic Unix command It 325 operating system.
General Computer Science for Engineers CISC 106 Lecture 03 James Atlas Computer and Information Sciences 6/15/2009.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
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.
General Computer Science for Engineers CISC 106 Lecture 03 James Atlas Computer and Information Sciences 9/9/2009.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
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.
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Andy Wang Object Oriented Programming in C++ COP 3330
Welcome to CSCI 230! Problem Solving using C
Introduction to Linux Week 0 - Thursday.
Welcome to CSCI 230! Problem Solving using C
Andy Wang Object Oriented Programming in C++ COP 3330
CSE 303 Concepts and Tools for Software Development
Module 6 Working with Files and Directories
Lab 2: Terminal Basics.
Instructor: Xiuwen Liu Department of Computer Science
Presentation transcript:

COP3502: Introduction to Computer Science Yashas Shankar

Basic UNIX commands  SSH to shell.cs.fsu.edu  Reviews  ls – list  cp – copy  mv – move (rename)  rm – remove (delete)  pwd – gives current directory  man – gives manual  ‘>’ – redirection, create new file  ‘>>’ – redirection, append the file, create a file if it does not exist  Emacs – edit text  CTRL-X-S to save  CTRL-X-C to exit

Basic UNIX commands  ls – list files and directory  Try ‘man ls’ to see how to use ls  ls –l  list details -l total 24 - rw shankar CS-Grads 7 Aug 27 15:10 fileone.txt d rwx shankar CS-Grads 4096 Aug 16 12:02 PROGRAMMING d rwx shankar CS-Grads 4096 Aug 27 11:39 SLIDES d rwx shankar CS-Grads 4096 Aug 17 11:08 WEBPAGE d = directory r = read w = write x = execute There are 3 groups of users -you -your group -others

Basic UNIX commands  More on directories .  your current directory ..  one higher directory  ~  your home directory Shell.cs.fsu.edu higher directory shankar home directory COPxxxx COP3502 ppp2131.txt Assume that you are in ~/COP3502 Cd..  move to your home directory Cd COPxxxx move to COPxxxx directory Cd../COP3502 move to COP3502 directory

Basic UNIX commands  More on directories .  your current directory ..  one higher directory  ~  your home directory Shell.cs.fsu.edu higher directory shankar home directory COPxxxx COP3502 a.txt Assume that you are in ~/COP3502 Cp a.txt../COPxxxx/b.txt Cp a.txt../COPxxxx mv../COPxxxx/a.txt../c.txt b.txt a.txt

EXAMPLES Shell.cs.fsu.edu higher directory COP3502_TEMP c.txt A B C a.txtb.txt shankar home directory

EXAMPLES Shell.cs.fsu.edu higher directory COP3502_TEMP c.txt A B C a.txt shankar home directory cp ~/COP3502_TEMP/C/c.txt ~/COP3503_TEMP/A/a.txt cp /home/grads/shankar/COP3502_TEMP/A/a.txt /home/grads/shankar/COP3502_TEMP/B

EXAMPLES Shell.cs.fsu.edu higher directory COP3502_TEMP A a.txt shankar home directory cp A/a.txt. cp ~/COP3502_TEMP/A/a.txt. cp /home/grads/shankar/COP3502_TEMP/A/a.txt. a.txt

Unix redirection  ‘>’ redirect output to a new file  An existing file will be deleted and created (overwrite)  ‘>>’ redirect output to a file  Append output to the end of the file if the file exists  Create a new file if the file does not exists

How to use Emacs  Emacs filename  starts emacs  CTRL-X-S  save  CTRL-X-C  exit  CTRL-k  delete a line (after where the cursor is)  CTRL-y  paste the deleted line  CTRL-g  cancel  CTRL-x u  undo

Assignment#3  See handout  Due next class

Syllabus & Schedule

Textbooks  You will need the “The analytical engine” textbook starting from Week4.  You will cover the “Ethics for the information age” textbook in Week13  You will need this textbooks for the extra credits  How to find textbooks?  FSU bookstore  Bills bookstore  Online

Extra credits  Late assignments are not accepted (you will get zero). There will also not be any make-up quizzes.  You can get those points back by doing extra credits  There are four extra credits. Two will replace two of your lowest homework scores. Another two will replace two of your lowest quiz scores.  One extra credit  write a 5 page summary of one chapter in the “Ethics for the information age” textbook  Four extra credits  four chapters with 5 pages each  There will not be any other extra credits

Before we leave  Homework#1 dues tonight: send me an from your CS account  Subject  COP3502: Assignment#1 submission  Body  your full name  Homework#3 dues next class  Get familiar with UNIX and Emacs  Next class:  C, C++, Java