Download The Unix Philosophy

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Linux adoption wikipedia , lookup

Process management (computing) wikipedia , lookup

MTS system architecture wikipedia , lookup

Smallfoot wikipedia , lookup

Caldera OpenLinux wikipedia , lookup

Acorn MOS wikipedia , lookup

RSTS/E wikipedia , lookup

Security-focused operating system wikipedia , lookup

Burroughs MCP wikipedia , lookup

CP/M wikipedia , lookup

Batch file wikipedia , lookup

VS/9 wikipedia , lookup

Plan 9 from Bell Labs wikipedia , lookup

Comparison of command shells wikipedia , lookup

Spring (operating system) wikipedia , lookup

DNIX wikipedia , lookup

Berkeley Software Distribution wikipedia , lookup

History of Unix wikipedia , lookup

Unix time wikipedia , lookup

Unix wikipedia , lookup

Unix security wikipedia , lookup

Transcript
Agenda

Getting Started: Using Unix





Unix Structure / Features
Elements of the Unix Philosophy
Unix Command Structure
Command Line Editing
Online Unix Command Manual (man)
Textbook Coverage
These PowerPoint notes are based on
Chapter 2 of textbook “A Practical Guide
to Linux”

Read pages 19 to 30
Unix Structure
The Linux operating system (OS) can be visualized
in terms of layers:
UNIX UTILITIES
Inventory control
A
comprehensive set of utilities used by Unix administrators & users.
systems
Utilities are often referred to as commands
UNIX SHELL
Interpreters
Acts as a command interpreter and as an interface between users
and the operating system
Linux Kernel
UNIX KERNEL
Spreadsheet
The shell
& other
Controls computer
resources
and schedules jobs
applications
basic utilities
Computer Hardware (Devices)
Editors
Word processors
Unix Features




The Unix operating system has the ability to run many
processes (jobs) at the same time. Many jobs create other jobs
that run simultaneously (for example, the Unix OS Kernel is a
job which creates other jobs such as scheduling tasks, etc).
Running many processes at the same time can allow many
users to connect to and use the computer resources at the
same time (This concept is referred to as "multitasking").
The Unix file system allows users to share or restrict access to
their files and directories.
Unix allows for a “Super-user” or “root” account to update or
modify the UNIX Kernel (operating system).
Unix Features



The Unix Shell provides a command interpreter to allow the user
to communicate with the computer system (both on a software
and hardware basis).
There are thousands of commands available. Many of these
commands or "utilities" are available for the regular user. There
are also commands that are available for the "super-user" for
administering the OS.
The Shell is not only a command interpreter, but is also a
programming interface - commands can be bundled into files to
be run (shell scripts) to accomplish many tasks.
The Unix Philosophy


The Unix operating system is
considered to be a “complex” operating
system by the beginning user.
In order to get an “intuitive feel” (better
understanding) of Unix, users should
understand the philosophy of Unix
which was developed by its creators
over 30 years ago.
Elements of the Unix
Philosophy


“Keep It Small and Simple (KISS)”:
Do one task well (i.e. A command should be
designed to do only one task and do it well).
“Understand the Unix Hierarchy”
Everything on the UNIX OS is interpreted as a file
(file, directory, device). Directories are structured in
a Hierarchical nature (like a family tree) to better
organize material. Similar concept applies to
processes.
Elements of the Unix
Philosophy


“Using Pipes”:
Unix commands can be connected by a mechanism
called "pipes" to modify results from a command
(this process is called "filtering"). In this way, small
and specific commands can be connected together
to achieve the desired output or results.
“People can Read”
There is much documentation available to help the
user to solve problems related to Unix and Linux,
such as HOWTO manuals, online documentation and
newsgroups.
Utilities (Commands)



For the remainder of this course, you can
assume that utilities and commands mean the
same thing.
Linux commands are usually typed in
lowercase followed by an argument (or
arguments).
Pressing ENTER or RETURN signals that you
have completed giving an instruction and that
you are ready for the OS to execute the
command or respond to your message.
Unix Command Structure
command [arg 1] [arg 2] … [arg n]



An argument is a filename, string or text, or some
other object that a command acts upon.
An option is also an argument that modifies the
effect of a command.
A space, a number of spaces, or a tab can be used
to separate commands from arguments, or to
separate arguments.
Command Line Editing
You can correct a mistyped command
prior to pressing ENTER or RETURN

Erase Characters


Delete a Word


Backspace or CTRL-Backspace or CTRL-h
CTRL-w
Delete an Entire Line

CTRL-u
Command Line Editing

Aborting Program Execution


CTRL-c or DELETE
Recalling Previous Commands


Phobos:
 <ESC><K>
(K - up, J - down)
Matrix:
 Up arrow , Down arrow
Online Command Manual
(man)
A comprehensive online manual for common
UNIX commands
format:
man [options] command
Options:
-k
provides short (one-line) explanation relating
to the commands matching the character string
eg. man -k calendar