Multiple bash Log in history write issue

Source: Internet
Author: User

Question: If a user is opening several bash interfaces at the same time, which Bash's history command record will be written in ~/.bash_history?

A: All bash has its own histsize pen recorded in memory, because the log file will not be updated until the logoff, so the last bash will be last written, and the other bash commands will not be recorded because the last bash was overwritten with the update.
Because of the multiple login has such a problem, so many users are accustomed to single bash login, and then use the job control to switch between different jobs, so that all the commands have been issued to record, it is convenient for the system administrator to debug the instructions later.

=-=-=-=-=
Powered by Blogilo

Multiple bash Log in history write issue

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.