官术网_书友最值得收藏!

Redirection

Redirection is another Linux capability to enhance productivity. You can redirect the stream using simple symbols. You can redirect the output of a command to a text file using >, or >> if you want to append the file and not overwrite it; for example, ls >  Simple_file.txt.

Also, if you want to redirect a stream from one command to another, it is recommended to use the pipes like the following line, which lists the first two files in the current directory, ls | head -2:

主站蜘蛛池模板: 吐鲁番市| 常山县| 仁化县| 宁津县| 屯留县| 长汀县| 乐陵市| 财经| 左权县| 曲沃县| 托克逊县| 波密县| 三门县| 峨山| 宜州市| 竹溪县| 湖口县| 陈巴尔虎旗| 通州区| 平和县| 北安市| 息烽县| 新蔡县| 镇原县| 桐城市| 衡山县| 盈江县| 安平县| 荆门市| 克拉玛依市| 惠来县| 西贡区| 西和县| 紫阳县| 栾城县| 乌恰县| 屯门区| 皮山县| 阳高县| 扶余县| 东港市|