Let history record the historical execution time of the command
Source: Internet
Author: User
By default, we can view the history command without any execution time. if you want to use the execution time of the record command, you can do this: # Edit/etc/bashrc, add the following content # let the system record the execution time of each historical command. Note: put a space before the last "# set the file size for saving history commands # save the number of history commands # execute the following command to make the configuration take effect immediately by default, we can view the history command without any execution time.
If you want to use the execution time of the record command, perform the following operations:
# Edit/etc/bashrc and add the following content
# Let the system record the execution time of each historical command. Note that a space must be placed before the last "number.
# Set the file size for saving history commands
# Number of historical commands saved
# Execute the following command to make the configuration take effect immediately
# Check the history Command records again and find that the execution time has elapsed.
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