Introduction to Linux Spring 2014, Section 02, Lecture 3 Jason Tang

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

CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso

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

CMSC 201 Spring 2018 Lab 01 Hello World

Working with Basic Linux. Daniel Balagué

Linux Command Line Primer. By: Scott Marshall

Chapter 4. Unix Tutorial. Unix Shell

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

Unix Tutorial Haverford Astronomy 2014/2015

CSE 391 Lecture 1. introduction to Linux/Unix environment

CMSC 201 Spring 2017 Lab 01 Hello World

: the User (owner) for this file (your cruzid, when you do it) Position: directory flag. read Group.

CSE 391 Lecture 1. introduction to Linux/Unix environment

Introduction to Unix: Fundamental Commands

Operating Systems. Copyleft 2005, Binnur Kurt

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

Temple University Computer Science Programming Under the Linux Operating System January 2017

5/8/2012. Creating and Changing Directories Chapter 7

1. Open VirtualBox and start your linux VM. Boot the machine and log in with the user account you created in Lab #1. Open the Terminal application.

Unix background. COMP9021, Session 2, Using the Terminal application, open an x-term window. You type your commands in an x-term window.

Operating System Interaction via bash

Linux hep.wisc.edu

You should see something like this, called the prompt :

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

Introduction of Linux

Introduction to Linux

A Brief Introduction to the Linux Shell for Data Science

Short Read Sequencing Analysis Workshop

Session 1: Accessing MUGrid and Command Line Basics

Chapter-3. Introduction to Unix: Fundamental Commands

Linux File System and Basic Commands

Linux Pathnames and Directories

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage

Intro to Linux & Command Line

Introduction to Unix and Linux. Workshop 1: Directories and Files

Table Of Contents. 1. Zoo Information a. Logging in b. Transferring files 2. Unix Basics 3. Homework Commands

CSC111 Computer Science II

Introduction to Linux and Supercomputers

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

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

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

Mills HPC Tutorial Series. Linux Basics I

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

Bioinformatics? Reads, assembly, annotation, comparative genomics and a bit of phylogeny.

Some Linux (Unix) Commands that might help you in ENSC351

Getting Started with Command Prompts

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

Principles of Bioinformatics. BIO540/STA569/CSI660 Fall 2010

Beyond this course. Machine code. Readings: CP:AMA 2.1, 15.4

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages

Introduction to Linux

Introduction to Linux

The Command Line. Matthew Bender. September 10, CMSC Command Line Workshop. Matthew Bender (2015) The Command Line September 10, / 25

CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28) First Name: Last Name: NetID:

Command Line Interface The basics

CSCI 2132 Software Development. Lecture 4: Files and Directories

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

Introduction to the Linux Command Line

CS Fundamentals of Programming II Fall Very Basic UNIX

DATA 301 Introduction to Data Analytics Command Line. Dr. Ramon Lawrence University of British Columbia Okanagan

Why learn the Command Line? The command line is the text interface to the computer. DATA 301 Introduction to Data Analytics Command Line

Scripting Languages Course 1. Diana Trandabăț

Introduction to Linux

Using the Zoo Workstations

CSC 112 Lab 1: Introduction to Unix and C++ Fall 2009

Introduction to Linux Basics

Physics REU Unix Tutorial

About the Presentations

Adafruit's Raspberry Pi Lesson 6. Using SSH

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Elementary Computing CSC M. Cheng, Computer Science 1

STA 303 / 1002 Using SAS on CQUEST

Elementary Computing CSC 100. M. Cheng, Computer Science

EKT332 COMPUTER NETWORK

1 Getting Started with Linux.

Unit 10. Linux Operating System

CpSc 1111 Lab 1 Introduction to Unix Systems, Editors, and C

Getting Started With UNIX Lab Exercises

Lecture 3: The UNIX Style

HOW TO Use Linux, Text-Edit, Compile, and More

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

Lab Working with Linux Command Line

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

Essential Linux Shell Commands

CSC209. Software Tools and Systems Programming.

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys

Reading and manipulating files

Unit 13. Linux Operating System Debugging Programs

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory

Chap2: Operating-System Structures

Introduction to Linux

A Brief Introduction to the Command Line. Hautahi Kingi

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

Unix/Linux Primer. Taras V. Pogorelov and Mike Hallock School of Chemical Sciences, University of Illinois

UNLV Computer Science Department CS 135 Lab Manual

Using IDLE for

Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12)

Oxford University Computing Services. Getting Started with Unix

Parallel Programming Pre-Assignment. Setting up the Software Environment

Guided Tour (Version 3.3) By Steven Castellucci as Modified by Brandon Haworth

Transcription:

Introduction to Linux Spring 2014, Section 02, Lecture 3 Jason Tang

Topics What is an Operating System Overview of Linux Linux commands Shell Submit system

What is an Operating System? Special type of computer program Controls CPU, I/O, memory, and other devices Controls how other programs work together First program run when computer turns on Often referred to as simply OS

Consumer Operating Systems Microsoft: Windows Vista, Windows 7, Windows 8 Apple: Mac OS X 10.7, 10.8, Mavericks ios 5, 6, 7 Linux: 2.6, 3.10, 3.13 Android Ice Cream Sandwich, Jelly Bean, Kit Kat

What does an OS do? Provides a uniform user interface Abstracts hardware from user [Almost] same user interface regardless of iphone or ipad Handles user interactions Mouse click, keyboard press, touch, gesture, etc.

What else does an OS do? Presents a uniform interface to software Hardware abstraction layer (HAL) Program written for Windows 7 will [usually] run same on a Dell laptop versus a HP desktop Note: same hardware can run different OSs (though still only one at a time [mostly true]) Lab computer runs Windows or Linux

Linux command line Command line when logging in to Linux via Terminal/TeraTerm Pro/Putty User prompt is shown, something that looks like: Name of Linux server you are on; linux1, linux2, etc. are linux1[1]% _ Number in brackets is the number of command you are about to run

Files In Linux, everything is a file Programs, documents, MP3s, movies, and more Consists of a sequence of bytes Files that contain other files are directories (aka folders)

Linux Filenames In Linux, all files must have a filename Filenames can have spaces, hyphens, underscores, most other special symbols For this class, just use letters, numbers, underscores ( _ ), and/or dot (. ) characters Linux filenames are case sensitive

Directories Directories contain zero or more other files Ergo, directories may contain other subdirectories Directories organized hierarchical in tree Parent directory is holder of subdirectories Use Linux command ls (stands for list ) to display contents of your directory Files within same directory must have unique

Creating Files Use a text editor to create human-readable files For this class, use the nano program to create and modify files (Other text editors exist; talk to me if interested) Usage: nano filename This is a command line argument

Manipulating Files Use cp (stands for copy) to duplicate a file Use rm (stands for remove) to permanently delete a file Need help? Look up things via man (stands for manual) like so: man cp Most commands have a --help argument Arguments that begin with a dash are called flags

Shell Program in to which you are typing commands (ls, cp, exit, etc.) When you log in to Linux, it starts a shell for you Different shells exist Can be programmed to do complex tasks

Subdirectories Your home directory is your initial location after log in Current directory is where you are currently located Use command cd (stands for change directory) to enter a subdirectory Use command cd.. to go up a directory That s c, d, a space, then two dots in a row

Paths Use command pwd (stands for present working directory) to display name of your current directory Forward-slash symbol ( / ) separates components of a path Topmost directory, simply /, is root directory Each running program has a current working directory

Common Linux Shell Commands ls - list files cp - copy file rm - remove file man - look up something in the manual pwd - display present working directory cd - change directory exit - exits shell (and thus logs you off system)

Submit Command Use submit cs104_jtang assignment filename to submit filename for a given assignment Run submitls to view your submission Run submitrm to remove a file from your submission

Practice Using Submit Use nano to create a file named hw0.txt Enter your name, and then the two commands that will remove old files you no longer need Save, then exit Submit this file, then confirm your submission, like so: submit cs104_jtang hw0 hw0.txt submitls cs104_jtang hw0 You earned an extra credit point for today!