The steps are as follows:
1, create a file to store commonly used commands, such as/root/history.txt, write the common commands as text, each command occupies one line
2, run history-c in the terminal, clean up the messy history record
3, run History-r/root/history.txt, read the command as the history of the current bash
4, run history, you get a neat list of commands, such as:
[Root@localhost windata]# History-c
[Root@localhost windata]# history-r/root/history.txt
[Root@localhost windata]# History
1 History-r/root/history.txt
2 mount-t msdos-o Iocharset=gb2312/dev/sda1/mnt/usb
3 Mount-t Vfat-o Iocharset-gb2312/dev/hda5/mnt/windata
4 Umount/mnt/windata
5 mount-t Vfat-o Iocharset-gb2312/dev/hda5/mnt/windata
6 Cd/mnt/windata
7 history
[Root@localhost windata]#
5, after the chaos of the order, repeat the 1-4 steps, but also to make the command very clear.