SlideShare a Scribd company logo
UNIX Operating System
Unit 1
410.634, Johns Hopkins University
©John M. Greene, Ph.D., 1999-2011
All Rights Reserved
What is an operating system?
• Hardware
• OS
• Applications
• OS is the interface between the applications
and the hardware - takes care of hardware
initialization and shutdown, manages
processes, and allocates resources
What is UNIX, and Why Is It
Used in Bioinformatics?
• UNIX is an interactive, reliable, multi-user
operating system which optimizes available
hardware power.
• UNIX experienced renewed interest due, in part,
to the availability of computer systems designed to
run it which offer better performance at a lower
price than their proprietary counterparts.
• Most real bioinformatics software (BLAST,
FASTA; relational databases) is written for UNIX.
The Mouse Is For Wimps
 The quickest way to do something on a computer is
with the keyboard, not the mouse.
 Many times for UNIX, there is no mouse!
UNIX
• OS, plus a set of standard libraries and
standard applications
• Kernel - hardware and process management
– UNIX sees each device as a file
– implements security
– allocates resources, including use of the CPU
• Shell - program that talks to the kernel and
passes on requests
UNIX Philosophy
• Open source (not proprietary) - more or less
• Simple, orthogonal commands - each tool
does one thing really well
• Commands connected through pipes
• Common interface style - mainly command-
line, but there is the X Window System - a
large program from MIT allowing
computers to create graphical windows,
used on many different Unix platforms
• No file types required
UNIX drawbacks
• Inconsistencies and overlapping functions - too
many cooks over 25 years
• Much higher learning curve than Mac/Windows
• Few popular programs currently available -
Netscape,WordPerfect, and Star Office (from Sun
Microsystems; can read Microsoft formats)
• Until Linux and open source, relatively expensive
UNIX History
• Unix history goes back to 1969. Ken Thompson and
Dennis Ritchie sketched out a new operating system that
would meet Bell Labs' needs.
• For the first 10 years, Unix development was essentially
confined to Bell Labs. The C language was originally
designed for the Unix operating system, and hence there
is a strong synergy between C and Unix. In fact, the
UNIX OS was re-written into C.
• The name "Unix" was intended as a pun on Multics, an
effort to develop a multiplex user system that could do
time-sharing (UNIX was written "Unics" at first --
UNiplexed Information and Computing System).
UNIX Families
• System 5 Release 4 ; SVR4 (AT&T Bell Labs
origins)
• BSD (UC Berkeley origins)
• Linux (LIH-nucks)
• UNIX is available for mainframes, workstations,
Windows PCs, and even Macs! (Mac OS X has a
Berkeley-derived UNIX kernel - Darwin)
UNIX Family Tree
Linux
Berkeley (BSD)
SVR4
Bell Labs
1969
~1979
~1990?
UNIX Vendor Versions
• IRIX - SGI (SVR4)
• SunOS, Solaris – Sun (SVR4)
• HP-UX - Hewlett-Packard
• AIX - IBM
• Red Hat, Caldera, SuSE (Linux)
• FreeBSD – bio.pgp.jhu.edu (Berkeley)
• MacOS X – Darwin (Berkeley)
Login
• Username
• Password
• Receive shell prompt
• UNIX IS CASE SENSITIVE!!!!
• Root (superuser) - can do anything; usually
the system administrator
UNIX Shells
• Shell interprets commands and talks to kernel
• Bourne (sh) - lacks job control
• C shell (csh) - job control but difficult for shell
scripts
• Korn (ksh) - C/Bourne hybrid
• Bourne-Again (bash)
• tcsh - extended C shell
• zsh
Control characters
• Hold down Ctrl key and press letter simultaneously
• Ctrl-C Interrupt (terminates current job)
• Ctrl-H Backspace
• Ctrl-Z Quit; suspend job
• Ctrl-S Pause output (but not on JHUNIX)
• Ctrl-Q Resume output (“)
• Ctrl-D logout/exit; end of input
• Ctrl-U kill; erases entire line
• Can use stty erase Ctrl-H to set backspace key, if
different on a given terminal
Getting out
• exit
• Logout (on some systems)
• CTRL-D
UNIX command syntax
command option(s) filename(s)
– commands are entered in lowercase
– options modify how the command works; often
they are preceded by a - (dash) and separated
by spaces. They are also called flags
– options come before filenames
– options and filenames are called arguments
Simple commands
• date
• who - lists users logged on
• whoami – lists logged-in user
• uname -a - name of computer, OS
• passwd - changing your password
• ls – list all files in the current directory
• ls –a – list all files, including hidden files
• ls –l - list all files in long format
Weird vocabulary
• ! Bang
• * Splat, star
• " Double quote
• ' Single quote, tick
• ` Backtick
• . Dot, point
• # Sharp
UNIX error messages
Segmentation fault(core dumped)
- memory error; creates a large file named
core - please delete it!
Broken pipe - one part terminates before
the rest

More Related Content

PPTX
UNIX Operating System
PPTX
Unix seminar
PPTX
WELCOME TO THE CORE OF UNIX OPERATING SYSTEM
PPT
Unit 1-a-brief-history-of-unix-ppt
PPTX
Unix Operating System
PPTX
Unix and shell programming | Unix File System | Unix File Permission | Blocks
PPTX
Operating systems unix
PPTX
Unix Operating System
UNIX Operating System
Unix seminar
WELCOME TO THE CORE OF UNIX OPERATING SYSTEM
Unit 1-a-brief-history-of-unix-ppt
Unix Operating System
Unix and shell programming | Unix File System | Unix File Permission | Blocks
Operating systems unix
Unix Operating System

What's hot (20)

PPTX
Chapter 1: Introduction to Unix / Linux Kernel
PPTX
Unix operating system
PPTX
UNIX Operating System
DOCX
Unix operating system
PPTX
Unix Operating System
PPT
linux software architecture
PPTX
Introduction to Unix
PPT
unix training | unix training videos | unix course unix online training
PPTX
Unix
PPTX
Unix Introduction
PPTX
PDF
Linux advanced concepts - Part 1
PPTX
Unix operating system basics
PPTX
Unix ppt
PPTX
Linux kernel
PDF
Unix - An Introduction
PPTX
Unix architecture | Operating System
PDF
Linux kernel architecture
PPTX
Unix operating system architecture with file structure
Chapter 1: Introduction to Unix / Linux Kernel
Unix operating system
UNIX Operating System
Unix operating system
Unix Operating System
linux software architecture
Introduction to Unix
unix training | unix training videos | unix course unix online training
Unix
Unix Introduction
Linux advanced concepts - Part 1
Unix operating system basics
Unix ppt
Linux kernel
Unix - An Introduction
Unix architecture | Operating System
Linux kernel architecture
Unix operating system architecture with file structure
Ad

Similar to Unix lecture1 (20)

PDF
Bn1025 demo basic unix
PPTX
Why Unix?
PPTX
Programming_Under_Unix_Chapter1 (1).pptx
PPTX
Programming_Chapter1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.pptx
PPSX
Presentation on o s for bca iv
PDF
Unix _linux_fundamentals_for_hpc-_b
PPTX
Ch1-Unix.pptx
PDF
Presentation1.pdf
PDF
Plan 9: Not (Only) A Better UNIX
PPTX
Introduction to unix (1).pptx
PPT
Module1-UNIX architecture; FEATURES OF UNIX OS
PPT
Linux basics
PPTX
Unix Operaring System
PPT
Linux forensics
PDF
unixoperatingsystem-130327073532-phpapp01.pdf
PDF
Lecture 1 - introduction OS learner .pdf
PDF
UNIX_Module 1.pdf
PDF
Linux For Beginners! Ultimate guide to Linux Users!!
PPTX
UNIX OPERATING SYSTEM Internals and Architecture.pptx
PPT
Bn1025 demo basic unix
Why Unix?
Programming_Under_Unix_Chapter1 (1).pptx
Programming_Chapter1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.pptx
Presentation on o s for bca iv
Unix _linux_fundamentals_for_hpc-_b
Ch1-Unix.pptx
Presentation1.pdf
Plan 9: Not (Only) A Better UNIX
Introduction to unix (1).pptx
Module1-UNIX architecture; FEATURES OF UNIX OS
Linux basics
Unix Operaring System
Linux forensics
unixoperatingsystem-130327073532-phpapp01.pdf
Lecture 1 - introduction OS learner .pdf
UNIX_Module 1.pdf
Linux For Beginners! Ultimate guide to Linux Users!!
UNIX OPERATING SYSTEM Internals and Architecture.pptx
Ad

Recently uploaded (20)

PDF
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
PPTX
Cell Structure & Organelles in detailed.
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Insiders guide to clinical Medicine.pdf
PPTX
NOI Hackathon - Summer Edition - GreenThumber.pptx
PDF
Open folder Downloads.pdf yes yes ges yes
PDF
The Final Stretch: How to Release a Game and Not Die in the Process.
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Open Quiz Monsoon Mind Game Final Set.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Pre independence Education in Inndia.pdf
PDF
Basic Mud Logging Guide for educational purpose
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
Cell Structure & Organelles in detailed.
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Insiders guide to clinical Medicine.pdf
NOI Hackathon - Summer Edition - GreenThumber.pptx
Open folder Downloads.pdf yes yes ges yes
The Final Stretch: How to Release a Game and Not Die in the Process.
human mycosis Human fungal infections are called human mycosis..pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
Open Quiz Monsoon Mind Game Final Set.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Renaissance Architecture: A Journey from Faith to Humanism
Pre independence Education in Inndia.pdf
Basic Mud Logging Guide for educational purpose
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Microbial diseases, their pathogenesis and prophylaxis

Unix lecture1

  • 1. UNIX Operating System Unit 1 410.634, Johns Hopkins University ©John M. Greene, Ph.D., 1999-2011 All Rights Reserved
  • 2. What is an operating system? • Hardware • OS • Applications • OS is the interface between the applications and the hardware - takes care of hardware initialization and shutdown, manages processes, and allocates resources
  • 3. What is UNIX, and Why Is It Used in Bioinformatics? • UNIX is an interactive, reliable, multi-user operating system which optimizes available hardware power. • UNIX experienced renewed interest due, in part, to the availability of computer systems designed to run it which offer better performance at a lower price than their proprietary counterparts. • Most real bioinformatics software (BLAST, FASTA; relational databases) is written for UNIX.
  • 4. The Mouse Is For Wimps  The quickest way to do something on a computer is with the keyboard, not the mouse.  Many times for UNIX, there is no mouse!
  • 5. UNIX • OS, plus a set of standard libraries and standard applications • Kernel - hardware and process management – UNIX sees each device as a file – implements security – allocates resources, including use of the CPU • Shell - program that talks to the kernel and passes on requests
  • 6. UNIX Philosophy • Open source (not proprietary) - more or less • Simple, orthogonal commands - each tool does one thing really well • Commands connected through pipes • Common interface style - mainly command- line, but there is the X Window System - a large program from MIT allowing computers to create graphical windows, used on many different Unix platforms • No file types required
  • 7. UNIX drawbacks • Inconsistencies and overlapping functions - too many cooks over 25 years • Much higher learning curve than Mac/Windows • Few popular programs currently available - Netscape,WordPerfect, and Star Office (from Sun Microsystems; can read Microsoft formats) • Until Linux and open source, relatively expensive
  • 8. UNIX History • Unix history goes back to 1969. Ken Thompson and Dennis Ritchie sketched out a new operating system that would meet Bell Labs' needs. • For the first 10 years, Unix development was essentially confined to Bell Labs. The C language was originally designed for the Unix operating system, and hence there is a strong synergy between C and Unix. In fact, the UNIX OS was re-written into C. • The name "Unix" was intended as a pun on Multics, an effort to develop a multiplex user system that could do time-sharing (UNIX was written "Unics" at first -- UNiplexed Information and Computing System).
  • 9. UNIX Families • System 5 Release 4 ; SVR4 (AT&T Bell Labs origins) • BSD (UC Berkeley origins) • Linux (LIH-nucks) • UNIX is available for mainframes, workstations, Windows PCs, and even Macs! (Mac OS X has a Berkeley-derived UNIX kernel - Darwin)
  • 10. UNIX Family Tree Linux Berkeley (BSD) SVR4 Bell Labs 1969 ~1979 ~1990?
  • 11. UNIX Vendor Versions • IRIX - SGI (SVR4) • SunOS, Solaris – Sun (SVR4) • HP-UX - Hewlett-Packard • AIX - IBM • Red Hat, Caldera, SuSE (Linux) • FreeBSD – bio.pgp.jhu.edu (Berkeley) • MacOS X – Darwin (Berkeley)
  • 12. Login • Username • Password • Receive shell prompt • UNIX IS CASE SENSITIVE!!!! • Root (superuser) - can do anything; usually the system administrator
  • 13. UNIX Shells • Shell interprets commands and talks to kernel • Bourne (sh) - lacks job control • C shell (csh) - job control but difficult for shell scripts • Korn (ksh) - C/Bourne hybrid • Bourne-Again (bash) • tcsh - extended C shell • zsh
  • 14. Control characters • Hold down Ctrl key and press letter simultaneously • Ctrl-C Interrupt (terminates current job) • Ctrl-H Backspace • Ctrl-Z Quit; suspend job • Ctrl-S Pause output (but not on JHUNIX) • Ctrl-Q Resume output (“) • Ctrl-D logout/exit; end of input • Ctrl-U kill; erases entire line • Can use stty erase Ctrl-H to set backspace key, if different on a given terminal
  • 15. Getting out • exit • Logout (on some systems) • CTRL-D
  • 16. UNIX command syntax command option(s) filename(s) – commands are entered in lowercase – options modify how the command works; often they are preceded by a - (dash) and separated by spaces. They are also called flags – options come before filenames – options and filenames are called arguments
  • 17. Simple commands • date • who - lists users logged on • whoami – lists logged-in user • uname -a - name of computer, OS • passwd - changing your password • ls – list all files in the current directory • ls –a – list all files, including hidden files • ls –l - list all files in long format
  • 18. Weird vocabulary • ! Bang • * Splat, star • " Double quote • ' Single quote, tick • ` Backtick • . Dot, point • # Sharp
  • 19. UNIX error messages Segmentation fault(core dumped) - memory error; creates a large file named core - please delete it! Broken pipe - one part terminates before the rest