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

linux϶¨Ê±Æ÷µÄʹÓ㨶þ£©

 
¡¾ÕªÒª¡¿
±¾ÎÄÖ÷Òª½éÉÜÁËlinuxµÄʱ¼äºÍ¶¨Ê±Æ÷¡£
¡¾¹Ø¼ü´Ê¡¿
Linux ¶¨Ê±Æ÷ ʱ¼ä
Ò»¡¢ÎÊÌâµÄÌá³ö
ÎÒÃÇ¿ª·¢³ÌÐòʱ£¬¾­³£»áÓöµ½Ê±¼äºÍ¶¨Ê±Æ÷µÄÎÊÌ⣬ΪÁ˸üºÃµÄʹÓÃʱ¼äºÍ¶¨Ê±Æ÷£¬ÏÖÔÚÁоÙÒ»¸öһЩʱ¼ä½á¹¹Ìå¡¢º¯ÊýºÍ¶¨Ê±Æ÷¡£
¶þ¡¢½â¾ö˼·
1.ʱ¼äÀàÐÍ
1) time_tÊÇÒ»¸ö³¤ÕûÐÍ£¬Ò»°ãÓÃÀ´±íʾÓÃ1970ÄêÒÔÀ´µÄÃëÊý¡£
2)struct timevalÓÐÁ½¸ö³ÉÔ±£¬Ò»¸öÊÇÃ룬һ¸öÊÇ΢Ãî¡£
struct timeval
{             
long tv_sec;        /* seconds */         
   long tv_usec;   /* microseconds */  
};
3) struct timespecÓÐÁ½¸ö³ÉÔ±£¬Ò»¸öÊÇÃ룬һ¸öÊÇÄÉÃë¡£
struct timespec
{
   time_t tv_sec;          /* seconds */
       long    tv_nsec;        /* nanoseconds */
};
4) struct tmÊÇÖ±¹ÛÒâÒåÉϵÄʱ¼ä±íʾ·½·¨
struct tm
{                  
int     tm_sec;         /* seconds */                   
int     tm_min;         /* minutes */                     
int     tm_hour;        /* hours */                  
int     tm_mday;         /* day of the month
*/                   


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

Linux atÃüÁʱ¹Ø»ú

from: http://www.pcstu.com/system/Linux/20090804/65873.html
±¾ÎĽéÉÜÏÂlinux atÃüÁîµÄÁíÒ»¸ö×÷ÓãºlinuxÏÂʹÓÃlinux atÃüÁʱ¹Ø»ú¡£
Ê×ÏÈ´´½¨Ò»¸öÎļþ,дÈ룺
#!/bin/sh
shutdown -h now
±£´æΪpowerÎļþ.Ö®ºó
chmod +x powerÖ®ºó¾ÍÄÜʹÓÃlinux atÃüÁʱ¹Ø»úÁË.
µ«ÊÇÐèÒªÓÐrootȨÏÞ²ÅÄܹػú,
ËùÒÔÐè ......

¡¾×ª¡¿linux cp ¸´ÖÆÎļþ ÃüÁî

 cpÃüÁî
¸ÃÃüÁîµÄ¹¦ÄÜÊǽ«¸ø³öµÄÎļþ»òĿ¼¿½±´µ½ÁíÒ»Îļþ»òĿ¼ÖУ¬Í¬MSDOSϵÄcopyÃüÁîÒ»Ñù£¬¹¦ÄÜÊ®·ÖÇ¿´ó¡£
Óï·¨£º cp [Ñ¡Ïî] Ô´Îļþ»òĿ¼ Ä¿±êÎļþ»òĿ¼
˵Ã÷£º¸ÃÃüÁî°ÑÖ¸¶¨µÄÔ´Îļþ¸´ÖƵ½Ä¿±êÎļþ»ò°Ñ¶à¸öÔ´Îļþ¸´ÖƵ½Ä¿±êĿ¼ÖС£
¸ÃÃüÁîµÄ¸÷Ñ¡ÏÒåÈçÏ£º
- a ¸ÃÑ¡Ïîͨ³£ÔÚ¿½±´Ä¿Â¼Ê±Ê¹Óá£Ëü±£ÁôÁ´ ......

Linux Shell ¡¶abs_guide¡· ѧϰ±Ê¼Ç(1)

µÚÒ»²¿·Ö
 
1.ΪʲôʹÓÃshell
Ä¿Ç°Á÷ÐеÄLinux shell ±»³Æ֮ΪBASH¡£¶ÔÓÚÈκÎÏëÊʵ±¾«Í¨Ò»Ð©¹ÜÀí֪ʶµÄÈËÀ´Ëµ£¬ÕÆÎÕshell½Å±¾¶¼ÊÇ×î»ù±¾µÄ£»shell½Å±¾×ñÑ­µäÐ͵ÄUNIXÕÜѧ£¬¼È°Ñ´óµÄ¸´ÔӵŤ³Ì·Ö³ÉС¹æÄ£µÄ×ÓÈÎÎñ£¬²¢ÇÒ°ÑÕâЩ²¿¼þºÍ¹¤¾ß×éºÏÆðÀ´¡£
ʲôʱºò²»Ê¹ÓÃshell£º
×ÊÔ´Ãܼ¯ÐÍÈÎÎñ£¬ÓÈÆäÊÇÐèÒª¿¼ÂÇЧ ......

LinuxϵͳÐÅÏ¢²é¿´ÃüÁî´óÈ«

ϵͳ
# uname -a               # ²é¿´ÄÚºË/²Ù×÷ϵͳ/CPUÐÅÏ¢
# head -n 1 /etc/issue   # ²é¿´²Ù×÷ϵͳ°æ±¾
# cat /proc/cpuinfo      # ²é¿´CPUÐÅÏ¢
# hostname      &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ