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

Similar documents
Lab 2: Linux/Unix shell

CS CS Tutorial 2 2 Winter 2018

Linux Command Line Primer. By: Scott Marshall

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

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

Introduction to the UNIX command line

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

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

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

Lab Working with Linux Command Line

Introduction: What is Unix?

Linux Bootcamp Fall 2015

Introduction. File System. Note. Achtung!

Helpful Tips for Labs. CS140, Spring 2015

Short Read Sequencing Analysis Workshop

Unix Tutorial Haverford Astronomy 2014/2015

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

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

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

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

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

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

Computer Systems and Architecture

Introduction to Linux for BlueBEAR. January

Mills HPC Tutorial Series. Linux Basics I

Working with Basic Linux. Daniel Balagué

Basic Linux Command Line Interface Guide

Development Environment & Linux Guide

Basic Linux Command Line Interface Guide

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

Command Line Interface The basics

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

Recitation #1 Boot Camp. August 30th, 2016

System Administration

Session 1: Accessing MUGrid and Command Line Basics

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

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

Introduction to Linux Environment. Yun-Wen Chen

CHE3935. Lecture 1. Introduction to Linux

C++ Programming on Linux

Physics REU Unix Tutorial

Introduction to the Linux Command Line

Chap2: Operating-System Structures

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

Introduction to Linux

Outline. Structure of a UNIX command

Introduction to Linux

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

CS370 Operating Systems

COMS 6100 Class Notes 3

Programming Studio #1 ECE 190

Intro to Linux & Command Line

Computer Systems and Architecture

Command-line interpreters

AMS 200: Working on Linux/Unix Machines

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

Introduction to UNIX command-line II

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

Parallel Programming Pre-Assignment. Setting up the Software Environment

The Command Shell. Fundamentals of Computer Science

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

Unix Basics. Systems Programming Concepts

Linux and Git Boot Camp

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

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

Introduction to UNIX command-line

Introduction of Linux

Essential Linux Shell Commands

LOG ON TO LINUX AND LOG OFF

Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit

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

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

Unix Workshop Aug 2014

CpSc 1111 Lab 1 Introduction to Unix Systems, Editors, and C

Getting Started with UNIX

LAB #5 Intro to Linux and Python on ENGR

5/8/2012. Creating and Changing Directories Chapter 7

Unix Tutorial. Beginner. CS Help Desk: Marc Jarvis (in spirit), Monica Ung, Corey Antoniuk 2015

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

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

Unit 10. Linux Operating System

Linux Kung Fu. Ross Ventresca UBNetDef, Fall 2017

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

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.

User Guide Version 2.0

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo

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

Scripting Languages Course 1. Diana Trandabăț

Introduction to Linux and Supercomputers

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.

Linux Shell Script. J. K. Mandal

Introduction to the shell Part II

Introduction to Linux. Fundamentals of Computer Science

Introduction to Linux

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

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

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

Linux Training. for New Users of Cluster. Georgia Advanced Computing Resource Center University of Georgia Suchitra Pakala

Transcription:

Connecting to ICS Server, Shell, Vim CS238P Operating Systems fall 18 By Aftab Hussain (Adapted from Claudio A. Parra s Slides for Fall 18 CS-143A) October 5 2018 University of California, Irvine

Andromeda Server with Linux managed by the ICS. You must have an @ics.uci.edu account. Your server number is: ser_num = (<ucinetid>%75)+1 The server you will connect is: andromeda-<ser_num>.ics.uci.edu

How to connect to it We need a secure shell client (ssh). In Linux: integrated. In Windows: integrated (win10), or Putty. In Mac-OS: integrated. ssh username@andromeda-xx.ics.uci.edu

Welcome to Linux, now what? A couple of notes: / is the root directory, everything is under it. ~/ is your home directory, it is an alias for /home/yourusername/ https://en.wikipedia.org/wiki/home_directory

Welcome to Linux, now what? A couple of notes: / is the root directory, everything is under it. ~/ is your home directory, it is an alias for /home/yourusername/./ is the current directory.../ is the parent directory. Passwords are invisible. Case matters, A and a are different.

Some commands ls [options] [dir] List information about the FILEs (the current directory by default). -R: recursive. -l: long format, shows info of each file -a: show all files, including hidden files, those that start with a. -h: file sizes in a nice way

Some commands cd [dir] Change the shell working directory. If no directory is given, it changes to the home directory.

Some commands pwd Print the name of the current working directory.

Some commands mkdir <dir_name> Create the directory <dir_name>, if it does not already exist.

Some commands touch -c <filename> Creates a new empty file.

Some commands cp <source> <dest> Copy the source file to the destination. Example: cp myfile.txt./adirectory/newfile.txt

Some commands mv <source> <dest> Move or rename the source file to the destination file. Example moving: mv myfile.txt./adirectory/newfile.txt Example renaming: mv myfile.txt newname.txt

Some commands cat [filename] Print the content of a file to standard output. If no file is given, then prints what comes from standard input (most of the cases the keyboard)

Some commands head <filename> Print the first 10 lines of the filename to standard output. -n X: prints the first X lines

Some commands tail <op> <filename> Print the last 10 lines of the filename to standard output. -n X: prints the last X lines

Copying things scp <source> <destination>:<dir> Copy files from one machine to another through ssh. Easier if you run it in your local machine Example local to remote: scp ~/localfile peter@andromeda-xx.ics.uci.edu:~/remotefile Example remote to local: scp peter@andromeda-xx.ics.uci.edu:~/remotefile ~/localfile

Some commands grep <pattern> [file] Search for <pattern> in the given file. If no file is given, and you pass -r as option, grep searches recursively in the working directory. Using -e <pattern>, grep interprets the pattern as an extended regular expression.

Some commands find -name <filename> <dir> Find a file named <filename> in the directory <dir> There is a lot of other options.

Other useful tools > and < Redirect the standard output or input. Example: ls -l > mycontent.txt Example: cat < mycontent.txt More on input redirection https://askubuntu.com/questions/883786/how-does-input-redirection-work

Other useful tools >> Append. Example: echo Dear diary > log.txt echo Today I... >> log.txt

Other useful tools Pipe, passes the output of a command to another as input. Example: ls -R grep myfile

Some more commands top display Linux processes htop same as above but interactive

Some more commands ps display snapshot of current processes

Some more commands kill <pid> Kills a process

Some commands rm [op] <filename> <dir> delete a file in the specified directory. If no directory is given, uses the current one. -r: recursive. -d: remove empty directories. -i: interactive, ask before each file. DO NOT TRY THIS: rm -rd./

Editors vim NORMAL MODE G go to end of file ng go to line number n v visual select Ctrl+O or I forward/backward y copy p paste u undo Ctrl+r redo dd cut line /<pattern> search pattern i go to insert mode : go to command mode COMMAND MODE w write (save) wq save and quit q! quit without saving changes f show filename split horizontal split vsplit vertical split Ctrl+W <arrow> navigate windows copen quickfix tool grep <pattern> *.<filetype> clear all splitting