Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ :

ÔÚLinuxÖÐʹÓÃJava Console

The
Java Console provides information about the Java Runtime Environment
(JRE) version, user home directory, and any error message that occurs
while running an applet or application. You can enable the Java Console
for the Linux platform.










Enabling the Java Console for Linux Platform
Open a terminal windowGo to JRE Installation Directory.

cd /java/jre1.5.0_04 (Change the name of the directory to where you have installed the JRE)Open the Java Control Panel. Type: ./ControlPanelYou can also open the Java Control Panel through your browser. Launch Netscape or Mozilla. Open the ControlPanel.html file which usually is found in the $JAVA_HOME/jre/ directoryIn the Java Control Panel, click the Basic tabSelect Show Console radio buttonClick the Apply button
......

ÔÚLinuxÖÐʹÓÃJava Console

The
Java Console provides information about the Java Runtime Environment
(JRE) version, user home directory, and any error message that occurs
while running an applet or application. You can enable the Java Console
for the Linux platform.










Enabling the Java Console for Linux Platform
Open a terminal windowGo to JRE Installation Directory.

cd /java/jre1.5.0_04 (Change the name of the directory to where you have installed the JRE)Open the Java Control Panel. Type: ./ControlPanelYou can also open the Java Control Panel through your browser. Launch Netscape or Mozilla. Open the ControlPanel.html file which usually is found in the $JAVA_HOME/jre/ directoryIn the Java Control Panel, click the Basic tabSelect Show Console radio buttonClick the Apply button
......

linux ʱ¼ä&¶¨Ê±Æ÷ ½éÉÜ

1.ʱ¼ä±íʾ
¡¡¡¡ÔÚ³ÌÐòµ±ÖÐ,ÎÒÃǾ­³£ÒªÊä³öϵͳµ±Ç°µÄʱ¼ä,±ÈÈçÎÒÃÇʹÓÃdateÃüÁîµÄÊä³ö½á¹û.Õâ¸öʱºòÎÒÃÇ¿ÉÒÔʹÓÃÏÂÃæÁ½¸öº¯Êý:
¡¡¡¡#include
¡¡¡¡time_t time(time_t *tloc);
¡¡¡¡char *ctime(const time_t *clock);
¡¡¡¡timeº¯Êý·µ»Ø´Ó1970Äê1ÔÂ1ÈÕ0µãÒÔÀ´µÄÃëÊý.´æ´¢ÔÚtime_t½á¹¹Ö®ÖÐ.²»¹ýÕâ¸öº¯ÊýµÄ·µ»ØÖµ¶ÔÓÚÎÒÃÇÀ´ËµÃ»ÓÐʲôʵ¼ÊÒâÒå.Õâ¸öʱºòÎÒÃÇʹÓõڶþ¸öº¯Êý½«ÃëÊýת»¯Îª×Ö·û´®. Õâ¸öº¯ÊýµÄ·µ»ØÀàÐÍÊǹ̶¨µÄ:Ò»¸ö¿ÉÄÜֵΪ.Thu Dec7 14:58:59 2000 Õâ¸ö×Ö·û´®µÄ³¤¶ÈÊǹ̶¨µÄΪ26.
2.ʱ¼äµÄ²âÁ¿
¡¡¡¡ÓÐʱºòÎÒÃÇÒª¼ÆËã³ÌÐòÖ´ÐеÄʱ¼ä.±ÈÈçÎÒÃÇÒª¶ÔËã·¨½øÐÐʱ¼ä·ÖÎö.Õâ¸öʱºò¿ÉÒÔʹÓÃÏÂÃæÕâ¸öº¯Êý. #include
¡¡¡¡int gettimeofday(struct timeval *tv,struct timezone *tz);
¡¡¡¡strut timeval {
¡¡¡¡long tv_sec; /* ÃëÊý */
¡¡¡¡long tv_usec; /* ΢ÃëÊý */
¡¡¡¡};
¡¡¡¡gettimeofday½«Ê±¼ä±£´æÔڽṹtvÖ®ÖÐ.tzÒ»°ãÎÒÃÇʹÓÃNULLÀ´´úÌæ.
3.¼ÆÊ±Æ÷µÄʹÓÃ
3.1¡¢alarm
-------------------------------------------
    Èç¹û²»ÒªÇóºÜ¾«È·µÄ»°£¬ÓÃalarm()ºÍsignal()¾Í¹»ÁË
    unsigned int alarm(unsigned int seconds)
......

Linux»ù±¾Ö¸Áî

Linux»ù±¾Ö¸Áî
alias
ÌæÖ¸ÁîÈ¡±ðÃû
¡ò alias ÁгöĿǰϵͳËùʹÓõÄËùÓÐÖ¸Áî±ðÃû
¡ò alias ±ðÃû=Linux Ö¸ÁîÃû³Æ ´ËʱÈôÊäÈ롸±ðÃû¡¹Ôò¹¦ÄÜ»á¸úÊäÈ롸Linux Ö¸ÁîÃû³Æ¡¹Ïàͬ
¡ò ÈôÏëҪÿ´Î¿ª»ú¶¼Ê¹Óô˱ðÃû£¬ÔÚ bash ÖУ¬Ò»¶¨ÒªÔÚ .bashrc ÖÐÖ¸¶¨£¬Èç¹ûÊÇ tcsh ÖУ¬ÔòÒªÔÚ .cshrc ÖÐÖ¸¶¨
ar
½«Ðí¶àµµ°¸±¸´æ³ÉÒ»¸ö»ò¶à¸öµµ°¸
¡ò ar -rcv ±¸´æµµÃû Óû±¸´æµµÃû1 Óû±¸´æµµÃû2 ...
½«¡¸Óû±¸´æµµÃû1 Óû±¸´æµµÃû2 ...¡¹¼°ËùÓÐÄúÖ¸¶¨µÄµµ°¸£¬±¸´æÖÁ¡¸±¸´æÅÌÃû¡¹ÖС£
²ÎÊý -r£ºÔÚмÓÈë×é³ÉµµÊ±£¬¼ì²é±¸´æµµ°¸ÖеÄ×é³Éµ³£¬Èç¹ûÖØ¸´µÄ»°£¬¾ÍÈ¡¶ø´úÖ®¡£
²ÎÊý -c£º½¨Á¢±¸´æµµ°¸¡£
²ÎÊý -v£ºÏÔʾÏêϸÐÅÏ¢¡£
¡ò ar -t ±¸´æµµÃû Áгö¡¸±¸´æµµÃû¡¹ÖÐÖ®ÎļþÃû
¡ò ar -x ±¸´æÅÌÃû È¡³ö¡¸±¸´æÅÌÃû¡¹ÖÐËùÓеµ°¸
¡ò ar -x ±¸´æÅÌÃû ±¸´æÅÌÖеµ°¸Ö®µµÃû È¡³ö¡¸±¸´æÅÌÃû¡¹ÖÐijЩµµ°¸
bg
½«³ÌÐòÖÃÓÚ±³¾°Ö´ÐÐ
Èç¹ûÄúÖ´ÐеijÌÐòºÜ¶àµÄ»°£¬¿ÉÒÔÔÚÖ´ÐгÌÐòʱ£¬°´Ï¡¸Ctrl + z¡¹ÔÝÍ£³ÌÐò£¬
È»ºóÀûÓÃÖ¸Ájobs¡¹²éѯ¸Ã¹¤×÷Ö®±àºÅ
¡ò bg ¹¤×÷±àºÅ ½«¡¸¹¤×÷±àºÅ¡¹Ö®¹¤×÷ÖÃÓÚ±³¾°Ö´ÐÐ
¡ò fg ¹¤×÷±àºÅ ½«¡¸¹¤×÷±àºÅ¡¹Ö®¹¤×÷ÖÃÓÚǰ¾°Ö´ÐÐ
bc
¼òÒ×¼ÆËãÆ÷
¡ò quit À뿪 bc
clear
Çå¿Õ»­Ãæ ......

linux Ï̱߳à³Ì

±¾Õ½éÉÜ POSIX Ï̵߳Ļù±¾Ï̱߳à³ÌÀý³Ì¡£±¾Õ½éÉÜȱʡỊ̈߳¨¼´£¬¾ßÓÐȱʡÊôÐÔÖµµÄỊ̈߳©£¬ÕâÊǶàÏ̱߳à³ÌÖÐ×î³£ÓõÄÏ̡߳£±¾Õ»¹½éÉÜÈçºÎ´´½¨ºÍʹÓþßÓзÇȱʡÊôÐÔµÄÏ̡߳£
±¾Õ½éÉÜµÄ POSIX Àý³Ì¾ßÓÐÓë×î³õµÄ Solaris ¶àÏ߳̿âÏàËÆµÄ±à³Ì½Ó¿Ú¡£
Ï߳̿â
ÏÂÃæ¼òÒªÂÛÊöÁËÌØ¶¨ÈÎÎñ¼°ÆäÏà¹ØÊÖ²áÒ³¡£
´´½¨È±Ê¡Ïß³Ì
Èç¹ûδָ¶¨ÊôÐÔ¶ÔÏó£¬Ôò¸Ã¶ÔÏóΪ NULL£¬ÏµÍ³»á´´½¨¾ßÓÐÒÔÏÂÊôÐÔµÄȱʡỊ̈߳º
½ø³Ì·¶Î§
·Ç·ÖÀë
ȱʡջºÍȱʡջ´óС
ÁãÓÅÏȼ¶
»¹¿ÉÒÔÓà pthread_attr_init() ´´½¨È±Ê¡ÊôÐÔ¶ÔÏó£¬È»ºóʹÓøÃÊôÐÔ¶ÔÏóÀ´´´½¨È±Ê¡Ï̡߳£ÓйØÏêϸÐÅÏ¢£¬Çë²Î¼û³õʼ»¯ÊôÐÔÒ»½Ú¡£
pthread_create Óï·¨
ʹÓà pthread_create(3C) ¿ÉÒÔÏòµ±Ç°½ø³ÌÖÐÌí¼ÓеÄÊÜ¿ØÏ̡߳£
int pthread_create(pthread_t *tid, const pthread_attr_t *tattr,
void*(*start_routine)(void *), void *arg);
#include <pthread.h>
pthread_attr_t() tattr;
pthread_t tid;
extern void *start_routine(void *arg);
void *arg;
int ret;
/* default behavior*/
ret = pthread_create(&tid, NULL, start_routine, arg);
/* initialized with default attributes */
ret = pthread ......

LinuxºËÐÄÊý¾Ý½á¹¹

Table of Contents, Show Frames, No Frames
µÚÊ®ÎåÕ LinuxºËÐÄÊý¾Ý½á¹¹
±¾ÕÂÁгöÁËLinuxʵÓõÄÖ÷ÒªÊý¾Ý½á¹¹¡£
block_dev_struct
´Ë½á¹¹ÓÃÓÚÏòºËÐĵǼǿéÉ豸£¬Ëü»¹±»buffer cacheʵÓá£ËùÓдËÀà½á¹¹¶¼Î»ÓÚblk_devÊý×éÖС£
struct blk_dev_struct {
void (*request_fn)(void);
struct request * current_request;
struct request plug;
struct tq_struct plug_tq;
};
buffer_head
´Ë½á¹¹°üº¬¹ØÓÚbuffer cacheÖÐÒ»¿é»º´æµÄÐÅÏ¢¡£
/* bh state bits */
#define BH_Uptodate 0 /* 1 if the buffer contains valid data */
#define BH_Dirty 1 /* 1 if the buffer is dirty */
#define BH_Lock 2 /* 1 if the buffer is locked */
#define BH_Req 3 /* 0 if the buffer has been invalidated */
#define BH_Touched 4 /* 1 if the buffer has been touched (aging) */
#define BH_Has_aged 5 /* 1 if the buffer has been aged (aging) */
#define BH_Protected 6 /* 1 if the buffer is protected */
#define BH_FreeOnIO 7 /* 1 to ......

LinuxµÄϵͳ¹ÜÀíÔ±,ÎÒÃÇÀë²»¿ªÕâЩ³£ÓõÄÃüÁî.

¡¡¡¡whois
¡¡¡¡¹¦ÄÜ˵Ã÷£º²éÕÒ²¢ÏÔʾÓû§ÐÅÏ¢¡£
¡¡¡¡Óï·¨£ºwhois [ÕʺÅÃû³Æ]
¡¡¡¡²¹³ä˵Ã÷£ºwhoisÖ¸Áî»áÈ¥²éÕÒ²¢ÏÔʾָ¶¨ÕʺŵÄÓû§Ïà¹ØÐÅÏ¢£¬ÒòΪËüÊǵ½Network SolutionsµÄWHOISÊý¾Ý¿âÈ¥²éÕÒ£¬ËùÒÔ¸ÃÕʺÅÃû³Æ±ØÐëÔÚÉÏÃæ×¢²á·½ÄÜѰ»ñ£¬ÇÒÃû³ÆÃ»ÓдóСдµÄ²î±ð¡£
¡¡¡¡---------------------------------------------------------
¡¡¡¡whoami
¡¡¡¡¹¦ÄÜ˵Ã÷£ºÏÈËÆºõÓû§Ãû³Æ¡£
¡¡¡¡Óï·¨£ºwhoami [--help][--version]
¡¡¡¡²¹³ä˵Ã÷£ºÏÔʾ×ÔÉíµÄÓû§Ãû³Æ£¬±¾Ö¸ÁîÏ൱ÓÚÖ´ÐÐ"id -un"Ö¸Áî¡£
¡¡¡¡²ÎÊý£º
¡¡¡¡--help
¡¡¡¡ÔÚÏß°ïÖú¡£
¡¡¡¡--version
¡¡¡¡ÏÔʾ°æ±¾ÐÅÏ¢¡£
¡¡¡¡---------------------------------------------------
¡¡¡¡who
¡¡¡¡¹¦ÄÜ˵Ã÷£ºÏÔʾĿǰµÇÈëϵͳµÄÓû§ÐÅÏ¢¡£
¡¡¡¡Óï·¨£ºwho [-Himqsw][--help][--version][am i][¼Ç¼Îļþ]
¡¡¡¡²¹³ä˵Ã÷£ºÖ´ÐÐÕâÏîÖ¸Áî¿ÉµÃ֪ĿǰÓÐÄÇЩÓû§µÇÈëϵͳ£¬µ¥¶ÀÖ´ÐÐwhoÖ¸Áî»áÁгöµÇÈëÕʺţ¬Ê¹ÓõÄ
¡¡¡¡ÖÕ¶Ë»ú£¬µÇÈëʱ¼äÒÔ¼°´ÓºÎ´¦µÇÈë»òÕýÔÚʹÓÃÄĸöXÏÔʾÆ÷¡£
¡¡¡¡²ÎÊý£º
¡¡¡¡-H»ò--heading
¡¡¡¡ÏÔʾ¸÷À¸Î»µÄ±êÌâÐÅÏ¢ÁС£
¡¡¡¡-i»ò-u»ò--idle
¡¡¡¡ÏÔʾÏÐÖÃʱ¼ä£¬Èô¸ÃÓû§ÔÚǰһ·ÖÖÓÖ®ÄÚÓнøÐÐÈκζ¯×÷£¬½«±êÊ ......
×ܼǼÊý:40319; ×ÜÒ³Êý:6720; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [4741] [4742] [4743] [4744] 4745 [4746] [4747] [4748] [4749] [4750]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ