No Food or Drink in this room. Logon to Windows machine

Similar documents
Part I. UNIX Workshop Series: Quick-Start

Introduction to Linux Environment. Yun-Wen Chen

Introduction to UNIX command-line II

Introduction to UNIX command-line

Short Read Sequencing Analysis Workshop

CS 460 Linux Tutorial

Introduction to the UNIX command line

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

Introduction to remote command line Linux. Research Computing Team University of Birmingham

commands exercises Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes

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

User Guide Version 2.0

Using Linux as a Virtual Machine

Chapter-3. Introduction to Unix: Fundamental Commands

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

Introduction to the shell Part II

Lecture # 2 Introduction to UNIX (Part 2)

Introduction to Linux Workshop 1

Introduction to Linux. Fundamentals of Computer Science

CS CS Tutorial 2 2 Winter 2018

Introduction: What is Unix?

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0

Cloud Computing and Unix: An Introduction. Dr. Sophie Shaw University of Aberdeen, UK

Linux Survival Guide

Cloud Computing and Unix: An Introduction. Dr. Sophie Shaw University of Aberdeen, UK

Introduction to the Linux Command Line

Unix Essentials. BaRC Hot Topics Bioinformatics and Research Computing Whitehead Institute October 12 th

Computer Systems and Architecture

Useful Unix Commands Cheat Sheet

CSE Linux VM. For Microsoft Windows. Based on opensuse Leap 42.2

Lab Working with Linux Command Line

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

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


Linux command line basics III: piping commands for text processing. Yanbin Yin Fall 2015

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

Introduction to Unix: Fundamental Commands

Tutorial 1: Unix Basics

CMSC 201 Spring 2017 Lab 01 Hello World

Carnegie Mellon. Linux Boot Camp. Jack, Matthew, Nishad, Stanley 6 Sep 2016

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

Helpful Tips for Labs. CS140, Spring 2015

Linux/Cygwin Practice Computer Architecture

LAB #5 Intro to Linux and Python on ENGR

Physics REU Unix Tutorial

Basic Unix Commands. CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang

Network Monitoring & Management. A few Linux basics

Brief Linux Presentation. July 10th, 2006 Elan Borenstein

acmteam/unix.pdf How to manage your account (user ID, password, shell); How to compile C, C++, and Java programs;

Linux command line basics II: downloading data and controlling files. Yanbin Yin

A Brief Introduction to the Linux Shell for Data Science

Mills HPC Tutorial Series. Linux Basics I

Lab 1 Introduction to UNIX and C

Operating Systems. Copyleft 2005, Binnur Kurt

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

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

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

CENG 334 Computer Networks. Laboratory I Linux Tutorial

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Recitation #1 Boot Camp. August 30th, 2016

Shell Programming Overview

Introduction to Linux

Linux & Shell Programming 2014

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

BPPM Patrol Agent Installation Steps on Linux and Automation Integration

LOG ON TO LINUX AND LOG OFF

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

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]

Recitation #1 Unix Boot Camp. August 29th, 2017

LAB #7 Linux Tutorial

NETW 110 Lab 5 Creating and Assigning Users and Groups Page 1

Using UNIX. -rwxr--r-- 1 root sys Sep 5 14:15 good_program

Introduction to Linux

Laboratory 1 Semester 1 11/12

Quick Start Guide. by Burak Himmetoglu. Supercomputing Consultant. Enterprise Technology Services & Center for Scientific Computing

Computer Systems and Architecture


Operating Systems Lab 1 (Users, Groups, and Security)

First-Time Login Procedure on XWin32

When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used:

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

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

CISC 220 fall 2011, set 1: Linux basics

Using WestGrid from the desktop Oct on Access Grid

COSC UNIX. Textbook. Grading Scheme

Read the relevant material in Sobell! If you want to follow along with the examples that follow, and you do, open a Linux terminal.

Introduction to UNIX Command Line

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

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

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

Getting Started with UNIX

Introduction to Linux

Tutorial-1b: The Linux CLI

CMSC 201 Spring 2018 Lab 01 Hello World

Unix Introduction to UNIX

Using.htaccess to Restrict Access to OU Directories

C++ Programming on Linux

Linux Command Line Interface. December 27, 2017

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.

Practical Session 0 Introduction to Linux

Transcription:

While you are waiting No Food or Drink in this room Logon to Windows machine Username/password on right-hand monitor Not the username/password I gave you earlier We will walk through connecting to the workshop Linux machine from Windows

Ask questions at any point Logging onto Sequencing Workshop Linux Machine & Linux Introduction May 18, 2015 Mary Kate Wing University of Michigan Center for Statistical Genetics

Connecting to Workshop Machine PuTTY - connect to Linux machine terminal emulator run commands xming - X11 display server Allows you to open pdfs, etc from putty Instructions at start of each practical So don t worry about memorizing it

Start xming 1. Start->search 2. Type: xmingselect : Xming Nothing will happen, but it is started

Open PuTTY 1. Start->search 2. Type: putty 3. Select : PuTTY This will open a PuTTY Configuration window

PuTTY Enter Host Name: seqshop-server.sph.umich.edu

PuTTY Connection->SSH->X11 Check: Enable X11 forwarding (Allows you to open external windows) Open Click OK if it prompts about a key

Logon to seqshop-server Enter your provided Linux username and password You should now have a terminal on the seqshop-server Linux machine If you ever want/need a 2nd terminal, redo the PuTTY steps Does everyone have a terminal?

Change Your Password passwd enter previous password enter new password re-enter new password

Terminal Basics Command-line prompt You will start in your home directory /net/seqshop-server/home/mktrost (your username instead) ~ Each have your own You have permission to read/write Your inputs & outputs go here How to figure out where you are: pwd /net/seqshop-server/home/mktrost

Directory Contents ls Lists files/sub-directories What do you have in your directory? examples.desktop Personal Genome directory: SampleXX/NA12878 Up-arrow will go to the previous command

Directory/File Permissions ls -l d - directory; - - file r/w/x: read, write, or execute 3 sets of values user/group/everyone USER & GROUP are both set to you Personal Data is read only by you

Looking at a Different Directory Enter the path of the directory you want to look at ls ~mktrost/seqshop/ ls Sample* * is wildcard Does not change you to a different directory Still in same place you were before Check with pwd

Change/Move to New Directory cd Sample* (or cd NA12878) ls We will look at this more later cd takes you back to your home directory

Create New Directory mkdir testdir mkdir -p testdir/dir1/dir2 Create parent directories if they don t exist Do not generate error if directory exists ls testdir ls testdir/dir1 Rename/Move mv testdir testdir1 ls

Up a Directory. - current directory.. - up 1 directory ls cd cd../.. Lists contents of 2 directories up.. Move up 1 directory Move to home directory

Variables Save from typing long path/command In BASH (the shell you are running): export VARNAME=value Allows you to use ${VARNAME} as shorthand Can easily change the value without changing commands Useful for scripts/seqshop copy/paste commands Try it ls $TEST ${TEST} is not set, so is blank, so just lists current directory export TEST=~/testDir1 ls ${TEST} Should see contents of testdir1

Look at a file less Use arrow (up/down/left/right) keys to scroll through file Use space bar to jump down a page -S - prevents line wrap Use q to exit zless - read compressed cat zcat more

Look at parts of a file head - look at start of the file -n K - print first K lines (default 10) -n -K - print all but the last K lines tail - look at end of the file -n K - print last K lines (default 10) -n +K - print starting with the Kth line

Extracting Specific Columns cut - remove sections from each line of files -d DELIM - use DELIM as delimiter rather than TAB -f N1,N2 - print fields N1 & N2 (and lines with no delimiter)

Additional commands Search grep - print lines matching a pattern -v : lines without pattern Word Count wc -l : line count

String commands together - pipe - use output of previous command as input to next command tail -n+300 file head -n 5 Output starting at line 300, but only read 5 lines

String commands together zcat ${OUT}/split/chr22/chr22.filtered. PASS.vcf.gz grep -v "^#" cut -f 7 grep -v "PASS" zcat...: uncompress the zipped VCF ' ' : takes the output of one command and sends it as input to the next grep -v "^#" : exclude any lines that start with "#" cut -f 7 : extract the 7th column grep -v "PASS" : exclude any rows that have a "PASS" in the 7th column

Screen Leave commands running after you logout Start Screen: screen Detach from screen session: Ctrl-a d Logout as normal Resume session later login Resume: screen -r Scroll Scroll: Ctrl-a Esc Exit Scroll: Esc Exit exit

Run Workshop Later Instructions/tutorial data will be on wiki by end of next week wget http://www.sph.umich. edu/csg/mktrost/seqshopexample.tar.gz tar xvf seqshopexample.tar.gz Build C++ make

Useful Links Helpful reference to many tools: http://infoplatter.wordpress. com/2014/04/06/bioinformaticians-pocket-reference/ links to "cheat-sheets", including, Unix, screen, and vi Our wiki with some brief description of how to do some basic commands http://genome.sph.umich.edu/wiki/basic_linux_intro Commands to use screen http://genome.sph.umich. edu/wiki/screen_commands