Linux & Command Line

Redirect

/rɪˈdaɪrekt/

Definition

Sending the output of a command to a file (>) or appending to it (>>) instead of printing to the terminal.

Example in context

"./generate.sh > output.log 2>&1 redirects both stdout and stderr to the log file."

Related terms

Practice this term

Master Redirect in context by working through exercises in the Linux & Command Line module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.

Frequently Asked Questions

What does "Redirect" mean?

Sending the output of a command to a file (>) or appending to it (>>) instead of printing to the terminal.

How do you pronounce "Redirect"?

"Redirect" is pronounced /rɪˈdaɪrekt/.

Can you use "Redirect" in a sentence?

"./generate.sh > output.log 2>&1 redirects both stdout and stderr to the log file."