The so-called data stream is a series of data read in a certain order, so the direction of the data stream is the order in which the data stream is read. The Linux system redirects the data stream by importing the result of the data output to other In the file. So how does the Linux system redirect the data stream?
Data Stream Redirection
The following is a brief review of the two redirect operations that are often used in the past:
$ echo ‘hello shiyanlou’ 》 redirect
$ echo ‘www.shiyanlou.com’ 》 redirect
$ cat redirect
Of course, there is no such thing as "and "The operation is no problem, as you understand The same, the difference is that the direction of the redirection is inconsistent, "representation is from left to right, "right to left.
1. Simple Redirection
Before you learn more about Linux redirection, you need to know some basic things. As mentioned earlier, Linux provides three special devices by default. The display and output for the terminal are stdin (standard input, corresponding to your input at the terminal), stdout (standard output, corresponding to the output of the terminal), stderr (standard error output, corresponding to the output of the terminal).
File Descriptors
Device Files
Description
0
/dev/stdin
Standard Input< Br>
1
/dev/stdout
Standard Output
2
/dev/stderr
Standard Error One page 12345 next page total 5 pages
In order to use Qt under Linux, you need to install G++ environment before installi
The Linux system storm ui has the kill topology function. If it is not blocked, it will cause the st
We all know that Linux can delete users and groups by using the userdel command, but sometimes it wi
As a Java programmer, you need to install Eclipse on a Linux system, many people do not know how to
How to modify the default timeout time of sudo in Ubuntu system?
How to use rsa password-free login in Linux
What are the differences between the three load balancing methods of LVS?
Two styles of chmod command format under Linux/Ubuntu
Linux boot error report to disable selinux policy?
How to solve the problems encountered when Unix migration to Linux system training
The difference between hardware processing and software processing in Linux system
How to add Swap to Ubuntu boot entry?
How to use Ctags tool to quickly find source code in Linux
How to install LAMP in yum in CentOS6.5 system
How to use Linux to periodically delete expired files using the command
Win10 version of the most foreign radio station iHeartRadio application has been put on the store
Windows 7 PSD file format does not display thumbnail solutions
How to solve WinXP system shutdown failure?
Modifying the Registry to Improve Win8/RT Touch Response
Win7 operation file prompts administrator permission. How to do it
Let Windows XP system activate once and for all
Win7 appears the program does not respond to what to do