14 | | == Example |
| 14 | == How to create a Console Log |
| 15 | |
| 16 | The easiest way to create a console log in Linux is to use "screen". Screen has a logging command -L which can be used to create a log of the complete session. The log will be stored in the folder the screen session was launched in. By default it will be named "screenlog.x", "x" being the window number (probably 0). |
| 17 | |
| 18 | Example: |
| 19 | |
| 20 | {{{#!bash |
| 21 | sudo screen -L /dev/ttyUSB1 115200,cs8 |
| 22 | }}} |
| 23 | |
| 24 | Quit the screen session, then cat the screenlog.0 file. |
| 25 | |
| 26 | For more information see the "screen" man page. |
| 27 | |
| 28 | https://www.man7.org/linux/man-pages/man1/screen.1.html |
| 29 | |
| 30 | == Console log example |