Web Programming @ MIPT, 2015-2016

Markovtsev Vadim

UNIX crash course

Web Programming @ MIPT, 2015-2016

Server OS share

Unix
67.1%
Windows
32.9%
W3Techs.com, 22 September 2015
Percentages of websites using various operating systems
Note: a website may use more than one operating system

Software licenses

UNIX history

Modern UNIX

Use VirtualBox to try, or install on host (dangerous, but cool).

OS structure

  1. Kernel
  2. Middleware (system libraries)
    • libc
    • Drivers @ userland
  3. Applications
    • Libraries
    • Shell
    • Core utilities
    • Window system (X11, Quartz, etc.)
    • Web browser

Installing software

Package Managers:

Example:

			apt-get install chromium-browser
			brew install git
		

Terminal

Shell

All scripts must carry a shebang, e.g.

			#!/bin/sh -e
		

Core utilities

Example:

			$ ls -la
			total 32
			drwxr-xr-x  5 markhor  staff   170 22 Sep 21:01 .
			drwxr-xr-x  9 markhor  staff   306 22 Sep 20:59 ..
			-rw-r--r--@ 1 markhor  staff  7948 22 Sep 23:23 index.html
		

Standard streams

UNIX signals

UNIX pipes

Learn command-line environment

Console text editors

Next steps

View on Github