Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Çólinux time ÃüÁîµÄʵÏÖ´úÂë

ÈçÌ⣬лл

LinuxÊÇ¿ªÔ´µÄ£¬ÄãËÑË÷LinuxÔ´³ÌÐòĿ¼¾Í¿ÉÒÔÕÒµ½shellÃüÁîtimeµÄʵÏÖ´úÂë¡£

kernel/time.c

ÄãµÄÍ·ÏñºÜ²»´íѽ

ʹÓú¯ÊýtimeΪ½ø³ÌÌṩµ±Ç°µÄʱ¼ä
#include<time.h>
time_t time(time_t *t);
ÀýÈ磺
time_t cur_time;/*´æ´¢µ±Ç°Ê±¼äµÄ±äÁ¿*/
cur_time=time(NULL);/*µÃµ½µ±Ç°Ê±¼ä*/
printf(cur_time);


http://www.pudn.com/downloads84/sourcecode/unix_linux/detail324456.html

pudnÖ±½Ó¾ÍÓеÄÏÂ


time²»½ö½öÊǼÆʱ£¬Ö÷ÒªÊÇÄÜ´òÓ¡³öÀ´Óû§/ϵͳʱ¼äÖ®ÀàµÄÐÅÏ¢¡£

man getrusage

ÒýÓÃ
ÄãµÄÍ·ÏñºÜ²»´íѽ


IDÒ²±©Ç¿


Ïà¹ØÎÊ´ð£º

Linux Ŀ¼ÎÊÌâ

LinuxÐÂÊÖ£¬Çë´ó¸ç´ó½ã²»Òª¼ûЦ¡£

ÎÒÓÃrootÓû§µÇ¼µ½Linuxϵͳ¡£ÔÚ¸ùĿ¼ÏÂÃ潨ÁËĿ¼dir1£¬ºóÓÃÃüÁîcd /dir1½øÈëµ½dir1Ŀ¼Ï£¬È»ºóÔÙÓÃmkdir dir2½¨Á¢ÁËĿ¼dir2 £¬ÔÙºóÀ´ÓÃÃüÁîcd /dir2ÊÇ£¬ÌáʾΪ£º-bush ......

linux½Ì³Ì - Linux/UnixÉçÇø / ϵͳά»¤ÓëʹÓÃÇø

ÓÐʲôºÃµÄLinux½Ì³ÌÂð£¿
СµÜл¹ý~
[ÎÊÌâµãÊý:0·Ö]

google

¾Ý˵Äñ¸çµÄ˽·¿²Ë²»´í¡£

Äñ¸çµÄLinux˽·¿²Ë
¸ü¶àµÄÔÙÕâÉÏÃæÈ¥ËÑË÷һϺÜLIUNXÊé¼®»¹²»´í

ÒýÓÃ
google
Õý½â

Äñ¸çµÄLinux˽·¿²Ë  ......

LinuxÈçºÎÔÚͼÐνçÃæºÍÃüÁîÐÐÖ®¼äÇл»

¸÷λ´óϺ£¬ÎÒÕýÔÚѧϰLinux£¬¿ÉÊÇLinuxͼÐνçÃæºÍÃüÁîÐÐÖ®¼äÇл»Óöµ½À§ÄÑ£¬ÔÚÃüÁîÐÐÏÂÊäÈëstartx£¬²»ÊǽøÈëͼÐνçÃæ
¶øÊdzöÏÖ
ÇëÎʸ÷룬ÕâÊÇΪʲô£¿ ¶øÇÒ°´Ctrl+Alt+F7£¬Ò²²»ÄÜÃüÁîÐнøÈëͼÐνçÃæ¡£
¼±¼±¼±

......

¸ü¸ÄlinuxĿ¼

Ó¦ÓÃϵͳÊÇ°²×°ÔÚ /opt Ŀ¼Ï£¬/opt Ŀ¼ÊÇÊôÓÚ¸ùĿ¼ / ϵġ£ÁíÍâÒ»¸öÎļþϵͳµÄ¹ÒÔصãÊÇÔÚ/aaaĿ¼Ï£¬¿É·ñ½«/optĿ¼ÏµÄËùÓÐÎļþcopyµ½/aaaĿ¼Ï£¬umount ÔÚ/aaaĿ¼ÏµĹÒÔص㣬½«/aaa¸ÄÃû/optĿ¼£¬ÔÙ½«Ô­À ......

linuxÖÐÈçºÎÔڵõ½µ±Ç°Öն˴°¿ÚµÄ¿í¶È£¿

ÈçÌ⣬ÓÐûÓÐÄĸöº¯Êý¿ÉÒԵõ½Öն˴°¿ÚµÄÐÅÏ¢£¬±ÈÈç˵¿í¶È£¿Çë¸ßÊִͽ̣¬·Ç³£¸Ðл¡£
Èç¹ûÊÇshell µÄ»°£¬¿ÉÒÔÓà $LINES ºÍ $COLUMNS ÕâÁ½¸ö±äÁ¿

Ŷ£¬¶àл¥ÉÏÐǪ̈´Í½Ì¡£ÈôÊÇÔÚÏëÔÚ³ÌÐòÖеõ½Öն˴°¿ÚµÄÐÅÏ¢¸ÃÓÃÄÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ