Part I. UNIX Workshop Series: Quick-Start

Similar documents
Mills HPC Tutorial Series. Linux Basics I

Operating System Interaction via bash

Introduction: What is Unix?

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

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

Short Read Sequencing Analysis Workshop

Unix Shells and Other Basic Concepts

Perl and R Scripting for Biologists

5/20/2007. Touring Essential Programs

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

Week 5 Lesson 5 02/28/18

LAB #5 Intro to Linux and Python on ENGR

Command Line Interface The basics

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

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. Examples: OS X and Ubuntu

Introduction to Linux Environment. Yun-Wen Chen

CHE3935. Lecture 1. Introduction to Linux

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

Linux Command Line Primer. By: Scott Marshall

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

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

Unix Tutorial Haverford Astronomy 2014/2015

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

Introduction to Linux Workshop 1

Using WestGrid from the desktop Oct on Access Grid

CS Fundamentals of Programming II Fall Very Basic UNIX

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0

Review of Fundamentals

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

Intel Edison Tutorial: Introduction to Vim 1

Review of Fundamentals. Todd Kelley CST8207 Todd Kelley 1

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

Once you have installed MobaXterm, open MobaXterm. Go to Sessions -> New Session, and click on the SSH icon.

Bok, Jong Soon

Getting Started With UNIX Lab Exercises

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

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

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

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

User Guide Version 2.0

Scripting Languages Course 1. Diana Trandabăț

CS CS Tutorial 2 2 Winter 2018

Computer Networks Vim and Emacs. Seongjin Lee

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

Linux/Cygwin Practice Computer Architecture

The Command Shell. Fundamentals of Computer Science

Learning the vi text editor

15-122: Principles of Imperative Computation

PROGRAMMING PROJECT ONE DEVELOPING A SHELL

Essentials for Scientific Computing: Bash Shell Scripting Day 3

Introduction to the Linux Command Line

Traditional Access Permissions

Lab 2: Linux/Unix shell

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

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server.

Implementation of a simple shell, xssh

Using the Zoo Workstations

Examples: Directory pathname: File pathname: /home/username/ics124/assignments/ /home/username/ops224/assignments/assn1.txt

Introduction to UNIX command-line II

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

INSE Lab 1 Introduction to UNIX Fall 2017

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

Introduction. File System. Note. Achtung!

Unix basics exercise MBV-INFX410

Implementation of a simple shell, xssh

UNIX and Linux Essentials Student Guide

RH033 Red Hat Linux Essentials

CISC 220 fall 2011, set 1: Linux basics

Traditional Access Permissions

CSE 391 Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors

Unix Workshop Aug 2014

Review of Fundamentals. Todd Kelley CST8207 Todd Kelley 1

Introduction to the shell Part II

Introduction to Linux

Using the Command-Line Interface

Unix/Linux: History and Philosophy

Crash Course in Unix. For more info check out the Unix man pages -orhttp:// -or- Unix in a Nutshell (an O Reilly book).

Introduction To Linux

Author A.Kishore/Sachin WinSCP

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

Practical Session 0 Introduction to Linux

Linux Command Line Interface. December 27, 2017

Chapter 02 Linux Installation and Usage

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

Bashed One Too Many Times. Features of the Bash Shell St. Louis Unix Users Group Jeff Muse, Jan 14, 2009

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

CSCI2467: Systems Programming Concepts

Managing Projects with Git

INSTALLING AN SSH / X-WINDOW ENVIRONMENT ON A WINDOWS PC. Nicholas Fitzkee Mississippi State University Updated May 19, 2017

The Directory Structure

CMPS 12A Introduction to Programming Lab Assignment 7

1 Getting Started with Linux.

CSE 390a Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors

Introduction to UNIX Shell Exercises

Principles of Bioinformatics. BIO540/STA569/CSI660 Fall 2010

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

Module 3: Working with C/C++

Intermediate Programming, Spring Misha Kazhdan

Transcription:

Part I UNIX Workshop Series: Quick-Start

Objectives Overview Connecting with ssh Command Window Anatomy Command Structure Command Examples Getting Help Files and Directories Wildcards, Redirection and Pipe Create and edit files

Overview

Connecting with ssh Open a Terminal program Mac: Applications > Utilities > Terminal ssh Y username@centos.css.udel.edu Linux: In local shell ssh Y username@centos.css.udel.edu Windows: Start Xming and PuTTY Create a saved session for the remote host name centos.css.udel.edu using username

Connecting with ssh First time you connect

Unix Basics Multi-user Case-sensitive Bash shell, command-line Commands

Command Window Anatomy Title bar Click in the title bar to bring the window to the front and make it active.

Command Window Anatomy Login banner Appears as the first line of a login shell.

Command Window Anatomy Prompts Appears at the beginning of a line and usually ends in $.

Command Window Anatomy Command input Place to type commands, which may have options and/or arguments.

Command Window Anatomy Command output Place for command response, which may be many lines long.

Command Window Anatomy Input cursor Typed text will appear at the cursor location.

Command Window Anatomy Scroll Bar Will appear as needed when there are more lines than fit in the window.

Command Window Anatomy Resize Handle Use the mouse to change the window size from the default 80x24.

Command Structure command [arguments] Commands are made up of the actual command and its arguments. command -options [arguments] The arguments are further broken down into the command options which are single letters prefixed by a - and other arguments that identify data for the command.

Basic Command Examples

Advanced Command Examples

Command Input Keys Summary At the cursor location use A return delete Tab to insert a character. to enter the command. to erase character to left. to move to the left or right. to retrieve previous command. for command line completion.

Command Input Keys Summary Control control C C or CTRL-c or just C-c use the control key as a shift Control U control U or CTRL-u or just C-u use the control key as a shift Control control D D or CTRL-d or just C-d use the control key as a shift

Command Output Summary Lines longer then the column width are wrapped. Use the mouse in the resize handle to increase the width of the screen and unwrap the lines. Lines are scrolled off the top and the prompt will appear at the bottom of the screen. Use the mouse in the scroll bar to see lines that have scrolled off the screen.

Getting Help man command man is a command that formats and displays on-line manual pages for command. info [subject] info formats and displays online documents that are easily searchable. apropos keyword apropos searches the whatis database for commands containing the keyword

Getting Help man bash

Getting Help info bash

Getting Help: Info Keys To read linearly through all sections delete H L Q back up after SPC h special link to help. l return from help link. q to quit.

Getting Help: Info Keys esc tab return tab M L Q Jump to next link or cross reference. follow the link at the cursor. back up to previous link. m to go to the menu. l return from link. q to quit.

Getting Help apropos bash

Files and Directories Files Data in UNIX is stored in files. Directories Files are organized hierarchically into directories. Top-level directory is called root represented as a slash (/). Every file (and directory) is listed and separated by a slash (/).

Files and Directories The UNIX file system is like an inverted tree. root / home/its/ug1/ee51vn/report.

Working with Files

Working with Files

Working with Directories

Working with Directories: Home (~) and Wildcards

Working with Directories

Working with Directories and Files: Wildcards

Creating Files: Redirection (STDOUT) ^D (control d for EOF)

Creating Files: Redirection

Creating Files: Append and Pipe ^D (control d to stop)

Creating Files: Redirection (STDIN) and Pipe

Editing Files The VIM editor has two modes: 1. Command: interprets a letter or sequence of letters as a command. 2. Insert: puts anything typed into the file. The ESC key ends insert mode and returns you to command mode. Command line entry at the bottom of the screen appears when the command : is typed. VIM starts up in command mode.

VIM Tutor: Getting Started

VIM tutor: Getting Started

Resources Unix Tutorial for Beginners http://info.ee.surrey.ac.uk/teaching/unix/ VTC (Unix Shell Fundamentals) need to request an account http://www.udel.edu/it/learnit/course/vtccom.html VIM Tutor (vimtutor) Linux vi and vim editor: Tutorial and advanced features http://www.yolinux.com/tutorials/linuxtutorialadva nced_vi.html Graphical vi-vim Cheat Sheet and Tutorial http://www.viemu.com/a_vi_vim_graphical_cheat_sheet _tutorial.html