SlideShare a Scribd company logo
Created by
TopicsSHELL1Different types of shell
Summary of shell features
Configuration files for shellsREDIRECTION OF OUTPUT AND INPUT 2Redirect descriptor
Redirect usage12Different types of shellShellPathDescriptionOSBourne/bin/shThis is the original Unix shell written by Steve Bourne of Bell Labs. It is available on all UNIX systems.All unixKorn/bin/kshThis shell was written by David Korn of Bell labs. It is now provided as the standard shell on Unix systems.AIXC/bin/cshThis shell was written at the University of California, Berkeley. It provides a C-like language with which to write shell script.BSDTC/bin/tcshThis shell is available in the public domain. It provides all the features of the C shell together with emacs style editing of the command line.MAC OSXBash/bin/bashThis is a public domain shell written by the Free Software Foundation under their GNU initiative.Ubuntu, CentosReference: http://unixhelp.ed.ac.uk/shell/oview2.html
TopicsSHELL1Different types of shell
Summary of shell features
Configuration files for shellsREDIRECTION OF OUTPUT AND INPUT 2Redirect descriptor
Redirect usage12Summary of shell features BourneCTCKornBashCommand historynoyesyesyesyesCommand aliasnoyesyesyesyesShell scripts yesyesyesyesyesFilename completion noyes*yesyes*yesCommand line editing nonoyesyes*yesJob control noyesyesyesyes* Not the default setting for this shell.Reference: http://unixhelp.ed.ac.uk/shell/oview1.1.html
TopicsSHELL1Different types of shell
Summary of shell features
Configuration files for shellsREDIRECTION OF OUTPUT AND INPUT 2Redirect descriptor

More Related Content

PPT
Shell Basics
ODP
Introduction to Shell script
PDF
Rolling Your Own Embedded Linux Distribution
PPTX
Bash shell scripting
PDF
Introduction to Linux Kernel Development
PPTX
Shell & Shell Script
PDF
Shell script-sec
PDF
Unix Shell Scripting
Shell Basics
Introduction to Shell script
Rolling Your Own Embedded Linux Distribution
Bash shell scripting
Introduction to Linux Kernel Development
Shell & Shell Script
Shell script-sec
Unix Shell Scripting

What's hot (8)

PPTX
Easiest way to start with Shell scripting
PDF
Shell scripting
PPTX
Shell Script Tutorial
ODP
Source Code Control System (SCCS)
PPT
Shell programming
PPTX
Ingite Slides for InSpec
ODP
Shellscripting
PDF
Scripting and the shell in LINUX
Easiest way to start with Shell scripting
Shell scripting
Shell Script Tutorial
Source Code Control System (SCCS)
Shell programming
Ingite Slides for InSpec
Shellscripting
Scripting and the shell in LINUX
Ad

Viewers also liked (20)

PPT
05 standard io_and_pipes
PPT
intro unix/linux 03
PDF
Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...
PDF
Course 102: Lecture 8: Composite Commands
PPT
Linux Commands
PDF
Linux pipe & redirection
PPT
Unix tutorial-08
ODP
Ras pioverview
PDF
Linux fundamental - Chap 16 System Rescue
PDF
Chap 18 net
PDF
Chap 17 advfs
PDF
Linux network monitoring hands-on pratice
PPTX
Basics of-linux
PDF
Linux fundamentals
PPT
Power point (asking permission)
PPTX
Unix - Filters/Editors
PDF
Chap 19 web
PDF
Linux fundamental - Chap 13 account management
PDF
Linux fundamental - Chap 05 filter
PDF
Linux fundamental - Chap 09 pkg
05 standard io_and_pipes
intro unix/linux 03
Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...
Course 102: Lecture 8: Composite Commands
Linux Commands
Linux pipe & redirection
Unix tutorial-08
Ras pioverview
Linux fundamental - Chap 16 System Rescue
Chap 18 net
Chap 17 advfs
Linux network monitoring hands-on pratice
Basics of-linux
Linux fundamentals
Power point (asking permission)
Unix - Filters/Editors
Chap 19 web
Linux fundamental - Chap 13 account management
Linux fundamental - Chap 05 filter
Linux fundamental - Chap 09 pkg
Ad

Similar to Redirection of output and input in unix/linux (20)

PPTX
Shell Scripting and Programming.pptx
PPTX
Shell Scripting and Programming.pptx
PPT
Using Unix
PDF
Shell scripting1232232312312312312312312
PDF
Shell-Scripting-1.pdf
DOCX
lec4.docx
PPT
01c shell
PPTX
Shell & Shell Script
PDF
Unix shell scripting tutorial
PPT
UnixShells.pptfhfehrguryhdruiygfjtfgrfjht
PPT
UnixShells.ppt
PDF
The Shell Game Part 2: What are your shell choices?
PDF
Course 102: Lecture 10: Learning About the Shell
PDF
Unixshellscript 100406085942-phpapp02
PPT
Introduction to shell scripting ____.ppt
PPTX
Terminals and Shells
PPT
1 4 sp
PPT
34-shell-programming asda asda asd asd.ppt
PPT
Shell_Scripting.ppt
Shell Scripting and Programming.pptx
Shell Scripting and Programming.pptx
Using Unix
Shell scripting1232232312312312312312312
Shell-Scripting-1.pdf
lec4.docx
01c shell
Shell & Shell Script
Unix shell scripting tutorial
UnixShells.pptfhfehrguryhdruiygfjtfgrfjht
UnixShells.ppt
The Shell Game Part 2: What are your shell choices?
Course 102: Lecture 10: Learning About the Shell
Unixshellscript 100406085942-phpapp02
Introduction to shell scripting ____.ppt
Terminals and Shells
1 4 sp
34-shell-programming asda asda asd asd.ppt
Shell_Scripting.ppt

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
KodekX | Application Modernization Development
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Big Data Technologies - Introduction.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Empathic Computing: Creating Shared Understanding
PPTX
sap open course for s4hana steps from ECC to s4
Programs and apps: productivity, graphics, security and other tools
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
KodekX | Application Modernization Development
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Encapsulation_ Review paper, used for researhc scholars
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Big Data Technologies - Introduction.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Network Security Unit 5.pdf for BCA BBA.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Spectroscopy.pptx food analysis technology
Spectral efficient network and resource selection model in 5G networks
Empathic Computing: Creating Shared Understanding
sap open course for s4hana steps from ECC to s4

Redirection of output and input in unix/linux

  • 4. Configuration files for shellsREDIRECTION OF OUTPUT AND INPUT 2Redirect descriptor
  • 5. Redirect usage12Different types of shellShellPathDescriptionOSBourne/bin/shThis is the original Unix shell written by Steve Bourne of Bell Labs. It is available on all UNIX systems.All unixKorn/bin/kshThis shell was written by David Korn of Bell labs. It is now provided as the standard shell on Unix systems.AIXC/bin/cshThis shell was written at the University of California, Berkeley. It provides a C-like language with which to write shell script.BSDTC/bin/tcshThis shell is available in the public domain. It provides all the features of the C shell together with emacs style editing of the command line.MAC OSXBash/bin/bashThis is a public domain shell written by the Free Software Foundation under their GNU initiative.Ubuntu, CentosReference: http://unixhelp.ed.ac.uk/shell/oview2.html
  • 8. Configuration files for shellsREDIRECTION OF OUTPUT AND INPUT 2Redirect descriptor
  • 9. Redirect usage12Summary of shell features BourneCTCKornBashCommand historynoyesyesyesyesCommand aliasnoyesyesyesyesShell scripts yesyesyesyesyesFilename completion noyes*yesyes*yesCommand line editing nonoyesyes*yesJob control noyesyesyesyes* Not the default setting for this shell.Reference: http://unixhelp.ed.ac.uk/shell/oview1.1.html
  • 11. Summary of shell features
  • 12. Configuration files for shellsREDIRECTION OF OUTPUT AND INPUT 2Redirect descriptor
  • 13. Redirect usage12Configuration files for shellsshkshcshtcshbash/etc/.loginloginlogin/etc/csh.cshrcyesyes/etc/csh.loginloginlogin~/.tcshrcyes~/.cshrcyesyes~/.loginloginlogin~/.logoutloginlogin/etc/profileloginloginlogin~/.profileloginloginlogin~/.bash_profilelogin~/.bash_loginlogin~/.bash_logoutlogin~/.bashrcint. + n/login blank means a file is not read by a shell at all."yes" means a file is always read by a shell upon startup."login" means a file is read if the shell is a login shell."n/login" means a file is read if the shell is not a login shell."int." means a file is read if the shell is interactive.Reference: http://en.wikipedia.org/wiki/Unix_shell
  • 15. Summary of shell features
  • 16. Configuration files for shellsREDIRECTION OF OUTPUT AND INPUT 2Redirect descriptor
  • 17. Redirect usage12Redirect descriptorDescriptorDescription0Standard Input (Generally Keyboard)1Standard output (Generally Display/Screen)2Standard Error Ouput (Generally Display/Screen)>Redirect standard output2>Redirect standard error2>&1Redirect standard error to standard output<Redirect standard input from>>Append to standard output&Run as background process
  • 19. Summary of shell features
  • 20. Configuration files for shellsREDIRECTION OF OUTPUT AND INPUT 2Redirect descriptor
  • 21. Redirect usage12Redirect usageLet me write the example about how to use redirection in various purpose.Redirect standard output to a file #!/bin/bash/home/panu/start-application1.sh > fileAppend standard output to a file #!/bin/bash/home/panu/start-application1.sh >> fileRedirect standard input from file#!/bin/bash/home/panu/start-application1.sh < fileRedirect standard output to “std_out.log” and redirect standard error to “std_error.log”#!/bin/bash/home/panu/start-application1.sh > std_out.log  2> std_err.logRedirect standard error to standard output “std_out_err.log”#!/bin/bash/home/panu/start-application1.sh > std_out_err.log  2>&1
  • 22. Thank you for watchingmy presentationCreated bypanuausavasereelertblog: http://panu.in.themail: panu@panu.in.thtwitter: @panuinth