UNIX! Nathan Hubbard @N8foo "...The Number of UNIX Installations Has Grown to 10, with More Expected..."

Total Page:16

File Type:pdf, Size:1020Kb

UNIX! Nathan Hubbard @N8foo UNIX Code & Pinot: UNIX! Nathan Hubbard @n8foo "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972 A little history Multics - MIT, AT&T Bell Labs & GE Ran on the GE-645 - a mainframe ‘time-sharing’ OS Very influential in UNIX’s design philosophy PDP-7 Unix’s first real hardware ● Note the lack of a video display Unix Philosophy The Unix philosophy emphasizes building short, simple, clear, modular, and extensible code that can be easily maintained and repurposed by developers other than its creators. The Unix philosophy favors composability as opposed to monolithic design. Unix Philosophy “What we wanted to preserve was not just a good environment in which to do programming, but a system around which a fellowship could form. We knew from experience that the essence of communal computing, as supplied by remote-access, time-shared machines, is not just to type programs into a terminal instead of a keypunch, but to encourage close communication” -Dennis Ritchie Unix Philosophies 1. Small is beautiful. 2. Make each program do one thing well. 3. Build a prototype as soon as possible. 4. Choose portability over efficiency. 5. Store data in flat text files. 6. Use software leverage to your advantage. 7. Use shell scripts to increase leverage and portability. 8. Avoid captive user interfaces. 9. Make every program a filter. Unix Components ● Kernel ● Development Environment ● Commands ● Documentation Impact ● Direct interaction. ● Providing the software at a nominal fee for educational use. ● Running on inexpensive hardware. ● Being easy to adapt and move to different machines. UNIX Today ● We won! \o/ ● It’s free! ● On your phone! ● On your website! ● On Supercomputers! ● Even on Macs! ● Runs the World... ○ Internet, Commerce, Government.
Recommended publications
  • It's Complicated but It's Probably Already Booting Your Computer
    FAQ SYSTEMD SYSTEMD It’s complicated but it’s probably already booting your computer. dynamically connect to your network, a runlevel of 1 for a single-user mode, GRAHAM MORRISON while syslogd pools all the system runlevel 3 for the same command messages together to create a log of prompt we described earlier, and Surely the ‘d’ in Systemd is everything important. Another daemon, runlevel 5 to launch a graphical a typo? though it lacks the ‘d’, is init – famous environment. Changing this for your No –it’s a form of Unix notation for being the first process that runs on next boot often involved editing the used to signify a daemon. your system. /etc/inittab file, and you’d soon get used to manually starting and stopping You mean like those little Isn’t init used to switch your own services simply by executing devils inhabiting Dante’s between the command-line the scripts you found. underworld? and the graphical desktop? There is a link in that Unix usage For many of us, yes. This was the You seem to be using the past of the term daemon supposedly main way of going from the tense for all this talk about the comes from Greek mythology, where desktop to a command line and back init daemon… daemons invisibly wove their magic again without trying to figure out which That’s because the and benign influence. The word is today processes to kill or start manually. aforementioned Systemd wants more commonly spelt ‘demon’, which Typing init 3 would typically close any to put init in the past.
    [Show full text]
  • Getting to Grips with Unix and the Linux Family
    Getting to grips with Unix and the Linux family David Chiappini, Giulio Pasqualetti, Tommaso Redaelli Torino, International Conference of Physics Students August 10, 2017 According to the booklet At this end of this session, you can expect: • To have an overview of the history of computer science • To understand the general functioning and similarities of Unix-like systems • To be able to distinguish the features of different Linux distributions • To be able to use basic Linux commands • To know how to build your own operating system • To hack the NSA • To produce the worst software bug EVER According to the booklet update At this end of this session, you can expect: • To have an overview of the history of computer science • To understand the general functioning and similarities of Unix-like systems • To be able to distinguish the features of different Linux distributions • To be able to use basic Linux commands • To know how to build your own operating system • To hack the NSA • To produce the worst software bug EVER A first data analysis with the shell, sed & awk an interactive workshop 1 at the beginning, there was UNIX... 2 ...then there was GNU 3 getting hands dirty common commands wait till you see piping 4 regular expressions 5 sed 6 awk 7 challenge time What's UNIX • Bell Labs was a really cool place to be in the 60s-70s • UNIX was a OS developed by Bell labs • they used C, which was also developed there • UNIX became the de facto standard on how to make an OS UNIX Philosophy • Write programs that do one thing and do it well.
    [Show full text]
  • If Data Is Confidential and Available but Altered Decryption of Altered Data Usually Gives Garbage Exception: Electronic-Codeboo
    38 40 If Data is Confidential and Available but Altered Encryption • do not use ECB–Mode • use CBC– or CTR–mode (recommendation Schneier/Ferguson) • use AES or one of the finalists – Twofish (Schneier, Ferguson, Kelsey, Whiting, Wagner, Hall) decryption of altered data usually gives garbage – Serpent (Anderson, Biham, Knudsen) – MARS (Coppersmith et al., IBM) exception: electronic-codebook-mode (ECB) (uses independent blocks) – RC6 (Rivest, patented by RSA) 39 41 ECB-Mode Encrypted Penguin If Data is Non-Alterable and Confidential but not Available ,,Your message with authenticator 08931281763e1de003e5f930c449bf791c9f0db6 encryption is block by block has been received, but unfortunately the server is down. ❀ every block gets another color Your mail-service will never be accessible.” Example: lavabit.com, Snowden’s e-Mail-Provider 42 44 Authorization: Who is Allowed to Do All This? Problem: Person/Process/Role ⇐⇒ String (2) How to link a person to a string? • Person knows something (password, secret cryptographic key). • Person has something (token, USB–key, chipcard). Authorized entities only. • Person is something (biometrics, fingerprint etc.). Only Bob is allowed to enter here. We have to identify persons, processes and their roles. 43 45 Problem: Person/Process/Role ⇐⇒ String (1) Proof of Identity is Called Authentication Person identified by picture String identified by equality relation. 46 48 Proof of Identity: Links Person to a String Third party guarantees real identity. Has something: ID–card. 47 49 Proof of True Source is Called Authenticity
    [Show full text]
  • Introduction to Unix Shell (Part I)
    Introduction to Unix shell (part I) Evgeny Stambulchik Faculty of Physics, Weizmann Institute of Science, Rehovot 7610001, Israel Joint ICTP-IAEA School on Atomic Processes in Plasmas February 27 – March 3, 2017 Trieste, Italy Contrary to popular belief, Unix is user friendly. It just happens to be very selective about who it decides to make friends with. Unknown Initially used at Bell Labs, but soon licensed to academy (notably, U. of California, Berkeley) and commercial vendors (IBM, Sun, etc). There are two major products that came out of Berkeley: LSD and Unix. We don’t believe this to be a coincidence. Jeremy S. Anderson, Unix systems administrator Historical overview (kind of) Unix is a family of multiuser, multitasking operating systems stemming from the original Unix developed in the 1970’s at Bell Labs by Ken Thompson, Dennis Ritchie1, and others. Some consider Unix to be the second most important invention to come out of AT&T Bell Labs after the transistor. Dennis Ritchie 1Also famous for creating the C programming language. Historical overview (kind of) Unix is a family of multiuser, multitasking operating systems stemming from the original Unix developed in the 1970’s at Bell Labs by Ken Thompson, Dennis Ritchie1, and others. Some consider Unix to be the second most important invention to come out of AT&T Bell Labs after the transistor. Dennis Ritchie Initially used at Bell Labs, but soon licensed to academy (notably, U. of California, Berkeley) and commercial vendors (IBM, Sun, etc). There are two major products that came out of Berkeley: LSD and Unix.
    [Show full text]
  • Command Line Interface (Shell)
    Command Line Interface (Shell) 1 Organization of a computer system users applications graphical user shell interface (GUI) operating system hardware (or software acting like hardware: “virtual machine”) 2 Organization of a computer system Easier to use; users applications Not so easy to program with, interactive actions automate (click, drag, tap, …) graphical user shell interface (GUI) system calls operating system hardware (or software acting like hardware: “virtual machine”) 3 Organization of a computer system Easier to program users applications with and automate; Not so convenient to use (maybe) typed commands graphical user shell interface (GUI) system calls operating system hardware (or software acting like hardware: “virtual machine”) 4 Organization of a computer system users applications this class graphical user shell interface (GUI) operating system hardware (or software acting like hardware: “virtual machine”) 5 What is a Command Line Interface? • Interface: Means it is a way to interact with the Operating System. 6 What is a Command Line Interface? • Interface: Means it is a way to interact with the Operating System. • Command Line: Means you interact with it through typing commands at the keyboard. 7 What is a Command Line Interface? • Interface: Means it is a way to interact with the Operating System. • Command Line: Means you interact with it through typing commands at the keyboard. So a Command Line Interface (or a shell) is a program that lets you interact with the Operating System via the keyboard. 8 Why Use a Command Line Interface? A. In the old days, there was no choice 9 Why Use a Command Line Interface? A.
    [Show full text]
  • UNIX/Linux Fundamentals – Lecture 1
    UNIX/Linux Fundamentals – Lecture 1 Md Modasshir What will we cover? • Operating system overview • UNIX commands, shell & process mgt. • Scripting languages • Programming tools • Various text editors • X11 & KDE windows env • Basic C/C++ programming and other applications (emacs, gcc-g++, gzip, tar, …) Schedule Lectures – Monday through Friday 08:30 – 10:50am • Quizzes taken at the end of lecture/beginning of 2nd class • Final: Saturday May 14th. • Project due May 14th @ 05:00 pm. Books USC Bookstore Other helpful resources http://safari.oreilly.com Who cares, how do I get an A? • 4 Assignments: 40% • 1 Project: 20% • 4 Quizzes: 20% • Final: 20% Cheating • Don’t Cheating • Don’t • Seriously, don’t Individual Effort • Assignments and quizzes are open book, open notes, open computer/internet! • This is a hands on course designed to familiarize YOU with the unix/linux environment. • You will need these skills in future classes. • Cheat and pay the price later. • Why not learn this stuff now? Our Heroes Ken Thompson Dennis Ritchie Video Games Spark Innovation PDP-7 Space Pilot In the Beginning • UNICS: 1969 – PDP-7 minicomputer • PDP-7 goes away, rewritten on PDP-11 to “help patent lawyers” • V1: 1971 • V3: 1973 (pipes, C language) • V6: 1976 (rewritten in C, base for BSD) • V7: 1979 (Licensed, portable) PDP-11 Derivative Systems • PWB, MERT • BSD: Adds many important features (networking, job control). • AT&T enters the computer business with System III, V Commercial Success • AIX • SunOS, Solaris • Ultrix, Digital Unix • HP-UX • Irix • UnixWare -> Novell -> SCO -> Caldera ->SCO • Xenix: -> SCO • Standardization (Posix, X/Open) Standards and Wars • 1998: POSIX Standard • Unix International vs.
    [Show full text]
  • The Tragedy of Systemd
    The Tragedy of systemd [email protected] @jeamland The Tragedy of systemd [email protected] @jeamland Aurynn Shaw, “Contempt Culture” http://blog.aurynn.com/2015/12/16-contempt-culture Change The Ancestry of systemd UNIX Seventh Edition Unix (1979) … housekeeping functions like… mounting filesystems, and starting “ daemons. - init(8) manual page, Seventh Edition Unix PDP-11/70, Seventh Edition Unix VAX-11/730, 4.3BSD Living Computers Museum+Labs https://livingcomputers.org Then things changed Service … housekeeping functions like… mounting filesystems, and starting “ daemons. - init(8) manual page, Seventh Edition Unix System Configuration System Configuration Service Bootstrap Automated Service Management The Idea of systemd launchd The Idea of launchd From launchd to systemd Lennart Poettering, “Rethinking PID 1” http://0pointer.net/blog/projects/systemd.html For a fast and efficient boot-up two things are crucial: “ ➤ To start less. ➤ And to start more in parallel. -Lennart Poettering, “Rethinking PID 1” An init system that is responsible for maintaining services needs to listen to “ hardware and software changes. -Lennart Poettering, “Rethinking PID 1” [I]s this kind of logic new? No, it certainly is not. The most prominent “ system that works like this is Apple's launchd system… -Lennart Poettering, “Rethinking PID 1” System Management Userspace Kernel Userspace System Kernel The Reality of systemd Adoption Fedora 15 May, 2011 openSUSE 12.2 September, 2012 CentOS 7.14.04 April, 2014 Red Hat Enterprise Linux 7.0 June, 2014 SUSE Linux Enterprise
    [Show full text]
  • Augmented Unix Userland
    Project MXC-403 Augmented Unix Userland Major Qualifying Project Submitted to the Faculty of Worcester Polytechnic Institute in partial fulfillment of the requirements for the Degree in Bachelor of Science in Computer Science By Sam Abradi [email protected] Ian Naval [email protected] Fredric Silberberg [email protected] Submitted On: April 30, 2015 Project Advisor: Professor Michael Ciaraldi [email protected] This report represents work of WPI undergraduate students submitted to the faculty as evidence of a degree requirement. WPI routinely publishes these reports on its web site without editorial or peer review. For more information about the projects program at WPI, see http: // www. wpi. edu/ Academics/ Projects . Abstract The Unix philosophy has resulted in stringing together simple general purpose utili- ties to accomplish complex tasks. However, using text as a communication medium between these programs requires several formatting utilities to transform output from one program into valid input to another. These transformations can be very complicated and confusing. This project looked at two alternative shell designs that use different communication methods between programs, simplifying interprogram communication and leveraging existing technologies to make developing new utilities and shell scripts easier. i Contents Abstracti List of Figuresv List of Tables vi 1 Introduction1 1.1 AUU Terminology.............................1 1.2 Motivation.................................1 1.3 The AUU Project.............................3 2 JSON Shell4 2.1 Motivation: Why JSON?.........................4 2.2 JSON Protocol Design..........................4 Streams..................................4 Standards and Definitions........................5 Example Use Case: ps..........................6 2.3 Tributary.................................8 Tributary Selectors............................8 Using Tributary to Standardize Output.................9 2.4 Utilities Implemented..........................
    [Show full text]
  • Systemd from Wikipedia, the Free Encyclopedia for Other Uses, See System D (Disambiguation)
    systemd From Wikipedia, the free encyclopedia For other uses, see System D (disambiguation). systemd Startup messages on Fedora 17, which uses systemd Original author(s) Lennart Poettering, Kay Sievers, Harald Hoyer, Daniel Mack, Tom Gundersen and David Herrmann Developer(s) Lennart Poettering, Kay Sievers, Harald Hoyer, Daniel Mack, Tom Gundersen, David Herrmann, and others[1] Initial release 30 March 2010 Stable release 219 (February 16, 2015) [±] (https://en.wikipedia.org/w/index.php? title=Template:Latest_stable_software_release/systemd&action=edit)[2] Written in C[3] Operating system Linux Type System software License GNU LGPL 2.1+[4] Website freedesktop.org/.../systemd/ (http://freedesktop.org/wiki/Software/systemd/) systemd is a suite of system management daemons, libraries, and utilities designed as a central management and configuration platform for the Linux computer operating system. Described by its authors as a "basic building block" for an operating system,[5] systemd can be used as a Linux init system (the process called by the Linux kernel to initialize the user space during the Linux startup process and manage all processes afterwards) replacing the UNIX System V and Berkeley Software Distribution (BSD) style daemon. The name systemd adheres to the Unix convention of making daemons easier to distinguish by having the letter d as the last letter of the filename.[6] systemd is designed for Linux and programmed exclusively for the Linux API. It is published as free and open-source software under the terms of the GNU Lesser General Public License (LGPL) version 2.1 or later.[4] One of systemd's main goals is to unify basic Linux configurations and service behaviors across all distributions.[7] The design of systemd has generated significant controversy within the free software community.
    [Show full text]
  • “The Unix Philosophy”
    “The Unix Philosophy” Dr. Michael S. Brown Associate Professor School of Computing Brown 1 NERD! http://www.youtube.com/watch?v=dFUlAQZB9Ng Brown 2 One word summary of Unix? Simplicity "UNIX is very simple, it just needs a genius to understand its simplicity.“ Dennis Ritchie (Unix co-creator) Brown 3 Historical Perspective • First generation of computers (1930-1950) – Only a handful of computers in existance • E.g. Zuse Z3, Colossus, Harvard Mark 1, ENIAC – These computers are glorified calculators – Run “programs” in batches – Almost all are “government” sponsored machines Brown 4 Historical Perspective • Second gen computers (1950-1960) – Commercial Computers • IBM, Remington Rand, Burroughs, Honeywell – Mainly used for calculation and statistics – Very expensive • But things are happening – Transistors replace vacuum tubes – Disk storage, printers being developed – High level languages developed Cobol (Common Business-Oriented Language), Fortran (Formula Translator) Brown 5 Historical Perspective • Third Generation (1960-1970) – More players enter the market • Bell Labs, GE, DEC, IBM, HP, Data General, Commodore – Uses are going beyond calculations • Ivan Sutherland introduces GUI, Graphics • Computers are used for Text Editing, type-setting Brown 6 History of “Unics” The “Fathers” of Unix $ man “Ken Thompson” $ man “Dennis Ritchie” BS, MS Com-Sci: UC-Berkley BS, Physics/Math: Harvard Employers: Employers: Bell Labs Bell Labs Entrisphere, Inc Google Notes: 1983 Turning Award Notes: Winner 1983 Turning Award Winner Created the “C” programming
    [Show full text]
  • Chapter 2 Unix
    Chapter 2 Unix UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. –DennisRitchie 2.1 Unix History For many people the term “System Administrator” implies operation of Unix systems, even though the same concepts, tasks and practices apply largely to the maintenance of hosts running any operating system. In this book, we strive to describe principles that are universally applicable and not bound by a specific operating system. We will regularly use Unix as the prime example and cite its features and specific aspects because of its academic background, long history of openness, high penetration of the infrastructure marketplace, and its role as a cornerstone of the Internet. 2.1.1 The Operating System How the Unix operating system came to be and how that relates to the de- velopment of the Internet and various related technologies is fascinating; just 28 CHAPTER 2. UNIX 29 about every other Unix-related book already covers this topic in great detail. In this chapter, we summarize these developments with a focus on the major milestones along the road from the birth of Unix as a test platform for Ken Thompson’s “Space Travel” game running on a PDP-7 to the most widely used server operating system that nowadays also happens to power consumer desktops and laptops (in the form of Linux and Apple’s OS X), mobile de- vices (Apple’s iOS is OS X based and thus Unix derived; Google’s Android is a Linux flavor), TVs, commodity home routers, industry scale networking equipment, embedded devices on the Internet of Things (IoT), and virtually all supercomputers1.
    [Show full text]
  • Understanding-Systemd.Pdf
    Understanding Systemd Linux distributions are adopting or planning to adopt the systemd init system fast. systemd is a suite of system management daemons, libraries, and utilities designed as a central management and conguration platform for the Linux computer operating system. Described by its authors as a “basic building block” for an operating system, systemd primarily aims to replace the Linux init system (the rst process executed in user space during the Linux startup process) inherited from UNIX System V and Berkeley Software Distribution (BSD). The name systemd adheres to the Unix convention of making daemons easier to distinguish by having the letter d as the last letter of the filename. systemd is designed for Linux and programmed exclusively for the Linux API. It is published as free and open-source software under the terms of the GNU Lesser General Public License (LGPL) version 2.1 or later. The design of systemd generated signicant controversy within the free software community, leading the critics to argue that systemd’s architecture violates the Unix philosophy and that it will eventually form a system of interlocking dependencies. However, as of 2015 most major Linux distributions have adopted it as their default init system. Lennart Poettering and Kay Sievers, software engineers that initially developed systemd, sought to surpass the efciency of the init daemon in several ways. They wanted to improve the software framework for expressing dependencies, to allow more processing to be done concurrently or in parallel during system booting, and to reduce the computational overhead of the shell. Poettering describes systemd development as “never nished, never complete, but tracking progress of technology”.
    [Show full text]