The rapid development of Linux over the past decade has been in conflict with Microsoft. Some people say that Linux is not as good as Windows. In fact, this is because you do not understand Linux. If you want to learn about Linux, here we will introduce you to Linux hacks -- script screen. I hope you can learn Linux hacks -- script screen.
Script-Cache terminal input scripts
Script [-a] [-c COMMAND] [-f] [-q] [-t] [file]
-A: APPEND Command Input
-C
-F indicates the recorded file
-Q: Exit
-T timeline output in the middle
If no file is specified, typescript is used as the record file by default.
$ Script-t 2> timing-f learn. In this way, you can redirect the timeline information to timing. Other information is recorded in learn.
Then you can perform the operation.
$ Exit
OK. The simple tutorial is complete.
Now you can let others log on to your machine for learning.
$ Cat learn: You can view all your inputs and outputs. If you do not want dynamic results, run the following command:
$ Scriptreplay timing learn
Or you can directly pass these two files to others.
Disconnect the console without terminating the session: screen
$ Screen can create A new session. When you are about to leave, you can [Ctrl-A] d first, and then use screen-r pid to connect again, you can use $ screen-list to view the pid.
The above is the knowledge of Linux hacks-script screen.
- Easily connect to the campus network using Linux
- Fully Understand Linux Process Technology
- Introduction to the password command in Linux
- Learn about Linux regulatory commands
- How to view the ps-aux command of all processes in Linux