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

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

Introduction to the UNIX command line

CS CS Tutorial 2 2 Winter 2018

Command Line Interface The basics

CHE3935. Lecture 1. Introduction to Linux

CS 246 Winter Tutorial 1

AMS 200: Working on Linux/Unix Machines

Linux Bootcamp Fall 2015

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

Lab 1 1 Due Wed., 2 Sept. 2015

Short Read Sequencing Analysis Workshop

LAB #5 Intro to Linux and Python on ENGR

Introduction: What is Unix?

Lab 3a Using the vi editor

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

Version Control with Git

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

IoT with Intel Galileo Gerardo Carmona. makerobots.tk

Operating System Interaction via bash

Linux/Cygwin Practice Computer Architecture

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

Lab Working with Linux Command Line

CS 307: UNIX PROGRAMMING ENVIRONMENT KATAS FOR EXAM 1

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

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

COMS 6100 Class Notes 3

Introduction of Linux

The Command Shell. Fundamentals of Computer Science

Introduction. File System. Note. Achtung!

Session 1: Accessing MUGrid and Command Line Basics

Chap2: Operating-System Structures

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

Introduction to Linux

Linux Introduction Martin Dahlö Valentin Georgiev

Introduction to Linux for BlueBEAR. January

Introduction to UNIX I: Command Line 1 / 21

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

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

User Guide Version 2.0

Linux & Shell Programming 2014

Linux Survival Guide

Hands-on Keyboard: Cyber Experiments for Strategists and Policy Makers

Helpful Tips for Labs. CS140, Spring 2015

Linux Systems Administration Getting Started with Linux

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

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

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

CENG 334 Computer Networks. Laboratory I Linux Tutorial

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

CMSC 201 Spring 2018 Lab 01 Hello World

CISC 220 fall 2011, set 1: Linux basics

Exercise 1: Basic Tools

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

Intro to Linux & Command Line

Linux Kung Fu. Ross Ventresca UBNetDef, Fall 2017

LAB #7 Linux Tutorial

Working with Basic Linux. Daniel Balagué

CS370 Operating Systems

Intermediate Programming, Spring Misha Kazhdan

Linux Command Line Primer. By: Scott Marshall

Recitation #1 Boot Camp. August 30th, 2016

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

Essential Linux Shell Commands

CSCE UVM Hands-on Session-1 Pre-Work

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

Commands are in black

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

Chapter 4. Unix Tutorial. Unix Shell

Introduction to UNIX Command Line

Linux and Git Boot Camp

CMSC 201 Spring 2017 Lab 01 Hello World

Basic UNIX commands. HORT Lab 2 Instructor: Kranthi Varala

Introduction to Linux

15-122: Principles of Imperative Computation

Getting your department account

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

Linux Kung Fu. Stephen James UBNetDef, Spring 2017

Introduction to Linux. Fundamentals of Computer Science

Unix. Examples: OS X and Ubuntu

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

Laboratory 1 Semester 1 11/12

COSC UNIX. Textbook. Grading Scheme

Part I. UNIX Workshop Series: Quick-Start

Lab 1 Introduction to UNIX and C

CS Fundamentals of Programming II Fall Very Basic UNIX

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

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys

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]

Lec 1 add-on: Linux Intro

Perl and R Scripting for Biologists

Basic Linux Command Line Interface Guide

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

Introduction Into Linux Lecture 1 Johannes Werner WS 2017

Introduction to Linux

1. What statistic did the wc -l command show? (do man wc to get the answer) A. The number of bytes B. The number of lines C. The number of words

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

Hand-on Labs for Chapter 1 and Appendix A CSCE 212 Introduction to Computer Architecture, Spring

Introduction to Linux

Introduction to the Linux Command Line January Presentation Topics

Transcription:

CS 143A Principles of Operating Systems Instructor : Prof. Anton Burtsev (aburtsev@uci.edu)

Assistants : Junjie Shen junjies1@uci.edu Vikram Narayanan narayav1@uci.edu Biswadip Maity (Deep) Email : maityb@uci.edu Please include 143A in the subject line

Today s agenda Accessing Andromeda Shell using SSH Understanding a few Shell commands Introduction to git If students are already familier with shell commands/git, we can move on to: Downloading the XV6 source code

All important content will be uploaded in the course page. Taking notes is not required. Following hands-on is encouraged during the session

I have ICS account I do not have ICS account 1. Find out your student ID (Ex: 66541280) 2. Evaluate servernumber = (studentidnumber mod 74) +1 Ex: 66541280 => 37 3. Your server name is : andromeda-<servernumber> Ex: andromeda-37.ics.uci.edu Each member of the ICS community receives an ICS email address of the following form: username@ics.uci.edu ICS students can visit Computing Support (ICS 364, bldg. 302 on the campus map) for your ICS computer and email accounts. Please take your ID for activation. Other students Please talk to me after class for alternative options 4. Make a note of it.

SSH into andromeda-xx.ics.uci.edu Ex : SSH maityb@andromeda-xx.ics.uci.edu Enter your ICS account password when prompted

I have ICS account I do not have ICS account (SSH required for next class) Supports bash. <Check if SSH works> Putty/ Other SSH Client SSH from terminal SSH from terminal Use bash terminal Download Cygwin/ alternatives for today Partner up Use terminal Use terminal

SSH into andromeda-xx.ics.uci.edu Ex : SSH maityb@andromeda-xx.ics.uci.edu Enter your ICS account password when prompted

All Linux operating systems function in lower case. While you can name files, folders and directories using upper case, the system functions in lower case. This means unless you specify -i (negate case lock), all files, folders and directories named with an upper case will not be shown. Thus, the command locate operatingsystems.mp3 Will not locate the file OperatingSystems.mp3 http://www.informit.com/blogs/blog.aspx?uk=the-10-most-important-linux-commands

Be very careful using the rm command. The rm -rf/ command means remove (rm) - recursive (r) force (f) home (/). Spelled out logically, the rm -rf/ command will delete every folder, file and directory within your Linux OS. It is the equivalent of wiping your entire hard drive clean. http://www.informit.com/blogs/blog.aspx?uk=the-10-most-important-linux-commands

/ means root The PC user in command prompt will start from the C:\ hard drive. In Linux your CLI starting point - your root directory - is /. / is where all other files, folders and directories are stored within. http://www.informit.com/blogs/blog.aspx?uk=the-10-most-important-linux-commands

Passwords are kept in the dark This is because when you type in your password into the Linux CLI, you will see nothing. The Linux CLI operates with the assumption that the user typing in the password knows what he/she is typing and thus, for security reasons, has no need to view it while it is input. http://www.informit.com/blogs/blog.aspx?uk=the-10-most-important-linux-commands

1. cd /bin 2. ls

1. cd /bin 2. ls 3. ls -1

1. cd /bin 2. ls 3. ls -1 4. ls -1 grep m

man The man command - the manual command - is used to show the manual of the inputted command. Inputting the man command will show you all information about the command you are using. An example: man cd http://www.informit.com/blogs/blog.aspx?uk=the-10-most-important-linux-commands

mkdir The mkdir - make directory - command allows the user to make a new directory. An example of the mkdir command cd ~ mkdir ics143a http://www.informit.com/blogs/blog.aspx?uk=the-10-most-important-linux-commands

echo echo 'Hello, world. echo $USER echo $Home echo ~

echo with redirect echo 'Hello, world.' > foo.txt Or if you want to append data: somecommand >> somefile.txt

cat View contents of a file Ex: cat foo.txt Other uses : create single or multiple files concatenate files redirect output in terminal or files.

vim VIM has two modes in which you can manipulate files: Edit mode is the state in which the keys you bang on are actually inserted into your document GUI layout allows you to navigate through the document, search and replace text, copy and paste, etc. By default when you open a file, you're placed in GUI mode.

vim sample commands Search for Vim 101 for full list of commands

vim - exit If in the edit mode, Hit the ESC key to get into Normal (command) mode then type :q and press Enter. To quit without saving any changes, type :q! and press Enter. Search for Vim 101 for full list of commands

Version controlling system Source :http://rogerdudler.github.io/git-guide/

Version controlling system Source :http://rogerdudler.github.io/git-guide/

Version controlling system Source :http://rogerdudler.github.io/git-guide/

Version controlling system git init git status git log git add git commit git reset --hard HEAD~1 (Resets the index and working tree. Any changes to tracked files in the working tree since <commit> are discarded.) git reset --soft HEAD~1 (Does not touch index or the working tree, puts changes in staged area)

Thank You Next day : Booting XV6