Linux¶¨Ê±Æ÷ Ïê½â[ת]
[ת]Linux¶¨Ê±Æ÷
ºËÖ÷ÒªÐèÒªÁ½ÖÖÀàÐ͵Äʱ¼ä£º
1.
ÔÚÄÚºËÔËÐÐÆÚ¼ä³ÖÐø¼Ç¼µ±Ç°µÄʱ¼äÓëÈÕÆÚ£¬ÒÔ±ãÄں˶ÔijЩ¶ÔÏóºÍʼþ×÷ʱ¼ä±ê¼Ç£¨
timestamp
£¬Ò²³ÆÎª
“
ʱ¼ä´Á
”
£©£¬»ò¹©ÓÃ
»§Í¨¹ýʱ¼ä
syscall
½øÐмìË÷¡£
2.
ά³ÖÒ»¸ö¹Ì¶¨ÖÜÆÚµÄ¶¨Ê±Æ÷£¬ÒÔÌáÐÑÄں˻òÓû§Ò»¶Îʱ¼äÒѾ¹ýÈ¥ÁË¡£
PC
»úÖеÄʱ¼äÊÇÓÐÈýÖÖʱÖÓÓ²¼þÌṩµÄ£¬¶øÕâЩʱÖÓÓ²¼þÓÖ¶¼»ùÓڹ̶¨ÆµÂʵľ§ÌåÕñµ´Æ÷À´ÌṩʱÖÓ·½²¨ÐźÅÊäÈë¡£ÕâÈýÖÖʱÖÓÓ²¼þ
ÊÇ£º£¨
1
£©ÊµÊ±Ê±ÖÓ£¨
Real Time Clock
£¬
RTC
£©£»£¨
2
£©¿É±à³Ì¼ä¸ô¶¨Ê±Æ÷£¨
Programmable Interval Timer
£¬
PIT
£©£»£¨
3
£©
ʱ¼ä´Á¼ÆÊýÆ÷£¨
Time Stamp Counter
£¬
TSC
£©¡£
7
£®
1
ʱÖÓÓ²¼þ
7
£®
1
£®
1
ʵʱʱÖÓ
RTC
×Ô´Ó
IBM PC AT
Æð£¬ËùÓеÄ
PC
»ú¾Í¶¼°üº¬ÁËÒ»¸ö½Ð×öʵʱʱÖÓ£¨
RTC
£©µÄʱÖÓоƬ£¬ÒÔ±ãÔÚ
PC
»ú¶ÏµçºóÈÔÈ»Äܹ»¼ÌÐø±£³Öʱ¼ä¡£ÏÔ
È»£¬
RTC
ÊÇͨ¹ýÖ÷°åÉÏµÄµç³ØÀ´¹©µçµÄ£¬¶ø²»ÊÇͨ¹ý
PC
»úµçÔ´À´¹©µçµÄ£¬Òò´Ëµ±
PC
»ú¹ØµôµçÔ´ºó£¬
RTC
ÈÔÈ»»á¼ÌÐø¹¤×÷¡£Í¨
³££¬
CMOS RAM
ºÍ
RTC
±»¼¯³Éµ½Ò»¿éоƬÉÏ£¬Òò´Ë
RTC
Ò²³Æ×÷
“CMOS Timer”
¡£×î³£¼ûµÄ
RTC
оƬÊÇ
MC146818
£¨
Motorola
£©ºÍ
DS12887
£¨
maxim
£©£¬
DS12887
ÍêÈ«¼æÈÝÓÚ
MC146818
£¬²¢ÓÐÒ»¶¨µÄÀ©Õ¹¡£±¾½ÚÄÚÈÝÖ÷Òª»ùÓÚ
MC146818
ÕâÒ»±ê×¼µÄ
RTC
оƬ¡£¾ßÌåÄÚ
ÈÝ¿ÉÒԲο¼
MC146818
µÄ
Datasheet
¡£
Ïà¹ØÎĵµ£º
NFSÍøÂçÎļþϵͳÊÇͨ¹ýÎļþϵͳʵÏÖ×ÊÔ´¹²ÏíµÄÒ»ÖÖ×îÖØÒªµÄ·½Ê½¡£
c/s ¿Í»§»ú ·þÎñÆ÷
B/S ä¯ÀÀÆ÷ ·þÎñÆ÷
NFS·þÎñ¶ËÅäÖãº
±à¼/etc/exportsÎļþÒÔÅäÖÿª·Å·¾¶¡£/home/share 192.168.0.123£¨ro£©/(rw).
/etc/init.d/portmap restart
/etc/init.d/nfs&nb ......
NO
·ÖÀà
PS1
ÃüÁîÃû
Ó÷¨¼°²ÎÊý
¹¦ÄÜ×¢½â
1
ÏÔʾĿ¼ÐÅÏ¢
#
ls
ls -a
Áгöµ±Ç°Ä¿Â¼ÏµÄËùÓÐÎļþ£¬°üÀ¨ÒÔ.Í·µÄÒþº¬Îļþ
#
ls
ls -l»òll
Áгöµ±Ç°Ä¿Â¼ÏÂÎļþµÄÏêϸÐÅÏ¢
#
ls
ls -a
ÏÔʾËùÓÐÎļþ£¬°üº¬Òþ²Ø¡£
#
ls
ls -al
ÏÔʾËùÓÐÎļþµÄÏêϸÐÅÏ¢¡£
2
²é¿´Â·¾¶
#
pwd
pwd
......
LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤
×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬
¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£
²»Í¬Linux·¢ÐаæµÄÃüÁîÊýÁ¿²»Ò»Ñù£¬µ«Linux·¢Ð ......
-------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//ƽ̨powerpc mpc8379e linux 2.6.22
£±¡¢ÏÈÓÃfdisk ¸øÓ²ÅÌ·ÖÒ»¸öÇø£¬ÓÃ×÷Îļþϵͳ¡£²ÎÕÕu-boot-ppc±àÒë˵Ã÷Ò»ÎÄ¡£
£²¡¢ÓÃmke2fs¸ñʽ»¯Ó²Å̵ÄÒ»¸ö·ÖÇømke2fs /dev/sd ......
-------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//ƽ̨powerpc mpc8379e linux 2.6.22
£±¡¢ÏÈÓÃfdisk ¸øSD¿¨·ÖÇø£¬ÓÃ×÷Îļþϵͳ¡£
½«¶Á¿¨Æ÷²åÈëPC»úÐéÄâ»ú£¬ÔÚPC»úÉÏÖ´ÐÐfdisk /dev/sdb
Ñ¡Ôñn¡¡¡£¡£¡£¡£¡£¡£¡£¡£² ......