Table of contents
Source code and other data acquisition methods
problem phenomenon
When logging in to linux, the remote connection is normal, but the [root@...] echo is very slow. When executing scripts, it is easy to cause confusion in issuing commands
Cause Analysis
The .bash_history file in the home directory is too large, and it takes too long to read this file every time you log in.
Further analysis of the reason for the file size is found to be that the file has been added with 'a' permission (append, which allows append operations in the file), which causes commands to be continuously written into the file in the form of append.
Solution
Remove the 'a' attribute before deleting the file.
Source code and other data acquisition methods
Friends who want to get source code and other tutorial materials, please like + comment + bookmark , triple!
After three times in a row , I will send you private messages one by one in the comment area~