Skip to main content

Shell Programming: Redirection

Redirection is a very small but critical capability on the command line. Writing output to a file, saving errors separately, passing one command's result to another -- these are fundamental actions for daily troubleshooting and automation scripts.

This material works best when practiced alongside real commands. Once you understand stdin, stdout, and stderr, many log collection, batch processing, and background execution scenarios become much clearer.

Online Preview

shell-programming-redirection.pdf

如果手机上内嵌预览仍无法正常纵向滚动,请使用“新窗口打开”或“下载 PDF”。