COSC UNIX. Textbook. Grading Scheme

Similar documents
Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description:

Unix/Linux Operating System. Introduction to Computational Statistics STAT 598G, Fall 2011

Getting Started. Running Utilities. Shells. Special Characters. Special Characters. Chapter 2 Unix Utilities for non-programmers

CS CS Tutorial 2 2 Winter 2018

CSCI 2132 Software Development. Lecture 3: Unix Shells and Other Basic Concepts

CENG 334 Computer Networks. Laboratory I Linux Tutorial

Introduction: What is Unix?

CISC 220 fall 2011, set 1: Linux basics

CS 307: UNIX PROGRAMMING ENVIRONMENT KATAS FOR EXAM 1

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80

Lab 1 Introduction to UNIX and C

Laboratory 1 Semester 1 11/12

EECS2301. Lab 1 Winter 2016

Operating Systems and Using Linux. Topics What is an Operating System? Linux Overview Frequently Used Linux Commands

Session 1: Accessing MUGrid and Command Line Basics

C++ Programming on Linux

Short Read Sequencing Analysis Workshop

CSE 390a Lecture 1. introduction to Linux/Unix environment

Lab Working with Linux Command Line

History. Terminology. Opening a Terminal. Introduction to the Unix command line GNOME

User Guide Version 2.0

CSCI 2132 Software Development. Lecture 4: Files and Directories

Linux Essentials Objectives Topics:

Introduction to Linux Workshop 1

On successful completion of the course, the students will be able to attain CO: Experiment linked. 2 to 4. 5 to 8. 9 to 12.

Linux/Cygwin Practice Computer Architecture

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

The Unix Shell. Pipes and Filters

Introduction to Supercomputing

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

CS 3410 Intro to Unix, shell commands, etc... (slides from Hussam Abu-Libdeh and David Slater)

Introduction to the UNIX command line

Linux Introduction Martin Dahlö

Introduction to Linux Part 1. Anita Orendt and Wim Cardoen Center for High Performance Computing 24 May 2017

Chapter-3. Introduction to Unix: Fundamental Commands

Helpful Tips for Labs. CS140, Spring 2015

Tutorial 1: Unix Basics

Unix Tutorial Haverford Astronomy 2014/2015

CSE 391 Lecture 1. introduction to Linux/Unix environment

Working With Unix. Scott A. Handley* September 15, *Adapted from UNIX introduction material created by Dr. Julian Catchen

Introduction to Linux

Getting Started With UNIX Lab Exercises

This lab exercise is to be submitted at the end of the lab session! passwd [That is the command to change your current password to a new one]

Unix tutorial. Thanks to Michael Wood-Vasey (UPitt) and Beth Willman (Haverford) for providing Unix tutorials on which this is based.

Mills HPC Tutorial Series. Linux Basics I

Linux Introduction Martin Dahlö Valentin Georgiev

AMS 200: Working on Linux/Unix Machines

Lab 1 Introduction to UNIX and C

UoW HPC Quick Start. Information Technology Services University of Wollongong. ( Last updated on October 10, 2011)

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo

Introduction to Linux Environment. Yun-Wen Chen

2) clear :- It clears the terminal screen. Syntax :- clear

Unix Basics. Systems Programming Concepts

CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

Operating Systems. Copyleft 2005, Binnur Kurt

Brief Linux Presentation. July 10th, 2006 Elan Borenstein

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

COWLEY COLLEGE & Area Vocational Technical School

CS 261 Recitation 1 Compiling C on UNIX

Unix Filesystem. January 26 th, 2004 Class Meeting 2

EKT332 COMPUTER NETWORK

PROGRAMME: COMPUTER SCIENCE & ENGINEERING COURSE: Operating System Lab SEMESTER: VI CREDITS: 2

Oregon State University School of Electrical Engineering and Computer Science. CS 261 Recitation 1. Spring 2011

commandname flags arguments

Part I. Introduction to Linux

Introduction to Linux

Introduction to Unix: Fundamental Commands

Outline. Structure of a UNIX command

LAB 0: LINUX COMMAND LINE AND SVN

EECS Software Tools. Lab 2 Tutorial: Introduction to UNIX/Linux. Tilemachos Pechlivanoglou

Essential Linux Shell Commands

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

The Directory Structure

CSC209H Lecture 1. Dan Zingaro. January 7, 2015

Linux Bootcamp Fall 2015

Linux Exercise. pwd answer: We call this directory (into which you get when you log in) your home directory.

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

Introduction to Linux. Fundamentals of Computer Science

Introduction To. Barry Grant

CSE 391 Lecture 1. introduction to Linux/Unix environment

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Linux Command Line Primer. By: Scott Marshall

Introduction to Linux

-1- csh cd. cd alias!! ; set prompt=" pwd % " 16 cd. 17 cd.. 18 his /home% set prompt. alias. yasuoka : root :

Chap2: Operating-System Structures

Linux at the Command Line Don Johnson of BU IS&T

CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.)

Linux Tutorial. Ken-ichi Nomura. 3 rd Magics Materials Software Workshop. Gaithersburg Marriott Washingtonian Center November 11-13, 2018

LAB #5 Intro to Linux and Python on ENGR

EECS 2031E. Software Tools Prof. Mokhtar Aboelaze

Unix L555. Dept. of Linguistics, Indiana University Fall Unix. Unix. Directories. Files. Useful Commands. Permissions. tar.

Introduction to Unix The Windows User perspective. Wes Frisby Kyle Horne Todd Johansen

CS Fundamentals of Programming II Fall Very Basic UNIX

Unix Introduction to UNIX

Connecting to ICS Server, Shell, Vim CS238P Operating Systems fall 18

Lecture 1. A. Sahu and S. V. Rao. Indian Institute of Technology Guwahati

Introduction To Linux. Rob Thomas - ACRC

Transcription:

COSC 2306 - UNIX Education has failed in a very serious way to convey the most important lesson science can teach: skepticism. - David Suzuki Fall 2008 Aaron Langille Textbook Linux for Programmers and Users Graham Glass and King Ables Website: www.cs.laurentian.ca/aaron/cosc2306 Webct.laurentian.ca Office: FA364 Grading Scheme Assignments: 6 @ 5% each = 30% Mini Tests: 5 @ 5% each = 25% Final Exam: 1 @ 45% (must pass exam!) 1

Policies General Topics You should be aware of and familiar with the following: LU Academic Dishonesty http://laurentian.ca/vpacademic/policies/dishonesty.pdf Do not copy From each other From another un-cited source From the slides Beware of Wikipedia CS Regulations for Computer Facilities and Services http://www.laurentian.ca/laurentian/home/departments/ma th+and+computer+science/regulations.htm See: www.cs.laurentian.ca/aaron/cosc2306 See: Outline posted on WebCT Make sure you can log into WebCT and are registered in COSC2306 Questions to answer: Operating System Linux is? UNIX is? Why learn Linux? Why use Linux (what is it good at)? Linux is an operating system. Provides easy, efficient, fair, orderly and secure access to hardware and software resources. Serves as the interface between the user and the hardware. CUI Character User Interface GUI Graphical User Interface Ambiguity of the term OS 2

General Terms/Concepts Current (common) Linux/UNIX Features File Program Process Ownership Hierarchical Directory Structure Sharing Resources Communication (pipes) Multi-user (massively) Supports the creation modification and destruction of programs, processes and files. Directory hierarchy that provides location of processes and files. Large number of standard utilities. Allows programmers to access operating system features through standardized system calls. Portable and available on many hardware platforms. Standard and open system (typically). Linux and UNIX Philosophy Accessing a Linux System Solve complex problems using simple (single purpose) utilities. How? Pipes. Ask for help. Write a new simple (single purpose) utility. Make it available to others. Last resort: Write a complex multi-function program. PC Network Remote Server Local Account based unique username/password When you log in a shell is created for you. Logging Out: Simply type exit or CTRL-D (^D) from the command line. 3

Running a Utility / Command Syntax of a UNIX/Linux Command To run a utility you simply type its name and hit Enter Must be in your PATH and be executable Or Use the full path if it is not in your PATH. General syntax: $ command [[-]option(s)] [option argument(s)] [command argument(s)] command : The name of the command or utility. ls, man, cat, mv options: Change the behaviour of the command basic. ls l vs. ls May or may not be preceded by -. option arguments: Change the behaviour of an option. tail c 5 filename vs. tail c 15 filename command arguments: what is affected by the command. Usually files or the output of another piped command. whoami and what am I doing here? man - Using man to Get Help How to get started on UNIX: Basic commands Figuring out who we are and where we are. whoami, uname, hostname, who, date Getting help with commands. man Navigating directories cd, pwd Creating and manipulating files and directories touch, cp, mv, rm, rmdir, mkdir Listing files and their properties. ls, file Displaying the contents of files cat, tail, head, more, wc KNOW these commands and their common switches. The man (manual) utility accesses the online help pages for a particular utility Eg: man ls Chapters man # command Try man man for more information 4

Special Characters Metacharacters : stty a (to list) ^ denotes the ctrl key Pipes 1. Input 1 Output 1 Command 1 Command 2 Optional Input 2 Output 2 2b. 3. In particular: intr = ^C terminating a command susp = ^Z suspend command execution eof = ^D end of input erase = ^? terminal character erase 1. Input 1 Optional Command 1 Command 2 Output 2 3. who wc -l Doing your assignments and practicing Things to do: Use shell.cs.laurentian.ca (via putty). Or locally in the Linux Lab (FA358) Log in using your Novell username and password. Live Boot CDs Your own Linux system. Read Chapter 1. Login (either remotely or in the lab) Verify username and password. NOTE: Your assignments must work on shell.cs.laurentian.ca in order to be considered correct. 5