doc-exports/docs/bms/image-creation-guide/en-us_topic_0000001239043027.html
guoyanyan fe8c0cf45c BMS Image Creation Guide 1109
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2022-11-16 08:53:42 +00:00

2.5 KiB

Modifying Historical Record Configuration Items

Scenario

Modify the /etc/profile.d/history.sh configuration file to sort historical records by date and time. A maximum of 1000 historical records can be stored.

This method applies to all OSs except EulerOS.

Procedure

  1. Open the /etc/profile.d/history.sh file.

    vi /etc/profile.d/history.sh

  2. Press i to enter editing mode and add the following content at the end of the file:
    export HISTTIMEFORMAT="%F %T `whoami` "
    export HISTSIZE=1000
  3. Press Esc and enter :wq to save and exit the file.