Linux Introduction Martin Dahlö

Similar documents
Linux Introduction Martin Dahlö Valentin Georgiev

UPPMAX Introduction Martin Dahlö Valentin Georgiev

Introduction to the Linux Command Line

Lab 1 Introduction to UNIX and C

User Guide Version 2.0

C++ Programming on Linux

COSC UNIX. Textbook. Grading Scheme

CENG 334 Computer Networks. Laboratory I Linux Tutorial

Linux Bootcamp Fall 2015

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

Introduction to Linux Environment. Yun-Wen Chen

Introduction to Linux for BlueBEAR. January

CS CS Tutorial 2 2 Winter 2018

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

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

Linux Systems Administration Getting Started with Linux

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

Unix Workshop Aug 2014

CS 261 Recitation 1 Compiling C on UNIX

Session 1: Accessing MUGrid and Command Line Basics

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

Lab Working with Linux Command Line

Command Line Interface The basics

Linux/Cygwin Practice Computer Architecture

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

Bash for SLURM. Author: Wesley Schaal Pharmaceutical Bioinformatics, Uppsala University

Introduction: What is Unix?

Getting Started With UNIX Lab Exercises

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

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

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

Intro to Linux. this will open up a new terminal window for you is super convenient on the computers in the lab

Chapter 4. Unix Tutorial. Unix Shell

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0

AMS 200: Working on Linux/Unix Machines

Linux Command Line Primer. By: Scott Marshall

Introduction to UNIX command-line

An Introduction to Cluster Computing Using Newton

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

You should see something like this, called the prompt :

Introduction to the UNIX command line

CSCI 2132 Software Development. Lecture 4: Files and Directories

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

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

Lab 1: Introduction to C, ASCII ART & the Linux Command Line

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

Operating System Interaction via bash

Mills HPC Tutorial Series. Linux Basics I

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

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

STA 303 / 1002 Using SAS on CQUEST

Lecture 01 - Working with Linux Servers and Git

COMS 6100 Class Notes 3

CHE3935. Lecture 1. Introduction to Linux

When you first log in, you will be placed in your home directory. To see what this directory is named, type:

LOG ON TO LINUX AND LOG OFF

Introduction of Linux

Programming Studio #1 ECE 190

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

Intro to Linux & Command Line

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

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

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

CHEM5302 Fall 2015: Introduction to Maestro and the command line

Introduction to Unix: Fundamental Commands

bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs

CS 460 Linux Tutorial

Getting Started with UNIX

Users Manual. OP5 System 2.4. OP5 AB. Page 1 of 6

CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso

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

Introduction to Linux Workshop 1

The Unix Shell. Pipes and Filters

bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs

Lab 1 Introduction to UNIX and C

Perl and R Scripting for Biologists

CS 143A. Principles of Operating Systems. Instructor : Prof. Anton Burtsev

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

Advanced Linux Commands & Shell Scripting

Introduction to Linux

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

A Brief Introduction to the Linux Shell for Data Science

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

Essential Linux Shell Commands

Lecture 12: Shell Scripting, SSH, Super-Computing. LING 1340/2340: Data Science for Linguists Na-Rae Han

Linux hep.wisc.edu

SECTION 2: CODE REASONING + PROGRAMMING TOOLS. slides borrowed and adapted from Alex Mariakis and CSE 390a

Lab 1 1 Due Wed., 2 Sept. 2015

Introduction to Linux

Introduction to Linux/Unix. Xiaoge Wang, ICER Jan. 14, 2016

The Linux Command Line & Shell Scripting

HPC Introductory Course - Exercises

Chap2: Operating-System Structures

Introduction to UNIX command-line II

Short Read Sequencing Analysis Workshop

sftp - secure file transfer program - how to transfer files to and from nrs-labs

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

Chapter-3. Introduction to Unix: Fundamental Commands

LAB #5 Intro to Linux and Python on ENGR

Transcription:

Linux Introduction 160418 Martin Dahlö martin.dahlo@scilifelab.uu.se

Linux Introduction You will not learn this now. Google it or look at lecture slides when you need it. Practice makes perfect :)

UPPMAX Uppsala Multidisciplinary Center for Advanced Computational Science (Uppsala supercomupter center) Clusters Milou Tintin Uses Linux

UPPMAX Uppsala Multidisciplinary Center for Advanced Computational Science (Uppsala supercomupter center) Clusters Milou Tintin Uses Linux

Why Text? UPPMAX is only accessible through SSH (Secure Shell) for security and speed Command Line Interface (CLI) Scary at first, but wonderful to work with Automation and scripts Super computing not possible without it

Navigation Commands

Navigation Commands ls list the content of a directory

Navigation Commands ls list the content of a directory

Navigation Commands ls list the content of a directory

Navigation Commands ls list the content of a directory

Navigation Commands cd change working directory cd <directory name> = down cd.. = up

Navigation Commands cd change working directory cd <directory name> = down cd.. = up

Navigation Commands cd change working directory cd <directory name> = down cd.. = up

Navigation Commands cd change working directory cd <directory name> = down cd.. = up

Navigation Commands pwd print working directory

Navigation Commands pwd print working directory

Navigation Commands Summary ls list content of directroy cd change working directory pwd print working directory

Interaction Commands Copy a file cp <name of original> <name of copy>

Interaction Commands Copy a file cp <name of original> <name of copy> cp mytext.txt copy_of_my_text.txt

Interaction Commands Copy a file cp <name of original> <name of copy> cp /home/dahlo/test.txt../../mydocs/

Interaction Commands Move a file mv <name of original> <name of copy> mv mytext.txt copy_of_my_text.txt

Interaction Commands Move a file mv <name of original> <name of copy> mv /home/dahlo/test.txt../../mydocs/

Interaction Commands View content of a file less <file name> less readme.txt

Interaction Commands View content of a file less <file name> less readme.txt

Interaction Commands View content of a file less <file name> less readme.txt (q to exit)

Head View the first rows of a file head <filename>

Head View the first rows of a file head <filename>

Head View the first rows of a file head <filename>

Head View the first rows of a file head <filename>

Head View the first n rows of a file head -n <nr of lines> <filename>

Tail View the last rows of a file tail <filename>

Tail View the last n rows of a file tail -n <nr of lines> <filename>

Interaction Commands Edit content of a file nano <file name> nano readme.txt

Interaction Commands Edit content of a file nano <file name> nano readme.txt ^ = ctrl

Interaction Commands Remove a file rm <file name> Ex. rm readme.txt rm../../../file1.txt rm /home/dahlo/test.txt There is no trash bin in Linux! Gone is gone..

Wildcards * Works with most Linux commands

Wildcards * Works with most Linux commands

Wildcards * Works with most Linux commands

Wildcards * Works with most Linux commands Ex: cp *.txt directory1/

Wildcards * Works with most Linux commands Ex: rm *.tmp

Good to Know Commands TAB COMPLETION Never write a path or filename without it!

Good to Know Commands TAB COMPLETION Never write a path or filename without it!

Good to Know Commands TAB COMPLETION Never write a path or filename without it!

Good to Know Commands TAB COMPLETION Never write a path or filename without it!

Good to Know Commands TAB COMPLETION Never write a path or filename without it!

Good to Know Commands How much is the computer working? top

Good to Know Commands Instructions how to use programs Easy to forget syntax Manual pages man <program name> Ex. man ls (q to quit)

Good to Know Commands How do I log out? exit Exits only the current terminal

Good to Know Commands Summary cp copy a file mv move a file less view a file nano view and edit a file rm remove a file head / tail wildcards tab completion use it top see active processes man manual pages exit Log out curren terminal

Connect to UPPMAX Secure SHell connection (ssh) ssh -Y <username>@milou.uppmax.uu.se Ex: ssh -Y dahlo@milou.uppmax.uu.se Terminal in Linux and OSX MobaXterm in Windows (http://mobaxterm.mobatek.net/) Putty also alternative, but not as good..

Reservations Special for this course salloc -A g2016008 -t 07:00:00 -p core -n 1 --no-shell --reservation=g2016008_1 & --reservation will be proj id and day Will start a node which you have access to Check which node with squeue -u username ssh to given node, from within UPPMAX

Laboratory time!