linux 输入重定向

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.

也就是说我们输出可以重定向到文件,输入不用依靠键盘手动输入,而是重定向到文件输入程序所要的参数;那最重要的就是,我们可以自动化啦


不谈输出重定向(>>,>),那是因为认识了输入重定向

"<"符号是用于输入重定向的

参考网址

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,869评论 0 10
  • Lua 5.1 参考手册 by Roberto Ierusalimschy, Luiz Henrique de F...
    苏黎九歌阅读 14,259评论 0 38
  • 日历 本周我是否完成重要的日历事项,有没有爽约或变更固定事项? 拍孕照 产检&催乳师第一次上门服务 宁波食博会 吴...
    时恩阅读 204评论 0 0
  • 半世离愁话故乡,当时只道是寻常。 华年喜乐言空炮,岁末伤悲困作坊。 船票数张图畅快,书笺几篓寄安康。 醒来抖落尘间...
    雨意生香阅读 2,760评论 46 102
  • 聪明与智慧人的两种区别 这一个世界上,很多的人,都是聪明人,聪明人能够学习到许多的知识,它解决的是事的问题:这是什...
    季中阅读 801评论 0 0

友情链接更多精彩内容