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;
Ïà¹ØÎĵµ£º
Linux ϱàÒë fluent UDF ʹµÄ makefile£¬¸ù¾Ý fluent ×Ô´øµÄ makefile Ð޸ĵġ£
µ÷ÓõÄʱºò£¬Ö±½Ó¼ÓÉÏÄ¿±ê£¬Èç
make -f makefile_linux lnamd64
#----------------------------------------------------------------------#
# makefile for user defined functions.
#---------------------------------------------- ......
¼ÙÈçÓÐÒÔϵķÓÉ±í£º
10.101.184.32 * 255.255.255.224 U 0 0 0 eth0
10.101.186.0&nb ......
/etc/profile:´ËÎļþΪϵͳµÄÿ¸öÓû§ÉèÖû·¾³ÐÅÏ¢,µ±Óû§µÚÒ»´ÎµÇ¼ʱ,¸ÃÎļþ±»Ö´ÐÐ.²¢´Ó/etc/profile.dĿ¼µÄÅäÖÃÎļþÖÐËѼ¯shellµÄÉèÖÃ.
/etc/bashrc:Ϊÿһ¸öÔËÐÐbash shellµÄÓû§Ö´ÐдËÎļþ.µ±bash shell±»´ò¿ªÊ±,¸ÃÎļþ±»¶ÁÈ¡.
~/.bash_profile:ÿ¸öÓû§¶¼¿ÉʹÓøÃÎļþÊäÈëרÓÃÓÚ×Ô¼ºÊ¹ÓõÄshellÐÅÏ¢,µ±Óû§µÇ¼ʱ, ......
sourceÃüÁîÓ÷¨£º
source FileName
×÷ÓÃ:ÔÚµ±Ç°bash»·¾³Ï¶ÁÈ¡²¢Ö´ÐÐFileNameÖеÄÃüÁî¡£
×¢£º¸ÃÃüÁîͨ³£ÓÃÃüÁî“.”À´Ìæ´ú¡£
È磺source .bash_rc Óë . .bash_rc ÊǵÈЧµÄ¡£
sourceÃüÁî(´Ó C Shell ¶øÀ´)ÊÇbash shellµÄÄÚÖÃÃüÁî¡£µãÃüÁ¾ÍÊǸöµã·ûºÅ£¬(´ÓBourne Shell¶øÀ´)ÊÇsourceµÄÁíÒ»Ãû³Æ¡£Í¬Ñùµ ......