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

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:

主站蜘蛛池模板: 岳西县| 红安县| 织金县| 克拉玛依市| 沂源县| 黑龙江省| 陵川县| 泾川县| 桓台县| 花垣县| 浦东新区| 榆林市| 安丘市| 得荣县| 塘沽区| 黄山市| 茌平县| 大竹县| 阿勒泰市| 南康市| 牟定县| 靖州| 洞头县| 永城市| 库尔勒市| 苏尼特右旗| 门源| 客服| 武强县| 竹山县| 祁阳县| 岳阳市| 长治县| 平和县| 湘阴县| 汤阴县| 炉霍县| 祁阳县| 抚顺市| 呼图壁县| 永靖县|