SlideShare a Scribd company logo
1 of 13
UNIX and Shell Programming
(06CS36)
Unit 1Continuedโ€ฆ
RRM
Agenda
Feature of UNIX
A Brief History of UNIX
Command Structure and Usage
man Pages
Further help with man โ€“k, apropos and whatis
Troubleshooting terminal issues
RRM
Features of UNIX
Multiuser System
Multitasking System
The Building Block Approach
The UNIX Toolkit
Programming Facility
Documentation
Pattern Matching
RRM
A Brief History of UNIX
Multics
Unics
UNIXV1
UNIXV3
UNIXV4
UNIXV7
1965 1969 1970 1973 1973 1979
BSD
UNIX
AT&T
UN
IX
BSD
4.1
BSD
4.2
BSD
4.4
1981 1983 1993
System
III
System
V
1982 1984
1998 โ€“ X/OPEN & IEEE started work to merge two standards
2001 โ€“ Single UNIX Specification Version 3 (SUSV3)
Also known as IEEE1003.1:2001
2002 โ€“ ISO standardized SUSV3 and IEEE1003.1:2001
Multiple Standards
AT&T โ€“ System V Interface Definition
X/OPEN โ€“ X/OPEN Portability Guide (XPG)
IEEE โ€“ Portable Operating System Interface for Computing Environments (POSIX)
RRM
Command Structure
A UNIX command is an action request given to the UNIX shell for execution.
All UNIX commands apply an action or a series of actions to some input data and
create some output data. All UNIX commands are case sensitive.
The command format is
$ verb [options] [arguments]
where
verb is the command name
options modify how the action is applied and
arguments provide additional information to the command
There are a few commands (like pwd) that donโ€™t take any arguments,
some commands (like who, ls) that may or may not take any arguments and
some commands (like cut) that compulsorily take arguments.
RRM
Internal and External Commands
The commands that are built-in as part of the shell are called internal commands.
Example: echo command
A program or file having an independent existence in the /bin directory (or /usr/bin),
is called as an external command.
Example: ls, wc, cal, bc, more โ€ฆ
PATH variable: Contains the sequence of directories that the shell searches to look for
a command.
$ echo $PATH
/bin:/usr/bin:/usr/local/bin:/usr/local/java/bin:.
When you issue a command,
The shell sees if it is a built-in command. If so, it executes it directly.
If not a built-in, it searches the associated file in the directories specified in
PATH. If found, it executes the file.
Otherwise, it triggers a error message.
RRM
Flexibility of Command Usage
A command can often be entered in more than one way.
If used judiciously, you can restrict the number of keystrokes to a minimum.
Examples:
Combining Commands
$ wc chap1 ; ls โ€“l chap1
Command line that overflows
$ echo โ€œThis is
> a three line
> text messageโ€
UNIX lets you type commands without waiting for a prompt; The commands
are passed onto the shell for interpretation after the previous command has
completed.
RRM
man pages
UNIX offers an online help facility in the man command.
man displays the documentation of the specified command.
Example:
$ man wc displays help on wc command
man uses a pager program, which displays this documentation one page at a
time
man is configured to be used with a specific pager.
Two available pagers are:
more, a Berkeley pager, as an alternative to the AT&T pg command
less, the standard pager on Linux systems, also available on UNIX. It is
modeled after vi editor and is more powerful than more..
RRM
User Commands wc(1)
NAME
wc โ€“ displays a count of lines, words and characters in a file
SYNOPSIS
wc [-c | -m | -C] [-lw] [file ...]
DESCRIPTION
The wc utility reads one or more input files and, by default, writes the
number of newline characters, words and bytes contained in each input file
to the standard output. The utility also writes a total count for all named
files, if more than one input file is specified.
OPTIONS
The following options are supported:
-c Count bytes.
-m Count characters.
-C same as โ€“m.
-l Count lines.
-w Count words delimited by white spaces or new line characters ...
OPERANDS
The following operand is supported:
file A path name of an input file. If no file operands are specified,
the standard input will be used.
EXIT STATUS
See largefile(5) for the description of the behavior of wc when
encountering files greater than or equal to 2 Gbyte (2 **31 bytes)
SEE ALSO
cksum(1), isspace(3C), iswalpha(3C), iswspace(3C), largefile(5), ...
A sample man Page
RRM
Organization of man Documentation
Section Subject (SVR4) Subject (Linux)
1 User programs User programs
2 Kernelโ€™s system calls Kernelโ€™s system calls
3 Library functions Library functions
4 Administrative file formats Special files (in /dev)
5 Miscellaneous Administrative file formats
6 Games Games
7 Special files (in /dev) Macro packages and conventions
8 Administration commands Administration commands
RRM
Further help with man โ€“k, apropos and whatis
man โ€“k: Searches a summary database and prints one-line description of the command.
Example: $ man โ€“k awk
awk awk(1) -pattern scanning and processing language
nawk nawk(1) -pattern scanning and processing language
apropos: lists the commands and files associated with a keyword.
Example: $ apropos FTP
ftp ftp(1) -file transfer program
ftpd in.ftpd(1m) -file transfer protocol server
ftpusers ftpusers(4) -file listing users to be disallowed
ftp login privileges
whatis: lists one-liners for a command.
Example: $ whatis cp
cp cp(1) -copy files
RRM
When things go wrong
Terminal settings directly impact keyboard operation, and you should know which
keys to press when things donโ€™t quite work as expected.
Keystroke or
command
Function
[Ctrl-h] Erases text
[Ctrl-c] or Delete Interrupts a command
[Ctrl-d] Terminates login session or a program that expects its input from
keyboard
[Ctrl-s] Stops scrolling of screen output and locks keyboard
[Ctrl-q] Resumes scrolling of screen output and unlocks keyboard
[Ctrl-u] Kills command line without executing it
[Ctrl-] Kills running program but creates a core file containing the
memory image of the program
[Ctrl-z] Suspends process and returns shell prompt; use fg to resume job
[Ctrl-j] Alternative to [Enter]
[[Ctrl-m] Alternative to [Enter]
stty sane Restores terminal to normal status
RRM
End of Session
RRM

More Related Content

What's hot

Unix Introduction
Unix IntroductionUnix Introduction
Unix Introductionananthimurugesan
ย 
Unix
UnixUnix
UnixErm78
ย 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating SystemShivam Pandey
ย 
Unix operating system
Unix operating systemUnix operating system
Unix operating systemABhay Panchal
ย 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating SystemMahakKasliwal
ย 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating SystemFatima Qayyum
ย 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating Systemsubhsikha
ย 
linux software architecture
linux software architecture linux software architecture
linux software architecture Sneha Ramesh
ย 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An IntroductionDeepanshu Gahlaut
ย 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating SystemUnless Yuriko
ย 
A beginners introduction to unix
A beginners introduction to unixA beginners introduction to unix
A beginners introduction to unixzafarali1981
ย 
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
ย 
WELCOME TO THE CORE OF UNIX OPERATING SYSTEM
WELCOME TO THE CORE OF UNIX OPERATING SYSTEMWELCOME TO THE CORE OF UNIX OPERATING SYSTEM
WELCOME TO THE CORE OF UNIX OPERATING SYSTEMNarendra Mohan Mishra
ย 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt onu9
ย 
Introduction about linux
Introduction about linuxIntroduction about linux
Introduction about linuxABHISHEK KUMAR
ย 
Linux advanced concepts - Part 1
Linux advanced concepts - Part 1Linux advanced concepts - Part 1
Linux advanced concepts - Part 1NAILBITER
ย 
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)

Unix Introduction
Unix IntroductionUnix Introduction
Unix Introduction
ย 
Unix
UnixUnix
Unix
ย 
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 Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
ย 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
ย 
linux software architecture
linux software architecture linux software architecture
linux software architecture
ย 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
ย 
Unix ppt
Unix pptUnix ppt
Unix ppt
ย 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
ย 
A beginners introduction to unix
A beginners introduction to unixA beginners introduction to unix
A beginners 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 Operating System ppt
UNIX Operating System pptUNIX Operating System ppt
UNIX Operating System ppt
ย 
WELCOME TO THE CORE OF UNIX OPERATING SYSTEM
WELCOME TO THE CORE OF UNIX OPERATING SYSTEMWELCOME TO THE CORE OF UNIX OPERATING SYSTEM
WELCOME TO THE CORE OF UNIX OPERATING SYSTEM
ย 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
ย 
Linux basics
Linux basicsLinux basics
Linux basics
ย 
Introduction about linux
Introduction about linuxIntroduction about linux
Introduction about linux
ย 
Linux advanced concepts - Part 1
Linux advanced concepts - Part 1Linux advanced concepts - Part 1
Linux advanced concepts - Part 1
ย 
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 Unit 1-a-brief-history-of-unix-ppt

Chapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix ConceptsChapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix ConceptsMeenalJabde
ย 
Linux Commands
Linux CommandsLinux Commands
Linux CommandsRamasubbu .P
ย 
Linuxppt
LinuxpptLinuxppt
LinuxpptReka
ย 
Unix OS & Commands
Unix OS & CommandsUnix OS & Commands
Unix OS & CommandsMohit Belwal
ย 
Linux Command Suumary
Linux Command SuumaryLinux Command Suumary
Linux Command Suumarymentorsnet
ย 
Karkha unix shell scritping
Karkha unix shell scritpingKarkha unix shell scritping
Karkha unix shell scritpingchockit88
ย 
LINUX
LINUXLINUX
LINUXARJUN
ย 
Unix environment [autosaved]
Unix environment [autosaved]Unix environment [autosaved]
Unix environment [autosaved]Er Mittinpreet Singh
ย 
Introduction to Unix-like systems (Part I-IV)
Introduction to Unix-like systems (Part I-IV)Introduction to Unix-like systems (Part I-IV)
Introduction to Unix-like systems (Part I-IV)hildenjohannes
ย 
cisco
ciscocisco
ciscoedomaldo
ย 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to UnixSudharsan S
ย 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.pptGowthamRaju15
ย 
Linux powerpoint
Linux powerpointLinux powerpoint
Linux powerpointbijanshr
ย 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scriptsPrashantTechment
ย 
unix.ppt
unix.pptunix.ppt
unix.pptjeronimored
ย 

Similar to Unit 1-a-brief-history-of-unix-ppt (20)

Chapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix ConceptsChapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix Concepts
ย 
Linux
LinuxLinux
Linux
ย 
Linux Commands
Linux CommandsLinux Commands
Linux Commands
ย 
Linuxppt
LinuxpptLinuxppt
Linuxppt
ย 
Linuxppt
LinuxpptLinuxppt
Linuxppt
ย 
Unix OS & Commands
Unix OS & CommandsUnix OS & Commands
Unix OS & Commands
ย 
Linux Command Suumary
Linux Command SuumaryLinux Command Suumary
Linux Command Suumary
ย 
Karkha unix shell scritping
Karkha unix shell scritpingKarkha unix shell scritping
Karkha unix shell scritping
ย 
LINUX
LINUXLINUX
LINUX
ย 
Linuxppt
LinuxpptLinuxppt
Linuxppt
ย 
Unix environment [autosaved]
Unix environment [autosaved]Unix environment [autosaved]
Unix environment [autosaved]
ย 
Introduction to Unix-like systems (Part I-IV)
Introduction to Unix-like systems (Part I-IV)Introduction to Unix-like systems (Part I-IV)
Introduction to Unix-like systems (Part I-IV)
ย 
cisco
ciscocisco
cisco
ย 
3. intro
3. intro3. intro
3. intro
ย 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
ย 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
ย 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
ย 
Linux powerpoint
Linux powerpointLinux powerpoint
Linux powerpoint
ย 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
ย 
unix.ppt
unix.pptunix.ppt
unix.ppt
ย 

Recently uploaded

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
ย 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
ย 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
ย 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Standamitlee9823
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7Call Girls in Nagpur High Profile Call Girls
ย 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
ย 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
ย 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsArindam Chakraborty, Ph.D., P.E. (CA, TX)
ย 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
ย 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
ย 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
ย 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
ย 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
ย 

Recently uploaded (20)

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
ย 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
ย 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
ย 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
ย 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
ย 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
ย 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
ย 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
ย 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
ย 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
ย 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
ย 

Unit 1-a-brief-history-of-unix-ppt

  • 1. UNIX and Shell Programming (06CS36) Unit 1Continuedโ€ฆ RRM
  • 2. Agenda Feature of UNIX A Brief History of UNIX Command Structure and Usage man Pages Further help with man โ€“k, apropos and whatis Troubleshooting terminal issues RRM
  • 3. Features of UNIX Multiuser System Multitasking System The Building Block Approach The UNIX Toolkit Programming Facility Documentation Pattern Matching RRM
  • 4. A Brief History of UNIX Multics Unics UNIXV1 UNIXV3 UNIXV4 UNIXV7 1965 1969 1970 1973 1973 1979 BSD UNIX AT&T UN IX BSD 4.1 BSD 4.2 BSD 4.4 1981 1983 1993 System III System V 1982 1984 1998 โ€“ X/OPEN & IEEE started work to merge two standards 2001 โ€“ Single UNIX Specification Version 3 (SUSV3) Also known as IEEE1003.1:2001 2002 โ€“ ISO standardized SUSV3 and IEEE1003.1:2001 Multiple Standards AT&T โ€“ System V Interface Definition X/OPEN โ€“ X/OPEN Portability Guide (XPG) IEEE โ€“ Portable Operating System Interface for Computing Environments (POSIX) RRM
  • 5. Command Structure A UNIX command is an action request given to the UNIX shell for execution. All UNIX commands apply an action or a series of actions to some input data and create some output data. All UNIX commands are case sensitive. The command format is $ verb [options] [arguments] where verb is the command name options modify how the action is applied and arguments provide additional information to the command There are a few commands (like pwd) that donโ€™t take any arguments, some commands (like who, ls) that may or may not take any arguments and some commands (like cut) that compulsorily take arguments. RRM
  • 6. Internal and External Commands The commands that are built-in as part of the shell are called internal commands. Example: echo command A program or file having an independent existence in the /bin directory (or /usr/bin), is called as an external command. Example: ls, wc, cal, bc, more โ€ฆ PATH variable: Contains the sequence of directories that the shell searches to look for a command. $ echo $PATH /bin:/usr/bin:/usr/local/bin:/usr/local/java/bin:. When you issue a command, The shell sees if it is a built-in command. If so, it executes it directly. If not a built-in, it searches the associated file in the directories specified in PATH. If found, it executes the file. Otherwise, it triggers a error message. RRM
  • 7. Flexibility of Command Usage A command can often be entered in more than one way. If used judiciously, you can restrict the number of keystrokes to a minimum. Examples: Combining Commands $ wc chap1 ; ls โ€“l chap1 Command line that overflows $ echo โ€œThis is > a three line > text messageโ€ UNIX lets you type commands without waiting for a prompt; The commands are passed onto the shell for interpretation after the previous command has completed. RRM
  • 8. man pages UNIX offers an online help facility in the man command. man displays the documentation of the specified command. Example: $ man wc displays help on wc command man uses a pager program, which displays this documentation one page at a time man is configured to be used with a specific pager. Two available pagers are: more, a Berkeley pager, as an alternative to the AT&T pg command less, the standard pager on Linux systems, also available on UNIX. It is modeled after vi editor and is more powerful than more.. RRM
  • 9. User Commands wc(1) NAME wc โ€“ displays a count of lines, words and characters in a file SYNOPSIS wc [-c | -m | -C] [-lw] [file ...] DESCRIPTION The wc utility reads one or more input files and, by default, writes the number of newline characters, words and bytes contained in each input file to the standard output. The utility also writes a total count for all named files, if more than one input file is specified. OPTIONS The following options are supported: -c Count bytes. -m Count characters. -C same as โ€“m. -l Count lines. -w Count words delimited by white spaces or new line characters ... OPERANDS The following operand is supported: file A path name of an input file. If no file operands are specified, the standard input will be used. EXIT STATUS See largefile(5) for the description of the behavior of wc when encountering files greater than or equal to 2 Gbyte (2 **31 bytes) SEE ALSO cksum(1), isspace(3C), iswalpha(3C), iswspace(3C), largefile(5), ... A sample man Page RRM
  • 10. Organization of man Documentation Section Subject (SVR4) Subject (Linux) 1 User programs User programs 2 Kernelโ€™s system calls Kernelโ€™s system calls 3 Library functions Library functions 4 Administrative file formats Special files (in /dev) 5 Miscellaneous Administrative file formats 6 Games Games 7 Special files (in /dev) Macro packages and conventions 8 Administration commands Administration commands RRM
  • 11. Further help with man โ€“k, apropos and whatis man โ€“k: Searches a summary database and prints one-line description of the command. Example: $ man โ€“k awk awk awk(1) -pattern scanning and processing language nawk nawk(1) -pattern scanning and processing language apropos: lists the commands and files associated with a keyword. Example: $ apropos FTP ftp ftp(1) -file transfer program ftpd in.ftpd(1m) -file transfer protocol server ftpusers ftpusers(4) -file listing users to be disallowed ftp login privileges whatis: lists one-liners for a command. Example: $ whatis cp cp cp(1) -copy files RRM
  • 12. When things go wrong Terminal settings directly impact keyboard operation, and you should know which keys to press when things donโ€™t quite work as expected. Keystroke or command Function [Ctrl-h] Erases text [Ctrl-c] or Delete Interrupts a command [Ctrl-d] Terminates login session or a program that expects its input from keyboard [Ctrl-s] Stops scrolling of screen output and locks keyboard [Ctrl-q] Resumes scrolling of screen output and unlocks keyboard [Ctrl-u] Kills command line without executing it [Ctrl-] Kills running program but creates a core file containing the memory image of the program [Ctrl-z] Suspends process and returns shell prompt; use fg to resume job [Ctrl-j] Alternative to [Enter] [[Ctrl-m] Alternative to [Enter] stty sane Restores terminal to normal status RRM