What is 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.
With redirection, the above standard input/output can be changed.
也就是說(shuō)我們輸出可以重定向到文件,輸入不用依靠鍵盤(pán)手動(dòng)輸入,而是重定向到文件輸入程序所要的參數(shù);那最重要的就是,我們可以自動(dòng)化啦
不談?shì)敵鲋囟ㄏ?>>,>),那是因?yàn)檎J(rèn)識(shí)了輸入重定向
"<"符號(hào)是用于輸入重定向的