linux±àдc³ÌÐò·¢ÏÖ
Õ⼸ÌìÎÒ°²×°ÁËÒ»¸öLinuxϵͳ£¬ÏëÔÚÀïÃæѧһÏÂCÓïÑԵıàд£¬·¢ÏÖÔÚÀïÃæÔËÐÐÓÐÒ»¸öºÃÆæ¹ÖµÄÏÖÏó£ºÈçÏÂÃæ
#include<stdio.h>
void mian(){
printf("hello world!");
}
Êä³öûÓнá¹û£¡¸ãµÄÎÒ¿´ÁË°ëÌ죬³ÌÐòûÓдíÎó°¡£¡ÔõôÕâÑù£¡ºóÀ´ÎҰѳÌÐò¸ÄΪ
#include<stdio.h>
void mian(){
printf("hello world!\n");
}
±àÒ룬ÔËÐУ¬Êä³öhello world£¡
ÎÒÔΣ¡ÔÀ´ÊÇûÓоͼӻ»Ðзû£¡£¡ËÖªµÀΪʲô»áÕâÑù°¡£¿£¿
Ïà¹ØÎĵµ£º
Ò»£º°²×°jdk Îҵİ汾ÊÇ£ºjdk-6u10-linux-i586.rpm
°²×°jdk1.6°²×°°ü£º rpm -ivh jdk-6u10-linux-i586.rpm
ÅäÖû·¾³±äÁ¿£º
1£¬½øÈëprofileÎļþ£ºvi/etc/profile
2,ÔÚÎļþÖÐÌí¼ÓÒÔÏ´úÂ룺
export JAVA_HOME = /usr/usr/java/jdk1.6.0_10 --jdk°²×°Ä¿Â¼
export CALSSPATH = $JAVA_HOM ......
Îı¾½çÃæÏ£¬ºìñÓÃÀ¶É«×÷ΪlsµÄĿ¼µÄÑÕÉ«£¬ÅäºÏËûµÄºÚÉ«±³¾°£¬¸Ð¾õÌ«°µÁË£¬¿´²»Çå¡£
¸Ä³É±ðµÄÑÕÉ«µÄ·½·¨£º
Ê×ÏÈ£¬
# vi
/etc/DIR_COLORS
ÄÚµÄÉ趨“DIR 01£»34”£¬ÎªlsÃüÁîµÄĿ¼µÄÑÕÉ«ÉèÖã¬01±íʾ´ÖÌ壬34±íʾ×ÖÌåÀ¶É«¡£
ÎÒ°ÑËü
¸Ä³ÉÁË“DIR 01£»37£»44”£¬37ÊÇ×ÖÌå°×É«£¬44ÊÇ×Ö±³¾°À¶É«£¬ ......
Linux ÄÚºËÈíÖжÏ(softirq)Ö´ÐзÖÎö
Author: sinister
Email: sinister@whitecell.org
Homepage:http://www.whitecell.org
Date: 2007-01-11
±¾ÎÄ¶Ô Linux ÄÚºËÈíÖжϵÄÖ´ÐÐÁ÷³Ì½øÐÐÁË·ÖÎö£¬²¢¾¡¿ÉÄܵĽáºÏµ±Ç°ÔË
Ðл·¾³ÏêϸµØд³öÎÒµÄÀí½â£¬µ«Õâ²¢²»±íÃ÷ÎÒµÄÀí½âÒ»¶¨ÕýÈ·¡£Õâ±¾ ......
ÐźÅÊÇLinux±à³ÌÖзdz£ÖØÒªµÄ²¿·Ö£¬±¾ÎĽ«Ïêϸ½éÉÜÐźŻúÖƵĻù±¾¸ÅÄî¡¢Linux¶ÔÐźŻúÖƵĴóÖÂʵÏÖ·½·¨¡¢ÈçºÎʹÓÃÐźţ¬ÒÔ¼°ÓйØÐźŵļ¸¸öϵͳ
µ÷Óá£
ÐźŻúÖÆÊǽø³ÌÖ®¼äÏ໥´«µÝÏûÏ¢µÄÒ»ÖÖ·½·¨£¬ÐźÅÈ«³ÆΪÈíÖжÏÐźţ¬Ò²ÓÐÈ˳Æ×÷ÈíÖжϡ£´ÓËüµÄÃüÃû¿ÉÒÔ¿´³ö£¬ËüµÄʵÖʺ ......
1.ÇóÏÂÃ溯ÊýµÄ·µ»ØÖµ£¨Î¢Èí£©
int func(x)
{
int countx = 0;
while(x)
{
countx ++;
x = x&(x-1);
}
......