1¡¢½¨Á¢Ò»¸öÎļþÀ´´æ´¢³£ÓÃÃüÁÀýÈç/root/history.txt,°Ñ³£ÓÃÃüÁîµ±³ÉÎı¾Ð´½øÈ¥£¬Ã¿¸öÃüÁîÕ¼Ò»ÐÐ
2¡¢ÔÚÖÕ¶ËÔËÐÐhistory -c£¬Çå³ýÔÓÂÒµÄÀúÊ·¼Ç¼
3¡¢ÔËÐÐhistory -r /root/history.txt,°ÑÃüÁî¶Á½øÀ´×÷Ϊµ±Ç°bashµÄÀúÊ·¼Ç¼
4¡¢ÔËÐÐhistory,¾ÍµÃµ½Ò»¸öÕû½àµÄÃüÁîÁбíÁË£¬ÀýÈç:
ÒýÓÃ:[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¡¢ÒÔºóÃüÁîÂÒÁË£¬Öظ´1-4µÄ²½Ö裬ÓÖ¿ÉÒÔʹÃüÁîºÜÇåÎúÁË¡£

