 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.

Slides:



Advertisements
Similar presentations
Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.
Advertisements

CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Exploring the UNIX File System and File Security
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
Virtual Machine and UNIX. What is a VM? VM stands for Virtual Machine. It is a software emulation of hardware. By using a VM, you can have the same hardware.
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
What is Unix? A multi-user networked operating system –“Operating System” Handles files, running other programs, input/output Looks like DOS…but more powerful.
A crash course in njit’s Afs
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Learning basic Unix command IT 325 operating system.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Introducing UNIX EMBnet slide 1 Introducing the UNIX Operating System.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Chapter Two Exploring the UNIX File System and File Security.
CPSC 217 T03 Week I Part #1: Unix and HELLO WORLD Hubert (Sathaporn) Hu.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
Operating Systems and Using Linux CMSC 104, Lecture 3 John Y. Park 1.
Chapter 0 A “Quick-Start” into the UNIX Operating System.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Next Unix Topics Tuesday, 2/11 & 18/2014. Change Password (by 2/14/14) ssh to account on – faclinux.cse.ohio-state.edu – stdlinux.cse.ohio-state.edu passwd.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Introduction to Programming Using C An Introduction to Operating Systems.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
The Unix File sytem. Introduction Tree structure …
What is Unix? A multi-user networked operating system –“Operating System” Handles files, running other programs, input/output Just like DOS or Windows.
Operating Systems and Using Linux Courtesy of John Y. Park 1.
CMSC 104, Version 8/061L03OperatingSystems.ppt Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
2Operating Systems  Program that runs on a computer  Manages hardware resources  Allows for execution of programs  Acts as an intermediary between.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Tutorial Six Linux Basics CompSci Semester Two 2016.
Overview of Linux Fall 2016 Dr. Donghyun Kim
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Introducing the UNIX Operating System.
Web Programming Essentials:
Linux 101 Training Module Linux Basics.
Andy Wang Object Oriented Programming in C++ COP 3330
The Command Prompt Commands are the way to “do things” in Unix
Operating Systems and Using Linux
Intro to UNIX System and Homework 1
Operating Systems and Using Linux
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Exploring the UNIX File System and File Security
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Web Programming Essentials:
Operating Systems and Using Linux
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Tutorial Unix Command & Makefile CIS 5027
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Module 6 Working with Files and Directories
What is Unix? A multi-user networked operating system
Lab 2: Terminal Basics.
January 26th, 2004 Class Meeting 2
Presentation transcript:

 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages file operations, network connections, user accounts/ permissions/ logins, and processes.  Unix has a shell like the Windows shell, but with slight differences in command names, options  CS department uses a UNIX server  All SI110 students and instructors have an account Operating Systems Part II2

 Access rona using the ssh program  ssh = s ecure sh ell: allows secure data communication, remote shell services or command execution and other secure network services between two networked computers that connects, via a secure channel over an insecure network, a server and a client  ssh gives a secure shell that  Accepts keyboard inputs from the local machine  Displays output on the local machine -- BUT--  Executes commands on the rona server – NOT YOUR COMPUTER Operating Systems Part II3

 Command ssh  “ ssh ” is the command  is the argument  – the user to login as  “rona.cs.usna.edu” – the computer to login to  A new window will pop up prompting you for your password  Use your ACADEMY domain password  Note: You will not see your password as you type it in! Operating Systems Part II4

5

 When you login, you will start in your home directory  Path: /home/username  Note: there is no “drive” letter in Unix  Unix has a single file hierarchy that simply starts at forward slash /  Analogous to the C:\Users\username directory in Windows  Only place can create files and folders Operating Systems Part II6

WindowsUnixSummaryEx (Windows)Ex (Unix) dirls list contents of current directory C:> dir $ ls cdpwddisplay current directory C:> cd $ pwd cd path change current directory C:> cd \Users\m $ cd /home/m copy path1 path2 cp path1 path2 copy file path1 to name/location path2 C:> copy foo.txt bar.txt $ cp foo.txt bar.txt move path path mv path path move file path1 to name/location path2 C:> move foo.txt..\backup\ $ mv foo.txt../backup/ del path rm path delete file path C:> del foo.txt $ rm foo.txt rmdir path delete folder/directory path C:> rmdir images $ rmdir images mkdir path create folder/directory path C:> mkdir images $ mkdir images type path cat path print file path to screen C:> type index.html $ cat index.html Notepad path nano path Open file path in a text editor (nano doesn't require the GUI) C:> Notepad foo.txt $ nano foo.txt whoami Tells the username for the account that is executing the command. C:> whoami $ whoami

 “ssh” to your rona account  How? In a Windows command shell type  ssh  Enter your password (you won’t see it)  Now you should be logged in  Type “hostname” – what shows up?  Type “whoami” – who shows up?  What does ls do? 8

 Under the normal course of events, a process's owner must match a file's owner in order for OS to allow the process access to the file. except... if the process runs as administrator (called "root" in Unix), in which case it gets to access everything! So... if a bad guy manages to get an administrator (or "root" in Unix) shell on your machine, it's game over. Note: A user can change the permissions on a file or directory they own to allow access to other users, or even to disallow themselves access! Operating Systems Part II9

10