Presentation on how to chat with PDF using ChatGPT code interpreter
Input output redirection linux
1. 1
MCA 3rd SEMESTER ( Lateral Entry )
LINUX
INPUT OUTPUT REDIRECTION
SUBMITTED TO : -
Mr. Adithya V.
SUBMITTED BY : -
Tanishq Soni
2. 2
Introduction
Input – Output Redirection
Redirection is a feature in Linux such that when executing a command, you can change the
standard input/output devices.
The basic workflow of any Linux command is that it takes an input and give an output.
The standard input (stdin) device is the keyboard. The standard output (stdout) device is the screen.
3. 3
Linux treats the keyboard as the standard input (value 0) and terminal screen standard output
(value 1) as well as standard error(value2).
Redirection inputs:
The < symbol is used to redirect inputs. Example
$cat < file.txt
File.txt takes input command cat. Redirecting
Redirection outptuts:
The > symbol is used to redirect outputs.
$ ls >list.doc
4. 4
Redirecting errormessages:
The ‘2>’ symbol is used to redirect error messages.
Example :
$cat 2> list1.doc
If there is no file named list1.doc in the current directory then the error messages is
sent to the standard error device.