method to save command line output information to log (valid under Ubunut and Arm-linux)

Source: Internet
Author: User

Using the command script

Enter script Xxx.log at the command line, generate the Xxx.log file in the current directory, and then the output from the command line will be saved to the Xxx.log file, and when you want to end the save, enter the Exit command at the end of the command line to save.


At this point the Xxx.log file is saved in the information just generated, you can cat view the file for appropriate.


If you are unable to use the script command in the Arm-linux system, it is possible that your file system does not have the configuration to enable the command when it is created. The workaround is to recompile your file system, make Menuconfig, and select the option. Or to find a bin file for the command, the directory where the file is located is exported to the environment variable in the system.

This article is from the "Whylinux" blog, make sure to keep this source http://whylinux.blog.51cto.com/10900429/1950527

method to save command line output information to log (valid under Ubunut and Arm-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.