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

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:

主站蜘蛛池模板: 遵化市| 平安县| 丘北县| 额尔古纳市| 建始县| 永春县| 岚皋县| 周宁县| 嘉鱼县| 察雅县| 旬邑县| 普洱| 北川| 木里| 安康市| 九龙城区| 金秀| 秦皇岛市| 泽库县| 永德县| 德格县| 石屏县| 河南省| 邳州市| 视频| 花莲县| 揭西县| 建湖县| 哈巴河县| 饶河县| 德令哈市| 河池市| 临西县| 平南县| 金秀| 方城县| 涞水县| 忻城县| 政和县| 陕西省| 滕州市|