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

LinuxÉèÖû·¾³±äÁ¿Ð¡½á

 
1¡¢×ܽᱳ¾°
ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾°¸Àý»ùÓÚRedHat AS4½²½â»·¾³±äÁ¿¶¨ÖƵÄÎÊÌâ¡£
2¡¢±äÁ¿¼ò½é
LinuxÊÇÒ»¸ö¶àÓû§µÄ²Ù×÷ϵͳ¡£Ã¿¸öÓû§µÇ¼ϵͳºó£¬¶¼»áÓÐÒ»¸öרÓõÄÔËÐл·¾³¡£Í¨³£Ã¿¸öÓû§Ä¬ÈϵĻ·¾³¶¼ÊÇÏàͬµÄ£¬Õâ¸öĬÈÏ»·¾³Êµ¼ÊÉϾÍÊÇÒ»×é»·¾³±äÁ¿µÄ¶¨Òå¡£Óû§¿ÉÒÔ¶Ô×Ô¼ºµÄÔËÐл·¾³½øÐж¨ÖÆ£¬Æä·½·¨¾ÍÊÇÐÞ¸ÄÏàÓ¦µÄϵͳ»·¾³±äÁ¿¡£
3¡¢¶¨ÖÆ»·¾³±äÁ¿
»·¾³±äÁ¿ÊǺÍShell½ôÃÜÏà¹ØµÄ£¬Óû§µÇ¼ϵͳºó¾ÍÆô¶¯ÁËÒ»¸öShell¡£¶ÔÓÚLinuxÀ´ËµÒ»°ãÊÇbash£¬µ«Ò²¿ÉÒÔÖØÐÂÉ趨»òÇл»µ½ÆäËüµÄShell£¨Ê¹ÓÃchshÃüÁ¡£
¸ù¾Ý·¢Ðа汾µÄÇé¿ö£¬bashÓÐÁ½¸ö»ù±¾µÄϵͳ¼¶ÅäÖÃÎļþ£º/etc/bashrcºÍ/etc/profile¡£ÕâЩÅäÖÃÎļþ°üº¬Á½×鲻ͬµÄ±äÁ¿£ºshell±äÁ¿ºÍ»·¾³±äÁ¿¡£Ç°ÕßÖ»ÊÇÔÚÌض¨µÄshellÖй̶¨£¨Èçbash£©£¬ºóÕßÔÚ²»Í¬shellÖй̶¨¡£ºÜÃ÷ÏÔ£¬shell±äÁ¿ÊǾֲ¿µÄ£¬¶ø»·¾³±äÁ¿ÊÇÈ«¾ÖµÄ¡£»·¾³±äÁ¿ÊÇͨ¹ýShellÃüÁîÀ´ÉèÖõģ¬ÉèÖúõĻ·¾³±äÁ¿ÓÖ¿ÉÒÔ±»ËùÓе±Ç°Óû§ËùÔËÐеijÌÐòËùʹÓ᣶ÔÓÚbashÕâ¸öShell³ÌÐòÀ´Ëµ£¬¿ÉÒÔͨ¹ý±äÁ¿ÃûÀ´·ÃÎÊÏàÓ¦µÄ»·¾³±äÁ¿£¬Í¨¹ýexportÀ´ÉèÖû·¾³±äÁ¿¡£
×¢£ºLinuxµÄ»·¾³±äÁ¿Ãû³ÆÒ»°ãʹÓôóд×Öĸ
4¡¢»·¾³±äÁ¿ÉèÖÃʵÀý
1.ʹÓÃÃüÁîechoÏÔʾ»·¾³±äÁ¿
±¾ÀýʹÓÃechoÏÔʾ³£¼ûµÄ±äÁ¿HOME
$ echo $HOME
/home/kevin
2.ÉèÖÃÒ»¸öеĻ·¾³±äÁ¿
$ export MYNAME=”my name is kevin”
$ echo $ MYNAME
my name is Kevin
3.ÐÞ¸ÄÒÑ´æÔڵĻ·¾³±äÁ¿
½ÓÉϸöʾÀý
$ MYNAME=”change name to jack”
$ echo $MYNAME
change name to jack
4.ʹÓÃenvÃüÁîÏÔʾËùÓеĻ·¾³±äÁ¿
$ env
HOSTNAME=localhost.localdomain
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
SSH_CLIENT=192.168.136.151 1740 22
QTDIR=/usr/lib/qt-3.1
SSH_TTY=/dev/pts/0
……
5.ʹÓÃsetÃüÁîÏÔʾËùÓб¾µØ¶¨ÒåµÄShell±äÁ¿
$ set
BASH=/bin/bash
BASH_ENV=/root/.bashrc
……
6.ʹÓÃunsetÃüÁîÀ´Çå³ý»·¾³±äÁ¿
$ export TEMP_KEVIN=”kevin”     #Ôö¼ÓÒ»¸ö»·¾³±äÁ¿TEMP_KEVIN
$ env | grep TEMP_KEVIN  &


Ïà¹ØÎĵµ£º

LinuxϵͳÈÕÖ¾½éÉÜ(syslogd)

¡¡¡¡1¡¢½éÉÜ£º
¡¡¡¡ ´ó²¿·ÖµÄ Linux ϵͳÖж¼ÒªÊ¹Óà syslog ¹¤¾ß£¬ËüÊÇÏ൱Áé»îµÄ£¬ÄÜʹϵͳ¸ù¾Ý²»Í¬ÈÕÖ¾ÊäÈëÏî²ÉÈ¡²»Í¬µÄ»î¶¯¡£syslog ¹¤¾ßÓÉÒ»¸öÊØ»¤³ÌÐò×é³É¡£ËüÄܽÓÊÜ·ÃÎÊϵͳµÄÈÕÖ¾ÐÅÏ¢²¢ÇÒ¸ù¾Ý /etc/syslog.conf ÅäÖÃÎļþÖеÄÖ¸Áî´¦ÀíÕâЩÐÅÏ¢¡£³ÌÐò£¬ÊØ»¤½ø³ÌºÍÄÚºËÌṩÁË·ÃÎÊϵͳµÄÈÕÖ¾ÐÅÏ¢¡£Òò´Ë£¬ÈκÎÏ£ÍûÉú³ÉÈÕ ......

LinuxÔ­×Ó²Ù×÷µÄ·ÖÎö


Linux
Ô­×Ó²Ù×÷µÄ·ÖÎö
±¾ÎÄÕë¶ÔLinuxÌṩµÄÔ­×Ó²Ù×÷º¯Êý
atomic_dec_and_test
×öÁËÏêϸµÄʵÀý·ÖÎö£¬½âÊÍÁËÆäÔ­×ÓÐԵı¾ÖÊÒâÒå¡£

²¢¶Ô
volatile
²úÉúµÄÎó½â×öÁ˽âÊÍ¡£

1.  
atomic_dec_and_test
·ÖÎö
£¨
1
£©ÏÈÀ´¿´
atomic_dec_and_test
µÄ¶¨Ò壺
 
11 #ifdef CONFIG_SMP
12 #def ......

¡¾×ª¡¿Linux Îļþϵͳ¸ÅÊö

 Ò»¡¢Ê²Ã´ÊÇÎļþϵͳ £¨Filesystem£©£»
1¡¢³£¼û¶¨Òå·½·¨£»
ʲôÊÇÎļþϵͳ£¨filesystem£©£¬ÓÃÒ»Á½¾ä»°½â´ð³öÀ´£¬ÊµÔÚÓеãÀ§ÄÑ£¬Õâ¸öÎÊÌâÖ»ÄÜÁô¸øÎļþϵͳµÄÉè¼ÆÕß»ò¶ÔÎļþϵͳ¾«Í¨µÄרҵÈËÊ¿À´´ð¸´£»ÏÂÃæÊǹØÓÚfilesystemµÄ¶¨ÒåÊÇÎÒ´Ó Google.com ÉÏËÑË÷µ½µÄ£»ÏÂÃæÎÒÃÇ·ÖÎöһϣ¬¶ÔÎÒÃÇÀ´Ëµ£¬Á˽âÒ»ÏÂÒ²Óкô¦¡£Èç¹û ......

Linux SVNµÄ°²×°Ê¹ÓÃ


Linux SVNµÄ°²×°Ê¹ÓÃ
The goal of the Subversion project is to build a version control system that is a compelling replacement for CVS in the open source community. The software is released under an Apache/BSD-style open source license.
SVNÊÇÒ»¸ö°æ±¾¿ØÖÆÈí¼þ£¬ÀàËÆCVS£¬µ«ÊÇSVNµÄµÄÓеãÊÇ¿ªÔ´µÄ£¬¶øÇÒ ......

linuxÏÂÃæµÄµ÷ÊÔÆ÷£¬Ïë˵°®Äã²»ÈÝÒ×

 
ÔÚlinuxÏÂÃ濪·¢c++µÄÓ¦ÓóÌÐò£¬Ê¹ÓÃstlµÄ¿â£¬·¢ÏÖ»¹ÊDz»ÊǺܷ½±ã£¬ÓÈÆäÊÇÆäµ÷ÊÔÆ÷¡£
ʹÓõÄÊÇkdevelop¼¯³É»·¾³£¬±à±à´úÂ뻹Ëã·½±ã£¬±àÒëÒ²ÐУ¬µ«Êǵ÷ÊԵĻ°¸Ð¾õÌر𲻷½±ã¡£Ëüµ÷ÓÃÁËgdb£¬µ«ÊÇΪÁ˵÷ÊÔ·½±ã×Ô¼ºÓÖ¼ÓÁ˺Ü
¶à¶îÍâµÄÃüÁîµ¼ÖºܶàÐÅÏ¢»á¿´²»µ½¡£×Ô¼ºÒ»Ö±ÓÃgdb£¬ÓÐÈËÓÃddd£¬ºóÕßÒ²Êǵ÷ÓÃgdb£¬µ«ÊÇ·¢ÏÖÈ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ