summaryrefslogtreecommitdiff
path: root/content/cheatsheets/bash.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/cheatsheets/bash.md')
-rw-r--r--content/cheatsheets/bash.md8
1 files changed, 8 insertions, 0 deletions
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