Linux»ñÈ¡µ±Ç°Ê±¼ä
1. LinuxÏÂÓëʱ¼äÓйصĽṹÌå
struct timeval
{
int tv_sec;
int tv_usec;
};
ÆäÖÐtv_secÊÇÓÉÁ賿¿ªÊ¼ËãÆðµÄÃëÊý£¬tv_usecÔòÊÇ΢Ãë(10E-6 second)¡£
struct timezone
{
int tv_minuteswest;
int tv_dsttime;
};
tv_minuteswestÊǸñÁÖÍþÖÎʱ¼äÍùÎ÷·½µÄʱ²î£¬tv_dsttimeÔòÊÇʱ¼äµÄÐÞÕý·½Ê½¡£
struct timespec
{
long int tv_sec;
long int tv_nsec;
};
tv_nsecÊÇnano second(10E-9 second)¡£
struct tm
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
Ïà¹ØÎĵµ£º
http://blog.163.com/lwzy-crack/blog/static/95272042200910218176623/
Ö÷»úΪWindowsXPϵͳ£¬VMwareÐéÄâ»úÀï°²×°Linux²Ù×÷ϵͳ¡£°²×°ÍêVMwareºó£¬Ö÷»úµÄÍøÂçÁ¬½ÓÀïÃæ³öÏÖÁËÁ½¸öеÄÁ¬½Ó£¬¼´VMware Network Adapter VMnet1ºÍVMware Network Adapter VMnet8Èçͼ¡£ÐéÄâ»úÀï°²×°µÄϵͳ¾ÍÊÇ¿¿ÕâÁ½¸öÐéÄâÍø¿¨À´ÁªÍøµÄ¡££¨ÈçÏÂÍ ......
sourceÃüÁîÓ÷¨£º
source FileName
×÷ÓÃ:ÔÚµ±Ç°bash»·¾³Ï¶ÁÈ¡²¢Ö´ÐÐFileNameÖеÄÃüÁî¡£
×¢£º¸ÃÃüÁîͨ³£ÓÃÃüÁî“.”À´Ìæ´ú¡£
È磺source .bash_rc Óë . .bash_rc ÊǵÈЧµÄ¡£
sourceÃüÁî(´Ó C Shell ¶øÀ´)ÊÇbash shellµÄÄÚÖÃÃüÁî¡£µãÃüÁ¾ÍÊǸöµã·ûºÅ£¬(´ÓBourne Shell¶øÀ´)ÊÇsourceµÄÁíÒ»Ãû³Æ¡£Í¬Ñùµ ......
ÔÚLinux
ÖÐͨ¹ýlocale
À´ÉèÖóÌÐòÔËÐеIJ»Í¬ÓïÑÔ»·¾³£¬locale
ÓÉANSI C
Ìṩ֧³Ö¡£locale
µÄÃüÃû¹æÔòΪ<
ÓïÑÔ>_<
µØÇø>.<
×Ö·û¼¯±àÂë>
£¬Èçzh_CN.UTF-8
£¬zh
´ú±íÖÐÎÄ£¬CN
´ú±í´ó½µØÇø£¬UTF-8
±íʾ×Ö·û¼¯¡£ÔÚlocale
»·¾³ÖУ¬ÓÐÒ»×é±äÁ¿£¬´ú±í¹ú¼Ê»¯»·¾³ÖеIJ»Í¬ÉèÖãº
1. & ......
ÉÕд2410£S linux ²Ù×÷ϵͳ£º
ÔÚwindows xpϽøÐУ¬ÐèÒªµÄÎļþÔÚ¹âÅÌÖеÄimgĿ¼ºÍflashviviĿ¼ÏÂÌṩ¡£
ÉÕд2410£S linux ²Ù×÷ϵͳ°üÀ¨ÉÕдvivi,kernel,rootÈý¸ö²½Ö裬³ý´ËÎÒÃÇ»¹ÒªÉÕдyaffs.tar£¬ÕâËĸöÎļþÔÚimgĿ¼ÖС£
vivi ----linux²Ù×÷ϵͳÆô¶¯µÄbootloader;
zImage----linu ......