summaryrefslogtreecommitdiff
path: root/content/cheatsheets
diff options
context:
space:
mode:
authorAdam Olech <nddr89@gmail.com>2021-12-13 23:00:57 +0100
committerAdam Olech <nddr89@gmail.com>2021-12-13 23:00:57 +0100
commit0ab0a67b4775fcfd1d03147e3a26425d482e798d (patch)
treeb7bf1a0a52d92ab9b42119f56514f1470004db80 /content/cheatsheets
parentadb63cbc9d94a6786b220c7951c37645ffaafca4 (diff)
cheatsheets/bash: add redirection
Diffstat (limited to 'content/cheatsheets')
-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