diff options
| author | srdusr <[email protected]> | 2023-01-04 16:33:23 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2023-01-04 16:33:23 +0200 |
| commit | dd14a121ea9d1f4339ee1cd9e7a23129655fd5bb (patch) | |
| tree | 14aa58c66c11c256e79150e6004dda6846f3b457 /linux/linux-commands.md | |
| parent | 0c8922a85272a6ecb604dc9cf3986d74599dce2b (diff) | |
| download | notes-dd14a121ea9d1f4339ee1cd9e7a23129655fd5bb.tar.gz notes-dd14a121ea9d1f4339ee1cd9e7a23129655fd5bb.zip | |
How to Copy text/output into a file without executing a command
Diffstat (limited to 'linux/linux-commands.md')
| -rw-r--r-- | linux/linux-commands.md | 2 |
1 files changed, 2 insertions, 0 deletions
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) `$ <command> 2>&1 | tee output-file` + or + `$ echo "text" 2>&1 | tee output-file` # print text without executing a command - - - |