linuxÃüÁîÔ´ÂëµÄ²é¿´
ÔÚƽ³£µÄ×÷ÒµÖУ¬ÓÐʱºòÀÏʦÈÃ×Ô¼ºÊµÏÖÖîÈçcatµÈÀàµÄ³ÌÐò£¬ÓÐʱºò½ÐÓÃshellʵÏÖ£¬ÓÐʱºòÓÃcʵÏÖ£¬µ«ÊÇÎÒ¾³£Ò»µãÍ·Ð÷¶¼Ã»ÓУ¬²»¹ýÎÒÏëµ½linux¿ªÔ´µÄ£¬ÃüÁî´úÂë¿ÉÒÔÄÃÀ´²Î¿¼Ï°¢£¬ËùÒÔÎÒ¾ÍÏë¿´¿´linuxÃüÁîµÄÔ´´úÂ룬ÓÚÊǾͿªÊ¼Á˰ڶɹ·¹·µÄËÑË÷¹ý³Ì¡£´Ó½á¹ûÀ´¿´£¬ÓÐÁ½ÖÖÇé¿ö£¬Ò»ÖÖÊǸøÓèrpmµÄ°üµÄÐÎʽ£»ÁíÒ»ÖÖÊÇ»ùÓÚdeb°üµÄÐÎʽ¡£¾ßÌåÎÒÒ²²»ÖªµÀ¸ÃÔõôÃèÊö£¬×ÜÖ®¾ÍÊÇÒ»ÖÖredhatµÄÔ´Âë²é¿´£¬Ò»ÖÖÊÇdebianµÄÔ´Âë²é¿´¡£ÎÒÊÇÓõÄubuntu£¬»ùÓÚdebianµÄ£¬ËùÒÔÏÈÇ°°´ÕÕrpmµÄ·½Ê½ÔõôҲ²»×àЧ¡£
ÏÂÃæÎÒ¾Í×ܽáÁËÏ£º´ó¸Å¾ÍÊÇÔ´Â붼´æ·ÅÔÚÏàÓ¦µÄ°üÀïÃæ¡£
ÐÂÀûµÃÀïÎÒËÑÁËÏÂcoreutils£¬ÏÔʾÒѾ°²×°£¬²»¹ýÕâÀï°²×°µÄÓ¦¸ÃÊÇÈí¼þ£¬Ò²¾ÍÊÇÃüÁîµÄÖ´ÐÐÎļþ°ÉÓ¦¸Ã¡£µ«ÊÇÎÒûÓÐÕÒµ½ËüÊÇ·ñ°²×°ÁËsrc£¬Ò²¾ÍÊÇÔ´´úÂë¡£
PS:
CoreutilsÈí¼þ°üº¬ÓÐÓÃÓÚչʾºÍÉèÖûù±¾ÏµÍ³ÌØÐԵŤ¾ß¡£
¾ßÌå¹ý³ÌÒ»(Linux rwind-ubuntu 2.6.22-14-generic):
1.Ê×ÏÈÕÒµ½ÄãÏë²é¿´µÄÃüÁîÊôÓÚÄĸö°ü
rwind@rwind-ubuntu:~$ dpkg -S `which ls`
coreutils: /bin/ls
coreutils¾ÍÊÇÔ´ÂëËùÔڵİü£¬ÏÂÃæ¾ÍÊÇÒªÏÂÔØÁË¡£
ͬÑù£º
rwind@rwind-ubuntu:~/source$ dpkg -S `which which`
debianutils: /usr/bin/which
debianutils¾ÍÊÇwhichËùÔڵİü¡£
ÎÒµÚÒ»´Î·¸µÄ´íÎ󣺰Ñ``Óóɑ’ÁË£¬ÕâÁ½ÖÖ²»Ò»Ñù°¢£¬Ç°Ò»¸öÊÇÊý×Ö¼ü1×ó±ßµÄÒýºÅ£¬×÷ÓÃÊÇÔÚshellÖØ×éÃüÁîÐÐʱ°Ñ``ÀïÃæµÄÄÚÈݵ±×÷ÃüÁîÀ´Ö´Ðв¢Ì滻Ϊ½á¹û¡£
2.ÏÂÔØÏàÓ¦µÄÔ´Âë°ü
rwind@rwind-ubuntu:~/source$ apt-get -d source "debianutils"ÕýÔÚ¶ÁÈ¡Èí¼þ°üÁбí... Íê³ÉÕýÔÚ·ÖÎöÈí¼þ°üµÄÒÀÀµ¹ØϵÊ÷ ¶Áȡ״̬ÐÅÏ¢... Íê³É ÐèÒªÏÂÔØ 134kB µÄÔ´´úÂë°ü¡£»ñÈ¡£º1 http://ubuntu.cn99.com feisty/main debianutils 2.17.4build1 (dsc) [479B]»ñÈ¡£º2 http://ubuntu.cn99.com feisty/main debianutils 2.17.4build1 (tar) [133kB]ÏÂÔØ 134kB£¬ºÄʱ 1s (90.7kB/s) ÏÂÔØÍê±Ï£¬Ä¿Ç°ÊÇ“½öÏÂÔؔģʽ
dÑ¡ÏîÊǽö½öÏÂÔصÄÑ¡Ïî¡£ÏÂÔص½ÄãÄ¿Ç°µÄ¹¤×÷Ŀ¼µ±ÖС£
3.°ÑÄãÏÂÔصİü½âѹËõ£¬×Ô¼ºÈ¥ÀïÃæÕÒ°
Ïà¹ØÎĵµ£º
¸ÃÈçºÎÐÞ
¸´linuxÒýµ¼ÄØ£¿ÔÚ´Ó×°xpºó£¿ÎÒ·ÖÏíÒ»ÏÂÎҵľÑ飺ÎÒÊÇÓùâÅÌ°²×°ºìÆì6.0µÄ£¬Ê×ÏȽ«¹âÅÌ·ÅÈë¹âÇý£¬ÏÖÔڵĵçÄÔÒ»°ã¶¼Ö§³Ö´Ó¹âÇýÆô¶¯£¬È»ºóÖØÆôµç
ÄÔÕâʱ»á³öÏÖºìÆìµÄ°²×°½çÃ棬ÏÂÃ滹ÓÐboot£ºµÄ×ÖÑùÕâʱ£¬ÎÒ°´f5£¬½øÈëlinux
rescue½çÃæ¾ÍÊÇlinuxÐÞ¸´½çÃ棬½Ó×Å°´»Ø³µ¼ü£¬¾Í»á½øÈëºÍ¿ªÊ¼°²×°½çÃæÒ»ÑùµÄ½çÃ棬
......
ǶÈëʽLinux¿ª·¢ÐèÒªµÄ²Î¿¼×ÊÁÏ
×÷Õߣº ¡¡À´Ô´ÓÚ£º ¡¡·¢²¼Ê±¼ä£º2008-10-6 20:45:00
Òýµ¼£º
ÈçÐè»ñµÃ¶Ô
vmlinux
ºÍ
zimage
Ö®¼äÇø±ðµÄ¼«ºÃ½âÊÍ£¬ÇëÔÚ
Alessandro Rubini
±àдµÄ
“
Kernel Configuration: dealing with the unexpected
£¨
Linux Magazine
£©µÄÒ»ÎÄÖÐÕÒµ½
&ld ......
ϵͳ
# uname -a # ²é¿´ÄÚºË/²Ù×÷ϵͳ/CPUÐÅÏ¢
# head -n 1 /etc/issue # ²é¿´²Ù×÷ϵͳ°æ±¾
# cat /proc/cpuinfo # ²é¿´CPUÐÅÏ¢
# hostname &nbs ......
À뿪Õâ¼Ò¹«Ë¾Ò²ÒѾÎåÄê¶àÁË£¬ÔÙ֮ǰÓÐÒ»¸öÅóÓÑÀ뿪ʱ£¬ÎÒ»¹Ì¸µ½ÐÄÖеÄÓ²¼þÀíÏ룬ËûÖ»ÊÇ˵À뿪Ӳ¼þºÜ¶àÄêÖ®ºó¿ÖÅÂÒѾÎÞ·¨»ØÈ¥ÁË£¬µ±Ê±ÎÒËäȻû˵ʲô£¬ÐÄÀﻹÊÇÓÐЩÎÞÄεġ£½ñÌ쵱дµ½ÏÖÔÚµÄʱºò£¬·¢ÏÖÓ²¼þÔÚÎҵŤ×÷ÖÐÒѾ½¥½¥µ»¯ÁË£¬ÊDz»ÊÇËüÕæµÄ²»ÖØÒªÁË£¿
ÓÚÊÇдϽñÌìµÄ±êÌâµÄʱºò£¬¾ö¶¨¼ÓÉÏGNU/Linux£¬ÒòΪËü³ÉΪÁ ......
±¾ÎÄÖн«½²Êölinux»·¾³±à³ÌÖÐÏ̵߳ÄʹÓᣲ»Ëµ·Ï»°Ö±½ÓÉÏ´úÂ룺
#include <pthread.h>
#include <assert.h>
struct ThreadData
{
int i;
};
void * ThreadProc(void* arg)
{
ThreadData* data = static_cast<ThreadData*>(arg);
//do something
pthread_exit(data);
}
int main() ......