CSE 391 Editing and Moving Files

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

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

CSE 390a Lecture 3. Multi-user systems; remote login; editors; users/groups; permissions

CSE 351. Introduction & Course Tools

CSE 391 Lecture 1. introduction to Linux/Unix environment

Intro to Linux & Command Line

C++ Programming on Linux

CSE 391 Lecture 1. introduction to Linux/Unix environment

Your departmental website

LAB #5 Intro to Linux and Python on ENGR

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

Lecture 01 - Working with Linux Servers and Git

CSE 390 Lecture 10. Do anything from anywhere tools to free your choice of OS

CSE 390a Lecture 6. bash scripting continued; remote X windows; unix tidbits

Lab 1 Introduction to UNIX and C

CS CS Tutorial 2 2 Winter 2018

CSE 391 Lecture 10. Do anything from anywhere tools to free your choice of OS

CSE 390a Lecture 6. bash scripting continued; remote X windows; unix tidbits

Ftp Command Line Commands Linux Example Windows Putty

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

Linux for Biologists Part 2

Setting up my Dev Environment ECS 030

User Guide Version 2.0

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

Session 1: Accessing MUGrid and Command Line Basics

Introduction: What is Unix?

Lec 1 add-on: Linux Intro

CSE 391 Lecture 5. Intro to shell scripting

Ftp Command Line Commands Linux Example Windows Put

CSE 390a Lecture 5. Intro to shell scripting

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

Intro. To Unix commands. What are the machines? Very basics

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

CSE 390a Lecture 6. bash scrip'ng con'nued; remote X windows; unix 'dbits

CS 261 Recitation 1 Compiling C on UNIX

Introduction in Unix. Linus Torvalds Ken Thompson & Dennis Ritchie

Projects and Environment Introduction

Introduction to UNIX I: Command Line 1 / 21

CMSC 201 Spring 2017 Lab 01 Hello World

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

Linux hep.wisc.edu

Introduction to the Linux Command Line

CSC111 Computer Science II

New User Tutorial. OSU High Performance Computing Center

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

CS 1301 Fall 2008 Lab 2 Introduction to UNIX

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

One of the hardest things you have to do is to keep track of three kinds of commands when writing and running computer programs. Those commands are:

The Command Shell. Fundamentals of Computer Science

Lab 1 Introduction to UNIX and C

An Introduction to Unix

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

15-122: Principles of Imperative Computation

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

Unix. Examples: OS X and Ubuntu

KB How to upload large files to a JTAC Case

CSE 390a Lecture 4. Persistent shell settings; users/groups; permissions

Spring 2017 Gabriel Kuri

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

CS 246 Winter Tutorial 1

INTRODUCTION TO BIOINFORMATICS

213/513/613 Linux/Git Bootcamp. Cyrus, Eugene, Minji, Niko

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

The Edit-Compile-Run Cycle. EECS 211 Winter 2017

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

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

Helpful Tips for Labs. CS140, Spring 2015

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

AMS 200: Working on Linux/Unix Machines

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

Lecture 2. Software Development on Linux Platforms (Cygwin( Cygwin,, etc.) INTRODUCTION TO DESIGN AUTOMATION. Guoyong Shi, PhD

CMSC 201 Spring 2018 Lab 01 Hello World

CSE 391 Lecture 9. Version control with Git

CSE 390 Lecture 9. Version control and Subversion (svn)

Setting up the Seagate D4 NAS with Hard Disk Sentinel Pro. By Gary Ryan. Adapted from:

CS Fundamentals of Programming II Fall Very Basic UNIX

Linux Bootcamp Fall 2015

CSE 390a Lecture 4. Persistent shell settings; users/groups; permissions

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

Introduction to UNIX. SURF Research Boot Camp April Jeroen Engelberts Consultant Supercomputing

Parallel Programming Pre-Assignment. Setting up the Software Environment

CS4350 Unix Programming. Outline

Bitnami MEAN for Huawei Enterprise Cloud

Linux at the Command Line Don Johnson of BU IS&T

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

An introduction to Linux Part 4

Linux/Cygwin Practice Computer Architecture

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

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

Introduction to Linux

STA 303 / 1002 Using SAS on CQUEST

CS1600 Lab Assignment 1 Spring 2016 Due: Feb. 2, 2016 POINTS: 10

Unix Workshop Aug 2014

CS Operating Systems, Fall 2018 Project #0 Description

Linux and Git Boot Camp

Turn-in your project from your Windows PC

Eugene, Niko, Matt, and Oliver

Traditional Access Permissions

Exercise 1: Basic Tools

Intermediate Programming, Spring Misha Kazhdan

Transcription:

CSE 391 Editing and Moving Files Tips for moving files around to/from attu slides created by Marty Stepp, modified by Jessica Miller and Ruth Anderson http://www.cs.washington.edu/391 1

Remote Connections: to a linux machine You ve seen remote connections to a Linux machine in action Departmental attu.cs.washington.edu Linux server Can use ssh (or PuTTy) from anywhere independent of location and OS 2

Connecting with ssh command ssh description open a shell on a remote server Linux/Unix are built to be used in multi-user environments where several users are logged in to the same machine at the same time users can be logged in either locally or via the network You can connect to other Linux/Unix servers with ssh once connected, you can run commands on the remote server other users might also be connected; you can interact with them can connect even from other operating systems 3

The attu server attu : The UW CSE department's shared Linux server connect to attu by typing: ssh attu.cs.washington.edu (or ssh username@attu.cs.washington.edu if your Linux system's user name is different than your CSE user name) Note: There are several computers that respond as attu (to spread load), so if you want to be on the same machine as your friend, you may need to connect to attu2, attu3, etc. 4

Options for Moving Files command sftp or scp wget curl description transfer files to/from a remote server (after starting sftp, use get and put commands) download from a URL to a file download from a URL and output to console 5

scp secure copy Basic format: scp copythisfileordir newlocation To copy myfile from here to my home dir on attu, and call it newfile: scp myfile rea@attu.cs.washington.edu:newfile To copy myfile from my home dir on attu to here: scp rea@attu.cs.washington.edu:myfile. To copy the contents of mydir from here to my home dir on attu: scp r mydir rea@attu.cs.washington.edu: More info: http://linux.die.net/man/1/scp 6

sftp secure file transfer program Basic format: sftp [user@]hostname (e.g. sftp rea@attu.cs.washington.edu) The basic usage is as if you have transported yourself to a directory on the machine you are sftping to and then you use the get command to move files from the remote directory to your local directory. You use put to move files from your local directory to the remote directory. Other than get or put there are various commands to move around on both the local and the remote directory and see the contents of both directories (cd and lcd, ls and lls). More info: http://linux.die.net/man/1/sftp 7

sftp vs. scp sftp is nice if you don't remember exactly where you want to put/get a file to/from on the remote machine. sftp allows you to move around between directories on both machines. It also only asks you for your password when you start sftp, not on each transfer. If you just want to move a single file or directory (use scp -r) and you know where you want to put it/where it is, then scp is easier as you just type one command. If you need to look around in remote directories to find the file you are looking for or even how many files or what the name of the file you are looking for, then sftp is useful. There are also graphical versions of sftp that basically operate as a drag and drop folder interface - you may have already used these. 8

Mounting remote files command sshfs description mount and interact with remote directories and files An alternate usage model to remotely connecting to servers is mounting remote directories and files and work on them locally once mounted, use remote directories and files as if they were local To mount a remote directory create a local directory to mount to mkdir csehomedir mount your remote files on your local system sshfs username@attu.cs.washington.edu:/homes/iws/username csehomedir/ 9

Text editors command pico or nano emacs vi or vim description simple but crappy text editors (recommended) complicated text editor complicated text editor you cannot run graphical programs when connected to attu (yet) so if you want to edit documents, you need to use a text-only editor most advanced Unix/Linux users learn emacs or vi these editors are powerful but complicated and hard to learn we recommend the simpler nano (hotkeys are shown on screen) 10

11 Remote editing Gnome's file browser and gedit text editor are capable of opening files on a remote server and editing them from your computer press Ctrl-L to type in a network location to open