Introduction To Linux. Rob Thomas - ACRC

Similar documents
Introduction to Linux

Introduction: What is Unix?

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

Perl and R Scripting for Biologists

Computer Systems and Architecture

Recap From Last Time:

BGGN 213 Working with UNIX Barry Grant

Introduction To. Barry Grant

Linux Essentials Objectives Topics:

client X11 Linux workstation

Prerequisites: General computing knowledge and experience. No prior knowledge with Linux is required. Supported Distributions:

Chapter-3. Introduction to Unix: Fundamental Commands

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.

CS 460 Linux Tutorial

Introduction to Unix: Fundamental Commands

Unix Tools / Command Line

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

Introduction to UNIX command-line II

A Brief Introduction to the Linux Shell for Data Science

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs

Introduction of Linux

Unzip command in unix

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

UNIX. The Very 10 Short Howto for beginners. Soon-Hyung Yook. March 27, Soon-Hyung Yook UNIX March 27, / 29

Linux Fundamentals (L-120)

Computer Systems and Architecture

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

Open Source Computational Fluid Dynamics

Prerequisites: Students should be comfortable with computers. No familiarity with Linux or other Unix operating systems is required.

LINUX FUNDAMENTALS. Supported Distributions: Red Hat Enterprise Linux 6 SUSE Linux Enterprise 11 Ubuntu LTS. Recommended Class Length: 5 days

Introduction to Linux

Chap2: Operating-System Structures

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

Introduction to UNIX/Linux

Introduction to Linux

The Unix Family. Linux 101. GNU/Linux distributions. Even more. MULTICS MIT/GE/Bell Labs. UNIX AT&T (Bell Labs) Mach, Carnegie Mellon

Introduction to Linux. Roman Cheplyaka

EECS 470 Lab 5. Linux Shell Scripting. Friday, 1 st February, 2018

Linux Command Line Primer. By: Scott Marshall

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.

Common File System Commands

Virtual Machine. Linux flavor : Debian. Everything (except slides) preinstalled for you.

Linux Essentials. Smith, Roderick W. Table of Contents ISBN-13: Introduction xvii. Chapter 1 Selecting an Operating System 1

Introduction to Linux Organizing Files

Shell Programming Systems Skills in C and Unix

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

Introduction to UNIX command-line

Introduction To. Barry Grant

Introduction. File System. Note. Achtung!

Unix as a Platform Exercises + Solutions. Course Code: OS 01 UNXPLAT

The student will have the essential skills needed to be proficient at the Unix or Linux command line.

UNIX, GNU/Linux and simple tools for data manipulation

Introduction to the shell Part II

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

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

The Shell. EOAS Software Carpentry Workshop. September 20th, 2016

LINUX FUNDAMENTALS (5 Day)

Chapter 1 - Introduction. September 8, 2016

CSC209H Lecture 1. Dan Zingaro. January 7, 2015

QUESTION BANK ON UNIX & SHELL PROGRAMMING-502 (CORE PAPER-2)

The Unix Shell. Pipes and Filters

Utilities. September 8, 2015

Scripting Languages Course 1. Diana Trandabăț

Introduction to Linux Workshop 1

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

Recap From Last Time: Setup Checklist BGGN 213. Todays Menu. Introduction to UNIX.

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

5/20/2007. Touring Essential Programs

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

Linux & Shell Programming 2014

Unix Workshop Aug 2014

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

CS370 Operating Systems

Essential Unix and Linux! Perl for Bioinformatics, ! F. Pineda

Linux for Beginners. Windows users should download putty or bitvise:

Introduction to Linux (and the terminal)

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

Linux Introduction to Linux

Linux Command Line Interface. December 27, 2017

Essentials for Scientific Computing: Bash Shell Scripting Day 3

Introduction to Linux

Mineração de Dados Aplicada

CSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes

Lecture # 2 Introduction to UNIX (Part 2)

CS Fundamentals of Programming II Fall Very Basic UNIX

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

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

CS197U: A Hands on Introduction to Unix

Lab Working with Linux Command Line

Introduction to the Linux Command Line

GNU/Linux Course Lesson 1. Puria Nafisi

CENG 334 Computer Networks. Laboratory I Linux Tutorial

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.

Introduction to the Linux Command Line. Ken Weiss HITS Computational Research Consulting Division

TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103

EECS 2031E. Software Tools Prof. Mokhtar Aboelaze

Introduction to UNIX. Introduction. Processes. ps command. The File System. Directory Structure. UNIX is an operating system (OS).

Introduction to UNIX. CSE 2031 Fall November 5, 2012

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

Transcription:

Introduction To Linux Rob Thomas - ACRC

What Is Linux A free Operating System based on UNIX (TM) An operating system originating at Bell Labs. circa 1969 in the USA More of this later...

Why Linux? Free One OS from Desktop -> Supercomputer Flexible Stable

Distributions AKA Distros Linux == (Kernel + Utilities + GUI) Many versions of each. Moving target

User Distributions Fast Moving Latest & Greatest Features Ubuntu Fedora Mint Debian Testing.

Enterprise Distributions Slower Moving Stable with long support period. New release every >= 2 years RHEL/CentOS Ubuntu LTS Debian Stable...

Linux Philosophy Kit of parts One small thing does one thing well Small utilities can be joined together to perform more complicated tasks.

Bits & Pieces

At First... $ ls wc -l

But Later.. $ tr -cs A-Za-z '\n' tr A-Z a-z sort uniq -c sort -rn sed ${1}q

User Interface Originally command line based GUIs came along later Modern linux attempts simplicity of Mac/Windows (Ubuntu Unity) Command line is extremely powerful but: With great power comes great responsibility.

Onward We will be concentrating on command line use of Linux. Unix/Linux has always encouraged reuse of existing utilities etc.. With this in mind, this workshop s origins are a guide produced by the University of Surrey. http://www.ee.surrey.ac.uk/teaching/unix/

Logging On We ll be working on the HPC (Blue Crystal) Start Putty Log in to bluecrystalp3.acrc.bris.ac.uk And off we go.

Files & Directories Changing to a different Directory (cd) The directories. and.. Pathnames & / Home directories Listing files and directories (ls) Making Directories (mkdir)

File manipulation Copying Files (cp) Moving Files (mv) Removing Files and directories (rm) Displaying the contents of a file on the screen (cat, less) Searching the contents of a file (grep)

Filenames Wildcards? - Any Character * - More Than One Character Filename Conventions (e.g..c) Getting Help (man, apropos)

Redirection Redirecting the Output (>, >>) Redirecting the Input (<) Pipes ( )

Doug McIlroy s Word Frequency Pipeline If you are not a UNIX adept, you may need a little explanation, but not much, to understand this pipeline of processes. The plan is easy: tr -cs A-Za-z '\n' tr A-Z a-z sort uniq -c sort -rn Make one-word lines by transliterating the complement (-c) of the alphabet into new lines (note the quoted newline), and squeezing out (-s) multiple newlines. Transliterate uppercase to lowercase. Sort to bring identical words together. Replace each run of duplicate words with a single representative and include a count (-c). Sort in reverse (-r) numeric (-n) order.

File Permissions Permissions Displaying Permissions (ls -l) Understanding Permissions User, Group, Other Changing Permissions (chmod)

Processes and Jobs What is a Process? Listing Processes (ps) Background Process Killing a process (kill)

The Shell All our commands have been run by the Shell (bash). Handles Redirection Wildcards Backgrounding

Variables The Shell is a full programming language Conditionals, Loops, Functions Above covered in a forthcoming course Variables Built in and user Normal - This shell Environment - All processes started from this shell.

Miscellany Disk Space (quota, du, df) Comparison (diff, cmp) Compression (gzip, zcat) Searching (find)

Installing Software Packages Normally installed by an administrator using a package manager yum for Redhat and Derivatives e.g. CentOS apt for Debian and Derivatives e.g. Ubuntu

Building Software Packages Sometimes a package needs to be built from source Not in any repos Latest and greatest required No root (admin) access.

Build process Downloading (wget) Extracting (tar) Configuring (configure) Building (make)

Running the Newly Built Package Run using path name PATH Environment Variable Startup files

Any Questions? Can we go home now?