µ±Ç°Î»ÖãºLinux½Ì³Ì - LinuxÎÄ»¯ - ²»ÁôÏÂÈκκۼ£ LinuxÏÂÇå³ý²Ù×÷¼Ç¼

²»ÁôÏÂÈκκۼ£ LinuxÏÂÇå³ý²Ù×÷¼Ç¼


LinuxÏÂÈçÔÚÖÕ¶ËÀï»òÊÇÔÚÎı¾·½Ê½²Ù×÷ʱ£¬Ö»Òª°´ÉÏϹâ±ê¼ü¿ÉÒÔ¿ìËÙµ÷ÓÃÒÔÇ°µÄÃüÁ¿ÉÊÇÕâÑùÆäËûÈËÓÃͬÑùµÄÓû§µÇ¼ºóҲͬÑùÖªµÀÄãµÄ²Ù×÷ÁË¡£ÁíÍâÔÚLinuxͼÐνçÃæÖУ¬ÈçGNOME£¬ÔÚÃæ°åµÄ²Ëµ¥ÉÏÓдò¿ª×î½üÎĵµÕâһѡÏÁгöÁË×î½üµÄÓû§µÄËùÓÐʹÓõÄÎļþ¡£ÈçºÎÇåÀíÕâÁ½ÖÖÊôÐÔÄØ£¿

1£©¸ÃÊôÐÔ·Ö±ð¹éÓÚ²»Í¬µÄÓû§£¬Ö»ÓÐÏàͬµÄÓû§µÇ¼ºó²ÅÄÜʹÓÃÒÔÉϵÄÊôÐÔ¡£

2£©Ã¿¸öÓû§µÄ¸ùĿ¼ÏÂÓÐÁ½¸öÒþ²ØÎļþ£º.bash_historyºÍ.recently-used¡£Ç°Õ߼ǼÁËËùÓÐÖն˺ÍÎı¾·½Ê½ÖÐʹÓùýµÄÃüÁºóÕ߼ǼËù·ÃÎʹýµÄÎļþ¡£

3£©Í¨¹ýÉÏÃæµÄ½éÉÜ¿ÉÒÔÖªµÀ£¬Ö»Òª½«Óû§Ä¿Â¼ÏÂÃæÕâÁ½¸öÎļþÇå¿Õ¾Í¿ÉÒÔÇå³ýÒÔÉϼǼÁË¡£Èç±¾È˵ĻúÆ÷³£ÓÃrootµÇ¼£¨Ò»¸öºÜ²»ºÃµÄÏ°¹ß£©£¬Ö»ÒªÔÚ/etc/rc.d/rc/localÎļþÖмÓÉÏÒÔÏÂÁ½¾ä¾Í¿ÉÒÔÁË£º

>/root/.bash_history >/root/.recently-used

¡¡¡¡ ÕâÑùÿ´Î¿ª»úʱ¾Í»á×Ô¶¯Çå¿ÕÕâÁ½¸öÎļþ£¬´Ó¶øÇå³ýÒÔÉϵIJÙ×÷¼Ç¼¡£