From dd14a121ea9d1f4339ee1cd9e7a23129655fd5bb Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 4 Jan 2023 16:33:23 +0200 Subject: How to Copy text/output into a file without executing a command --- linux/linux-commands.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux') diff --git a/linux/linux-commands.md b/linux/linux-commands.md index 2ca217d..433e25d 100644 --- a/linux/linux-commands.md +++ b/linux/linux-commands.md @@ -24,4 +24,6 @@ NOTE: `.` can also be used but is limited #### Copying/Pasting Text - Copy text/output into a file (useful if in putty/non graphical terminal emulator) `$ 2>&1 | tee output-file` + or + `$ echo "text" 2>&1 | tee output-file` # print text without executing a command - - - -- cgit v1.2.3