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

What's hot

Chapter 1: Introduction to Unix / Linux Kernel
Chapter 1: Introduction to Unix / Linux KernelChapter 1: Introduction to Unix / Linux Kernel
Chapter 1: Introduction to Unix / Linux Kernel
Dr.Ashvini Chaudhari Bhongade
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
ABhay Panchal
 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
Unless Yuriko
 
Unix operating system
Unix operating systemUnix operating system
Unix operating systemmidhunjose4u
 
Unix Security
Unix SecurityUnix Security
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
subhsikha
 
linux software architecture
linux software architecture linux software architecture
linux software architecture
Sneha Ramesh
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
Nishant Munjal
 
unix training | unix training videos | unix course unix online training
unix training |  unix training videos |  unix course  unix online training unix training |  unix training videos |  unix course  unix online training
unix training | unix training videos | unix course unix online training
Nancy Thomas
 
Unix
UnixUnix
Unix
Erm78
 
UNIX Operating System ppt
UNIX Operating System pptUNIX Operating System ppt
Linux advanced concepts - Part 1
Linux advanced concepts - Part 1Linux advanced concepts - Part 1
Linux advanced concepts - Part 1
NAILBITER
 
Unix operating system basics
Unix operating system basicsUnix operating system basics
Unix operating system basics
Sankar Suriya
 
Unix ppt
Unix pptUnix ppt
Unix ppt
sudhir saurav
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
Goutam Sahoo
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
Deepanshu Gahlaut
 
Unix architecture | Operating System
Unix architecture | Operating SystemUnix architecture | Operating System
Unix architecture | Operating System
Sumit Pandey
 
Unix operating system architecture with file structure
Unix operating system architecture with file structure Unix operating system architecture with file structure
Unix operating system architecture with file structure
amol_chavan
 

What's hot (20)

Chapter 1: Introduction to Unix / Linux Kernel
Chapter 1: Introduction to Unix / Linux KernelChapter 1: Introduction to Unix / Linux Kernel
Chapter 1: Introduction to Unix / Linux Kernel
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
 
Unix Security
Unix SecurityUnix Security
Unix Security
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
linux software architecture
linux software architecture linux software architecture
linux software architecture
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
unix training | unix training videos | unix course unix online training
unix training |  unix training videos |  unix course  unix online training unix training |  unix training videos |  unix course  unix online training
unix training | unix training videos | unix course unix online training
 
Unix
UnixUnix
Unix
 
Unix Introduction
Unix IntroductionUnix Introduction
Unix Introduction
 
UNIX Operating System ppt
UNIX Operating System pptUNIX Operating System ppt
UNIX Operating System ppt
 
Linux advanced concepts - Part 1
Linux advanced concepts - Part 1Linux advanced concepts - Part 1
Linux advanced concepts - Part 1
 
Unix operating system basics
Unix operating system basicsUnix operating system basics
Unix operating system basics
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
 
Unix architecture | Operating System
Unix architecture | Operating SystemUnix architecture | Operating System
Unix architecture | Operating System
 
Linux kernel architecture
Linux kernel architectureLinux kernel architecture
Linux kernel architecture
 
Unix operating system architecture with file structure
Unix operating system architecture with file structure Unix operating system architecture with file structure
Unix operating system architecture with file structure
 

Similar to Unix lecture1

Bn1025 demo basic unix
Bn1025 demo  basic unixBn1025 demo  basic unix
Bn1025 demo basic unix
conline training
 
Why Unix?
Why Unix?Why Unix?
Why Unix?
Isaac George
 
Presentation on o s for bca iv
Presentation on o s for bca ivPresentation on o s for bca iv
Presentation on o s for bca iv
Ajit Singh
 
Unix _linux_fundamentals_for_hpc-_b
Unix  _linux_fundamentals_for_hpc-_bUnix  _linux_fundamentals_for_hpc-_b
Unix _linux_fundamentals_for_hpc-_b
Mohammad Reza Beygi
 
Ch1-Unix.pptx
Ch1-Unix.pptxCh1-Unix.pptx
Ch1-Unix.pptx
VarunBonkinpallewar1
 
Presentation1.pdf
Presentation1.pdfPresentation1.pdf
Presentation1.pdf
RahulGhosh767154
 
Plan 9: Not (Only) A Better UNIX
Plan 9: Not (Only) A Better UNIXPlan 9: Not (Only) A Better UNIX
Plan 9: Not (Only) A Better UNIX
National Cheng Kung University
 
Introduction to unix (1).pptx
Introduction to unix (1).pptxIntroduction to unix (1).pptx
Introduction to unix (1).pptx
virat834293
 
Unix Operaring System
Unix Operaring SystemUnix Operaring System
Unix Operaring System
Mahnoor Shaukat
 
unixoperatingsystem-130327073532-phpapp01.pdf
unixoperatingsystem-130327073532-phpapp01.pdfunixoperatingsystem-130327073532-phpapp01.pdf
unixoperatingsystem-130327073532-phpapp01.pdf
IxtiyorTeshaboyev
 
UNIX_Module 1.pdf
UNIX_Module 1.pdfUNIX_Module 1.pdf
UNIX_Module 1.pdf
krishnaraj714229
 
Is it time to rewrite the operating system in Rust?
Is it time to rewrite the operating system in Rust?Is it time to rewrite the operating system in Rust?
Is it time to rewrite the operating system in Rust?
bcantrill
 
CHAPTER 1 INTRODUCTION TO UNIX.pptx
CHAPTER 1 INTRODUCTION TO UNIX.pptxCHAPTER 1 INTRODUCTION TO UNIX.pptx
CHAPTER 1 INTRODUCTION TO UNIX.pptx
MahiDivya
 
Linux [2005]
Linux [2005]Linux [2005]
Linux [2005]Raul Soto
 
Linux
LinuxLinux
Introduction about linux
Introduction about linuxIntroduction about linux
Introduction about linux
ABHISHEK KUMAR
 
UNIX and Linux - an introduction by Mathias Homann
UNIX and Linux - an introduction by Mathias HomannUNIX and Linux - an introduction by Mathias Homann
UNIX and Linux - an introduction by Mathias Homann
Mathias Homann
 

Similar to Unix lecture1 (20)

Bn1025 demo basic unix
Bn1025 demo  basic unixBn1025 demo  basic unix
Bn1025 demo basic unix
 
Why Unix?
Why Unix?Why Unix?
Why Unix?
 
Presentation on o s for bca iv
Presentation on o s for bca ivPresentation on o s for bca iv
Presentation on o s for bca iv
 
Unix _linux_fundamentals_for_hpc-_b
Unix  _linux_fundamentals_for_hpc-_bUnix  _linux_fundamentals_for_hpc-_b
Unix _linux_fundamentals_for_hpc-_b
 
Ch1-Unix.pptx
Ch1-Unix.pptxCh1-Unix.pptx
Ch1-Unix.pptx
 
Presentation1.pdf
Presentation1.pdfPresentation1.pdf
Presentation1.pdf
 
Plan 9: Not (Only) A Better UNIX
Plan 9: Not (Only) A Better UNIXPlan 9: Not (Only) A Better UNIX
Plan 9: Not (Only) A Better UNIX
 
Introduction to unix (1).pptx
Introduction to unix (1).pptxIntroduction to unix (1).pptx
Introduction to unix (1).pptx
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Unix Operaring System
Unix Operaring SystemUnix Operaring System
Unix Operaring System
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
 
unixoperatingsystem-130327073532-phpapp01.pdf
unixoperatingsystem-130327073532-phpapp01.pdfunixoperatingsystem-130327073532-phpapp01.pdf
unixoperatingsystem-130327073532-phpapp01.pdf
 
UNIX_Module 1.pdf
UNIX_Module 1.pdfUNIX_Module 1.pdf
UNIX_Module 1.pdf
 
Os concepts
Os conceptsOs concepts
Os concepts
 
Is it time to rewrite the operating system in Rust?
Is it time to rewrite the operating system in Rust?Is it time to rewrite the operating system in Rust?
Is it time to rewrite the operating system in Rust?
 
CHAPTER 1 INTRODUCTION TO UNIX.pptx
CHAPTER 1 INTRODUCTION TO UNIX.pptxCHAPTER 1 INTRODUCTION TO UNIX.pptx
CHAPTER 1 INTRODUCTION TO UNIX.pptx
 
Linux [2005]
Linux [2005]Linux [2005]
Linux [2005]
 
Linux
LinuxLinux
Linux
 
Introduction about linux
Introduction about linuxIntroduction about linux
Introduction about linux
 
UNIX and Linux - an introduction by Mathias Homann
UNIX and Linux - an introduction by Mathias HomannUNIX and Linux - an introduction by Mathias Homann
UNIX and Linux - an introduction by Mathias Homann
 

Recently uploaded

What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
christianmathematics
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 

Recently uploaded (20)

What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 

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