Linux Command script

Source: Internet
Author: User

Linux Command script

Script command is used to save the operation process in the log
Script command format:

Script [-a] [-q] [filename] # [-a] append, Not Overwrite previous records # [-q] Quiet Mode, do not show the script start information # [filename] The log name of the stored result. If no file name is entered, more parameters are saved to the ** typescript ** file in the current directory by default. See man manual for details.

Instance description

$ Script Script started, file is typescript ### enter the script command without specifying the file name, $ ls/bin/| head-6bashbunzip2busyboxbzcatbzcmpbzdiff $ whoami gino $ exit exitScript done, file is typescript ### exit the script. You can also press Ctrl + D $ cat typescript # view the log information in the terminal. Script started on Friday 19, May 01, 2015 11:21:53 $ ls/bin/| head-6bashbunzip2busyboxbzcatbzcmpbzdiff $ whoami gino $ exitexitScript done on Friday, January 1, May 01, 2015 11:22:30

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.