linuxÖеÄshrcÊÇʲôÎļþ
linuxÖеÄshrcÖ¸µÄÊÇÓû§µÄshellÉèÖÃÎļþ.bashrc£¬ÓÃÓÚ½ç˵Óû§µÇ¼µ½ÖÕ¶ËʱËùÐèµÄÇéÐαäÁ¿¡¢ÓÖÃû¡¢×Ô½ç˵º¯ÊýÒÔ¼°ÆäËûshellÑ¡ÏλÓÚÓû§Ö÷Ŀ¼¡°~/.bashrc¡±Ï¡£
±¾½Ì³Ì²Ù×÷ϵͳ£ºLinux5.18.14ϵͳ¡¢Dell G3µçÄÔ¡£
LinuxϵͳÖУ¬Óû§µÄshellÉèÖÃÎļþͨ³£ÊÇ.bashrc£¨¶ÔÓ¦Bash shell£©»ò.zshrc£¨¶ÔÓ¦Zsh shell£©¡£ÕâЩÉèÖÃÎļþÓÃÓÚ½ç˵Óû§µÇ¼µ½ÖÕ¶ËʱËùÐèµÄÇéÐαäÁ¿¡¢ÓÖÃû¡¢×Ô½ç˵º¯ÊýÒÔ¼°ÆäËûShellÑ¡Ïî¡£
.bashrcÊÇBash shellµÄÉèÖÃÎļþ£¬Î»ÓÚÓû§Ö÷Ŀ¼Ï£¨~/.bashrc£©¡£µ±Óû§µÇ¼µ½ÖÕ¶Ëʱ£¬Bash»á×Ô¶¯Ö´ÐиÃÎļþÖеÄÏÂÁîºÍÉèÖã¬ÒÔ³õʼ»¯ShellÇéÐΡ£Óû§¿ÉÒÔ½«ÖÖÖÖ×Ô½ç˵ÉèÖÃÌí¼Óµ½.bashrcÎļþÖУ¬ÀýÈçÐÞ¸ÄÌáÐÑ·ûÑùʽ¡¢ÉèÖÃ×Ô½ç˵ÓÖÃû¡¢µ¼ÈëÍⲿ¾ç±¾µÈ¡£
ͬÑùµØ£¬.zshrcÊÇZsh shellµÄÉèÖÃÎļþ£¬Ò²Î»ÓÚÓû§Ö÷Ŀ¼Ï£¨~/.zshrc£©¡£ZshÊÇÒ»ÖÖ¹¦Ð§Ç¿Ê¢ÇҸ߶ȿÉÉèÖõÄshell£¬ËüÌṩÁËÐí¶àÓëBash²î±ðµÄ¹¦Ð§ºÍÑ¡Ïͨ¹ý±à¼.zshrcÎļþ£¬Óû§¿ÉÒÔÉèÖÃZsh shellÒÔÖª×ãСÎÒ˽ÈËÆ«ºÃºÍÐèÇó¡£
ÐèҪעÖصÄÊÇ£¬²î±ðµÄÓû§¿ÉÄÜʹÓòî±ðµÄShell£¬Ä¬ÈÏÇéÐÎÏ£¬´ó´ó¶¼LinuxϵͳʹÓÃBash×÷ΪĬÈÏShell¡£Òò´Ë£¬ÈôÊÇÄúÏë±à¼Óû§µÄShellÉèÖÃÎļþ£¬Çë²éÕÒ.bashrc»ò.zshrcÎļþ£¬¶ø²»ÊÇshrcÎļþ¡£
ÒÔÉϾÍÊÇlinuxÖеÄshrcÊÇʲôÎļþµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡