Introduction to Linux hacks-script screen

Source: Internet
Author: User

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.

  1. Easily connect to the campus network using Linux
  2. Fully Understand Linux Process Technology
  3. Introduction to the password command in Linux
  4. Learn about Linux regulatory commands
  5. How to view the ps-aux command of all processes in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.