From 0ab0a67b4775fcfd1d03147e3a26425d482e798d Mon Sep 17 00:00:00 2001 From: Adam Olech Date: Mon, 13 Dec 2021 23:00:57 +0100 Subject: cheatsheets/bash: add redirection --- content/cheatsheets/bash.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'content') diff --git a/content/cheatsheets/bash.md b/content/cheatsheets/bash.md index a00ebb9..4231e20 100644 --- a/content/cheatsheets/bash.md +++ b/content/cheatsheets/bash.md @@ -3,6 +3,14 @@ title = "bash" disable_share = true +++ +# Redirection + +## `stderr` and `stdout` to a file + +```bash +$ command > file 2>&1 +``` + # Test operators ## String -- cgit v1.2.1