linuxÖÐmesgÏÂÁîµÄ¹¦Ð§ÊÇʲô
ÔÚlinuxÖУ¬mesgÏÂÁîÓÃÓÚ¿ØÖÆÖն˻òptsÉϵÄÐÂÎÅÏÔʾ¹¦Ð§£¬ÔÊÐíÓû§ÉèÖÃÊÇ·ñ½ÓÊÜÆäËûÓû§·¢Ë͸øËûÃǵÄÐÂÎÅ£¬ÓÐÁ½¸öÖ÷ҪѡÏ1¡¢¡°mesg y¡±£¬ÌåÏÖÔÊÐíÆäËûÓû§¸ø±¾»ú·¢ËÍÐÂÎÅ£»2¡¢¡°mesg n¡±£¬ÌåÏÖեȡÆäËûÓû§¸ø±¾»ú·¢ËÍÐÂÎÅ¡£
±¾½Ì³Ì²Ù×÷ϵͳ£ºLinux5.18.14ϵͳ¡¢Dell G3µçÄÔ¡£
ÔÚLinuxÖУ¬mesgÏÂÁîÓÃÓÚ¿ØÖÆÖն˻òptsÉϵÄÐÂÎÅÏÔʾ¹¦Ð§¡£ËüÔÊÐíÓû§ÉèÖÃÊÇ·ñ½ÓÊÜÆäËûÓû§·¢Ë͸øËûÃǵÄÐÂÎÅ¡£
mesgÏÂÁîÓÐÁ½¸öÖ÷ÒªµÄÑ¡Ï
mesg y£ºÕâ¸öÑ¡ÏîÌåÏÖÔÊÐíÆäËûÓû§¸øÄú·¢ËÍÐÂÎÅ¡£µ±ÄúʹÓÃmesg yÏÂÁîºó£¬ÆäËûÓû§¿ÉÒÔʹÓÃwriteÏÂÁîÏòÄú·¢ËÍÐÂÎÅ£¬²¢ÇÒÄú»áÊÕµ½ÏìÓ¦µÄÌáÐÑ¡£
mesg n£ºÕâ¸öÑ¡ÏîÌåÏÖեȡÆäËûÓû§¸øÄú·¢ËÍÐÂÎÅ¡£µ±ÄúʹÓÃmesg nÏÂÁîºó£¬ÆäËûÓû§½«ÎÞ·¨Ê¹ÓÃwriteÏÂÁîÏòÄú·¢ËÍÐÂÎÅ¡£
ͨ³£ÇéÐÎÏ£¬Ð½¨µÄÖն˻òpts»áĬÈÏÆôÓÃmesg¹¦Ð§£¬ÔÊÐíÆäËûÓû§·¢ËÍÐÂÎÅ¡£¿ÉÊÇ£¬ÈôÊÇÄúÏ£ÍûÔÝʱ¹Ø±ÕÐÂÎÅÎüÊÕ£¬Äú¿ÉÒÔʹÓÃmesg nÏÂÁͬÑùµØ£¬ÈôÊÇÄúÏ£ÍûÖØÐÂÆôÓÃÐÂÎÅÎüÊÕ£¬Äú¿ÉÒÔʹÓÃmesg yÏÂÁî¡£
ÐèҪעÖصÄÊÇ£¬mesgÏÂÁîÖ»ÊÊÓÃÓÚÖն˻òpts»á»°£¬¶ø²»ÊÊÓÃÓÚÍøÂçÅþÁ¬»òÔ¶³ÌÖնˡ£±ðµÄ£¬mesgÏÂÁî¿ÉÄÜÊܵ½ÏµÍ³ÖÎÀíÔ±ÉèÖõÄÏÞÖÆ£¬Òò´ËijЩÓû§¿ÉÄÜÎÞ·¨¸ü¸ÄÆäÐÂÎÅÎüÊÕÉèÖá£
ÒÔÉϾÍÊÇlinuxÖÐmesgÏÂÁîµÄ¹¦Ð§ÊÇʲôµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡