1 Lecture 1 Introduction & Getting Started COP 3353 Introduction to UNIX.

Slides:



Advertisements
Similar presentations
A Guide to Unix Using Linux Fourth Edition
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Chapter One The Essence of UNIX.
History of UNIX Fergus Toolan Intelligent Information Retrieval Group University College Dublin.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Guide To UNIX Using Linux Third Edition
Xuan Guo Chapter 1 What is UNIX? Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003 Original Notes.
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
UNIX chapter 03 Getting Started Mr. Mohammad Smirat.
Linux Operating system
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 145 Operating Systems Introduction to UNIX/Linux.
Linux Basics. What is an Operating System (OS)? An Operating System (OS) is an interface between hardware and user which is responsible for the management.
CSCI 330 T HE UNIX S YSTEM Dr. Reva Freedman Department of Computer Science Northern Illinois University Spring 2009.
What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.
Operating System.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
Operating Systems Operating System
CST334 Unix & X Window System
Introduction A computer system consists of hardware system programs application programs.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
LINUX/UNIX WORKSTATIONS Franklin Montenegro Carlos Sierra.
Potential Unix/Linux Questions March 25, 2014 Dr. Bob Mathis.
Module 1 Introduction to UNIX/Linux
CENT 305 Information Systems Security Linux Introduction.
Chapter 1 What is UNIX? Graham Glass and King Ables,
1 © 2001 John Urrutia. All rights reserved. Welcome to CIS 52 WELCOME WELCOME W E L C O M E.
LIS508 background of GNU/Linux
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Operating System Part II: Introduction to the Unix Operating System (The Evolution of Unix)
Chapter 1 What is Unix? By C. Shing ITEC Dept Radford University.
© Prepared By: Razif Razali 1 TMK 265: UNIX SYSTEM CHAPTER ONE – UNIX PHILOSOPHY.
Computers & Operating Systems
Just Enough Unix, Chapter 1
CS2204: Introduction to Unix January 19 th, 2004 Class Meeting 1 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty.
Unix – Linux CS3353 Ssystem Administration. OS The Operating System – Acts as the interface to all software, hardware, and users of a computer. – Requires.
CSCI 330 UNIX and Network Programming Unit I Introduction.
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
Introduction to UNIX Karl Harrison September 2004.
Background & History of UNIX & Linux Fort Collins, CO Copyright © XTR Systems, LLC The Background and Short History of UNIX & Linux Instructor: Joseph.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Introduction to UNIX CS465. What is UNIX? (1) UNIX is an Operating System (OS). An operating system is a control program that allocates the computer's.
1 Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
Unix Advanced Shells Chapter 10. Unix Shells u Command Line Interpreter –once logged in, login gives control to a shell –it prompts for input, then parses,
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop I Introduction to Linux Professional Training Academy.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Computer Operating Systems And Software applications.
WHY AN OPERATING SYSTEM (OS) OS interacts with hardware and manages programs. Programs not expected to know which hardware they will run on. Must be possible.
Day 5 Pico Editor David A. Gaitros Department of Computer Science Florida State University.
Computer Center | Network Group IISER Bhopal Introduction to Basic Component of Computer System Vinay Bajpai iiserb.ac.in Computer Center Indian.
UNIX Operating System. A Brief Review of Computer System 1. The Hardware CPU, RAM, ROM, DISK, CD-ROM, Monitor, Graphics Card, Keyboard, Mouse, Printer,
Introduction to unix. The UNIX Operating System An operating system "OS” is a set of programs that controls a computer. It controls both the hardware.
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
Overview of Linux Fall 2016 Dr. Donghyun Kim
A LECTURE NOTE.
Karl Harrison September 2004
Unix Scripting Session 1 March 6, 2008.
Welcome to Linux Chap#1 Hanin Abdulrahman.
Guide To UNIX Using Linux Third Edition
BSD (Unix) vs. GNU/Linux
Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
Chapter 1 The Essence of UNIX and Linux
Unix : Introduction and Commands
Linux Professor Sabol.
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to Linux Chap#1.
Day 5 Emacs Editor David A. Gaitros Department of Computer Science
Presentation transcript:

1 Lecture 1 Introduction & Getting Started COP 3353 Introduction to UNIX

2 Brief History Dennis Ritchie and Ken Thompson of Bell Laboratories developed the Unix operating system in the early 1970’s –Unix is a “pun” on Multics. Multics was a joint project of many companies and universities designed to be a leap forward in OSs. Multics contributed many ideas to OS development but failed as a useful OS. –Thompson needed to build an OS for a PDP-7 (9 Kbytes of main memory) and did so with the help of Ritchie (who also developed the C language with Brian Kernighan). This became Unics, and then Unix.

3 Basic System Components & OS CPU RAM I/O Devices Operating System

4 Basic Components CPU (Central Processing Unit, "Processor")‏ –Brain Main Memory (RAM)‏ –Temporary Workspace I/O (Input/Output)‏ –Keyboard, Mouse –Monitor –Mass Storage (Hard Drives, CD-ROM)‏ Operating System –Oversees interaction of hardware components –Provides interface between software and hardware –Provides interface to user –Most common use is running programs and managing "files"

5 Major Components of the Unix OS Kernel –The master control program –Schedules tasks and switching to provide multitasking and multi- user operation –Manages resources Shell –Interprets user commands –Passes user commands to the kernel for execution (executes programs)‏ File System –Information organized as files and specialized files called directories Utilities –Software tools provided as part of the OS. Often called commands

6 Some Definitions Executable –A program in a form that can be executed by the OS Process –The activation or instantiation of an executable Daemons –Processes spawned by the kernel (OS) to perform tasks on behalf of OS to manage system resource Filters –General purpose utilities transforming an input stream to an output stream while doing well-defined processing

7 Varieties of Unix Developed at Bell Labs and AT&T –Latest version from AT&T is System V Release 4 University of California Berkeley –Latest version was 4.4 BSD Commercial versions –SunOS, Solaris, SCO Unix, Aix, HP/UX, Ultrix Freely available version –GNU (Gnu’s not Unix) & Free Software Foundation –Linux (Linus Torvalds created for PCs), NetBSD, FreeBSD Linux Distributions (Linux kernel core + parts of Gnu etc.)‏ –Fedora Core (Red Hat), SUSE Linux (Novell), Ubuntu, Mandriva, Gentoo, Debian Posix – a standard –A standard for Unix like operating systems

8 Logging on to a CS Machine Machines –Diablo (“diablo.cs.fsu.edu”) - Faculty only (do not use)‏ –Shell (“shell.cs.fsu.edu”) - Use this one generally (Linux OS)‏ –Linprog (“linprog.cs.fsu.edu”) - Use for programming (actually a stack of “linprog1” – “linprog4”, Linux OS)‏ –Program (“program.cs.fsu.edu”) –Also for programming (“program1” – “program4”, Solaris OS)‏ SSH (Secure Shell)‏ –Use an SSH client program to connect to CS machines –SSH software for home use can be obtained from New Account Application – –Use SSH Client to connect to "shell.cs.fsu.edu" –username: newacct –password: newacct –Carefully follow rules for creating your password. –Remember to record / remember your username and remember your password

9 Variety of Shells Some aspects –Prompt ($, %, >, machine you are on, etc)‏ –History mechanism (arrow keys), string completion (tab)‏ Different shells –sh: Bourne shell, (S.R. Bourne, good scripting capabilities)‏ –csh: C shell, (UC Berkeley, closer to C syntax)‏ –ksh: Korn shell, (David Korn, better interactivity)‏ –bash: Bourne-again shell (built on sh with more features)‏ –tcsh: T shell: (Tenex shell) similar to C shell, default on Linux /Intel installations, default on CS accounts

10 Editors Common text editors that are available (none have many of the features available on word processors) for plain text files such as programs, shell scripts, etc. –vi (vee-eye)‏ Available on almost all Unix machines Fairly powerful and sophisticated –emacs (ee-macs)‏ Also widely available Powerful and popular –pico Easier to learn but simpler and not as powerful

11 Starting pico The command "pico" at a shell prompt will start the "pico" text editor with an empty buffer $ pico Specifying a file name will have "pico" open that file (or start a new file)‏ $ pico testfile1 Basic Command –Arrow keys are used to navigate around the document –Typing will insert text at the point of the cursor –The caret sysmbol (^) indicates you must press and hold the control (ctrl) key first, then press the command key –Some available commands are at the bottom of the pico window –^o writes “out” the text to a file (a prompt will let you specify the name)‏ –^x exits pico

12 Marking and cutting and pasting in pico You cannot use your mouse in "pico" (actually, the mouse works to cut and paste because of the SSHClient program, but you must learn how to work without it)‏ ^^ (ctrl-shift-^) begins marking text at the current cursor position Use the arrow keys to mark text ^k cuts text (kills), ^u then brings the text back at the current cursor position

13 pico command summary (arrows)‏ Move cursor (bksp)‏ Move cursor left one space, deleting character ^a Move to beginning of line ^b Move back one character (same as left arrow)‏ ^e Move to end of line ^f Move forward one character (same as right arrow)‏ ^n Move to next line (same as down arrow)‏ ^p Move to previous line (same as up arrow)‏ ^v Move forward one page ^y Move back one page ^(space)‏ Move to next word

14 pico command summary continued ^c Shows current position ^d Delete character at current position ^g Display help file (^V and ^Y to scroll through)‏ ^h Delete previous character (same as bksp)‏ ^i Insert TAB character (same as tab)‏ ^j Justify paragraph ^^ Begin selecting text at current cursor position ^k Cut selected text ^l Redraw screen ^o Output current buffer to a file (save)‏ ^r Insert text from a file ^u Undelete last line, series of lines, or marked block you deleted. Can also "unjustify" ^w Search file for text ^x Exit pico