Windows/linux˫ϵͳµÄʱ¼äÐÞ¸ÄÎÊÌâ
ÓÉÓÚÁ½¸öϵͳÉ趨ʱ¼äʱÒÔÖ÷°åCMOSÄÚµÄʱ¼äΪÒÀ¾Ý£¬µ«È´Óв»Í¬µÄʱ¼ä¼ÆËã±ê×¼¡£ËùÒÔµ¼ÖÂÁËϵͳʱ¼äµÄ¾À·×ÎÊÌâ¡£
LinuxºÍÆ»¹û²Ù×÷ϵͳÒÔµ±Ç°Ö÷°åCMOSÄÚʱ¼ä×öΪ¸ñÁÖÍþÖαê׼ʱ¼ä£¬ÔÙ¸ù¾ÝϵͳÉèÖõÄʱÇøÀ´×îÖÕÈ·¶¨µ±Ç°ÏµÍ³Ê±¼ä£¨ÈçʱÇøÉèÖÃΪGMT+08:00±±¾©Ê±¼äʱÒÔ¼°µ±Ç°CMOSʱ¼äΪ03:00£¬ÄÇôϵͳ»á½«Á½¸öʱ¼äÏà¼ÓµÃ³öÏÔʾÔÚ×ÀÃæµÄµ±Ç°ÏµÍ³Ê±¼äΪ11:00£©¡£
Windows ²Ù×÷ϵͳȴֱ½Ó°ÑCMOSʱ¼äÈ϶¨Îªµ±Ç°ÏÔʾʱ¼ä£¬²»¸ù¾ÝʱÇøת»»¡£ÕâÑùÿµ÷ÕûÒ»´ÎϵͳʱÇø£¬ÏµÍ³»á¸ù¾Ýµ÷ÕûµÄʱÇøÀ´¼ÆË㵱ǰʱ¼ä£¬È·¶¨ºó£¬Ò²¾ÍͬʱÐÞ¸ÄÁËCMOSÄÚµÄʱ¼ä£¨¼´Ã¿µ÷ÕûÒ»´ÎʱÇø£¬ÉèÖñ£´æºó£¬CMOSʱ¼äÒ²½«±»²Ù×÷ϵͳ¸Ä±äÒ»´Î£¬×¢Òⲻͬ²Ù×÷ϵͳµ÷Õûʱ¼äºó£¬Ò²»áͬʱ¸Ä±äCMOSʱ¼ä£¬ÕâÒ»µãÊǹ²Í¨µÄ£©¡£
UTC¼´Universal Time Coordinated£¬Ðµ÷ÊÀ½çʱ
GMT¼´Greenwich Mean Time£¬¸ñÁÖÄáÖÎƽʱ
ÔÚÕâÀÄã¿ÉÒÔ°ÑUTCÈÏΪÊÇGMT+0¡£
Windows(XPºÍVISTA)ºÍ(Linux/Unix/Mac)ȱʡ¿´´ýϵͳӲ¼þʱ¼äµÄ·½Ê½ÊDz»Ò»ÑùµÄ£º
* Windows°ÑϵͳӲ¼þʱ¼äµ±×÷±¾µØʱ¼ä(local time)£¬¼´²Ù×÷ϵͳÖÐÏÔʾµÄʱ¼ä¸úBIOSÖÐÏÔʾµÄʱ¼äÊÇÒ»ÑùµÄ¡£
* Linux/Unix/Mac°ÑÓ²¼þʱ¼äµ±×÷UTC£¬²Ù×÷ϵͳÖÐÏÔʾµÄʱ¼äÊÇÓ²¼þʱ¼ä¾¹ý»»ËãµÃÀ´µÄ£¬±ÈÈç˵±±¾©Ê±¼äÊÇGMT+8£¬ÔòϵͳÖÐÏÔʾʱ¼äÊÇÓ²¼þʱ¼ä+8¡£
ÕâÑù£¬µ±PCÖÐͬʱÓжàϵͳ¹²´æʱ£¬¾Í³öÏÖÁËÎÊÌâ¡£¼ÙÈçÄãµÄLinuxºÍWindowsXPÖÐÉèÖõÄʱÇø¶¼Îª±±¾©Ê±¼ä¶«°ËÇø£¬¶øÄãÔÚLinuxÖаѵ±Ç°ÏµÍ³Ê±¼ä¸ü¸ÄΪ9£º00AM¡£Ôò´ËʱӲ¼þÖд洢µÄʵ¼ÊÊÇUTCʱ¼ä1:00AM¡£ÕâʱÄãÖØÆô½øÈëWindowsºó£¬Äã»á·¢ÏÖwindowsϵͳÖÐÏÔʾµÄʱ¼äÊÇ1:AM£¬±ÈLinuxÖÐÂýÁ˰˸öСʱ¡£Í¬Àí£¬ÄãÔÚWindowsÖиü¸Ä»òÓÃÍøÂçͬ²½ÁËϵͳʱ¼äºó£¬ÔÙµ½LinuxÖÐÈ¥¿´£¬ÏµÍ³¾Í»á¿ìÁË8Сʱ¡£ÔÚʵÐÐÏÄÁîʱµÄµØÇø£¬Çé¿ö¿ÉÄÜ»á¸ü¸´ÔÓЩ¡£
¸ÄwindowsÉϵÄʱ¼äºó£¬ÓÐʱËü»á×Ô¶¯ÓָĻØÀ´¡£ËùÒÔ£¬×îºÃÔÚlinuxϵÄÐ޸ģº
“ϵͳ”£>“¹ÜÀí”—>“ʱ¼äºÍÈÕÆÚ”—>“ʱÇø”£¬°ÑUTCµÄ¹´È¥µô
Ïà¹ØÎĵµ£º
Õâ½éÉܵÄLinuxË«Íø¿¨°ó¶¨ÊµÏÖ¾ÍÊÇʹÓÃÁ½¿éÍø¿¨ÐéÄâ³ÉΪһ¿éÍø¿¨£¬Õâ¸ö¾ÛºÏÆðÀ´µÄÉ豸¿´ÆðÀ´ÊÇÒ»¸öµ¥¶ÀµÄÒÔÌ«Íø½Ó¿ÚÉ豸£¬Í¨Ë׵㽲¾ÍÊÇÁ½¿éÍø¿¨¾ßÓÐÏàͬµÄIPµØÖ·¶ø²¢ÐÐÁ´½Ó¾ÛºÏ³ÉÒ»¸öÂß¼Á´Â·¹¤×÷¡£ÆäʵÕâÏî¼¼ÊõÔÚSunºÍCiscoÖÐÔçÒÑ´æÔÚ£¬±»³ÆΪTrunkingºÍEtherchannel ¼¼Êõ£¬ÔÚLinuxµÄ2.4.xµÄÄÚºËÖоͲÉÓÃÁËÕâÖÖ¼¼Êõ£¬±»³ÆΪ ......
Ò»£¬Ð÷ÂÛ
1.¿ÎÌâ±³¾°
LinuxÏÂÓÐϵͳÌṩµÄgetpass()º¯Êý£¬¿ÉÓÉÓÚдµÄʱºòÌ«ÔçÁË£¬Ö»Ö§³Ö8λ×Ö·û£¬Í¬Ê±Óа²È«Òþ»¼£¨Òç³ö£¡£©£¬Linux³öÓÚ¶ÔÃÜÂëµÄ±£ÃÜ£¬ÊäÈëµÄ×Ö·ûÊDz»»áÏÔʾµ½ÆÁÄ»Éϵġ£Ôڵǽº¯ÊýºÍÃÜÂëÐ޸ĺ¯ÊýÄÚ¶¼Ã»ÓÐÌṩÃÜÂë»ØÏÔÌáʾ£¬µ«ÊÇ´ËÉè¼Æ¶ÔÓÚÒ»°ãµÄ×ÀÃ漶ӦÓõijõ¼¶Óû§´øÀ´ÁËÒ»¶¨µÄÂé·³£¬¶øÇÒ£¬Ã»ÓÐÈκÎÃÜÂë ......
Fedora ÏÂÊÇÓÐ/etc/inittabÎļþµÄ£¬¶øÔÚUbuntuÖÐÊÇûÓÐÕâÒ»¸öÎļþµÄ£¬ÒòΪÔÚubuntuÖУ¬inittabÈí¼þ°üÒѾ±»upstartÈí¼þ°üÌæ»»ÁË£¬ËùÓеÄÅäÖÃÐÅÏ¢¶¼ÔÚ/etc/event.d/Ŀ¼Ï¡£inittabÎļþÔÚinittabÀïÃæÕâÑùÃèÊöµÄ£¬This inittab file describes how the INIT process should set up the system in a certain run-level.¼´ÔÚlin ......
ʹÓÃLinuxÏÂmanÒѾºÜ¾ÃÁË¡£µ«Ö»ÊÇ´ó¸ÅÖªµÀÆäÄÚÈݵĴæ·ÅĿ¼£¬ÒÔ¼°man number xxxÖÐmumberµÄº¬Òå¡£½ñÌìÐèÒªÌí¼ÓC++ man page¡£Ë³±ã½«manµÄÄÚÈÝ×÷Ò»¸ö½ÏÏêϸµÄÁ˽⡣ 0. manºóÃæÊý×ֵĺ¬Ò壺 ֮ǰSamÔÚ²éÕÒC¿âº¯Êýʱ£¬»áʹÓÃ#man 3 func ÔÚ²éÕÒϵͳµ÷ÓÃʱ£¬ÔòʹÓÃ#man 2 fork. ·ñÔòÓÐʱ»á³öÏֲ鵽ͬÃûµÄshellÖÐÃüÁîµÄÇé¿ ......
LinuxÖÐtty¡¢
pty¡¢ptsµÄ¸ÅÄîÇø±ð
»ù±¾¸ÅÄ
1> tty(ÖÕ¶ËÉ豸µÄͳ³Æ):
ttyÒ»´ÊÔ´ÓÚ
Teletypes£¬»òÕßteletypewriters£¬ÔÀ´Ö¸µÄÊǵ紫´ò×Ö»ú£¬ÊÇͨ¹ý´®ÐÐÏßÓôòÓ¡»ú¼üÅÌͨ¹ýÔĶÁºÍ·¢ËÍÐÅÏ¢µÄ¶«Î÷£¬ºóÀ´ÕⶫÎ÷±»¼üÅÌ
ÓëÏÔʾÆ÷È¡´ú£¬ËùÒÔÏÖÔÚ½ÐÖն˱ȽϺÏÊÊ¡£
ÖÕ¶ËÊÇÒ»ÖÖ×Ö·ûÐÍÉ豸£¬ËüÓжàÖÖÀàÐÍ£¬Í¨³£Ê¹ÓÃttyÀ´ ......