¡¾×ª¡¿LinuxϵͳÌØÊâÎļþ
Ŀ¼ÊÇLinuxϵͳ×éÖ¯ÎļþµÄÒ»ÖÖÌØÊâÎļþ¡£ÎªÊ¹Óû§¸üºÃµØʹÓÃĿ¼£¬ÎÒÃǽéÉÜÓйØĿ¼µÄһЩ»ù±¾¸ÅÄî¡£
£¨1£©¹¤×÷Ŀ¼ÓëÓû§Ö÷Ŀ¼
´ÓÂß¼ÉϽ²£¬Óû§ÔڵǼµ½LinuxϵͳÖÐÖ®ºó£¬Ã¿Ê±Ã¿¿Ì¶¼´¦ÔÚij¸öĿ¼֮ÖУ¬´ËĿ¼±»³Æ×ö¹¤×÷Ŀ¼»òµ±Ç°Ä¿Â¼£¨Working Directory£©¡£¹¤×÷Ŀ¼ÊÇ¿ÉÒÔËæʱ¸Ä±äµÄ¡£Óû§³õʼµÇ¼µ½ÏµÍ³ÖÐʱ£¬ÆäÖ÷Ŀ¼£¨Home Directory£©¾Í³ÉΪÆ乤×÷Ŀ¼¡£¹¤×÷Ŀ¼ÓÓ.”±íʾ£¬Æ丸Ŀ¼ÓÓ..”±íʾ¡£
Óû§Ö÷Ŀ¼ÊÇϵͳ¹ÜÀíÔ±Ôö¼ÓÓû§Ê±´´½¨ÆðÀ´µÄ£¨ÒÔºóÒ²¿ÉÒԸı䣩£¬Ã¿¸öÓû§¶¼ÓÐ×Ô¼ºµÄÖ÷Ŀ¼£¬²»Í¬Óû§µÄÖ÷Ŀ¼һ°ã»¥²»Ïàͬ¡£
Óû§¸ÕµÇ¼µ½ÏµÍ³ÖÐʱ£¬Æ乤×÷Ŀ¼±ãÊǸÃÓû§Ö÷Ŀ¼£¬Í¨³£ÓëÓû§µÄµÇ¼ÃûÏàͬ¡£
Óû§¿ÉÒÔͨ¹ýÒ»¸ö~×Ö·ûÀ´ÒýÓÃ×Ô¼ºµÄÖ÷Ŀ¼¡£
ÀýÈçÃüÁ
/home/WANG$ cat ~/class/software_1
ºÍÏÂÃæµÄÃüÁ
/home/WANG$ cat /home/WANG/class/software_1
ÒâÒåÏàͬ¡£Shell½«ÓÃÓû§Ö÷Ŀ¼ÃûÀ´Ìæ»»~×Ö·û¡£Ä¿Â¼²ã´Î´´½¨ºÃÖ®ºó£¬Óû§¾Í¿ÉÒÔ°ÑÓйصÄÎļþ·Åµ½ÏàÓ¦µÄĿ¼ÖУ¬´Ó¶øʵÏÖ¶ÔÎļþµÄ×éÖ¯¡£
±¾ÎÄÀ´×Ô"ËêÔÂÁªÃË"
£¨2£©Â·¾¶
¹ËÃû˼Ò壬·¾¶ÊÇÖ¸´ÓÊ÷ÐÍĿ¼ÖеÄij¸öĿ¼²ã´Îµ½Ä³¸öÎļþµÄÒ»ÌõµÀ·¡£´Ë·¾¶µÄÖ÷Òª¹¹³ÉÊÇĿ¼Ãû³Æ£¬ÖмäÓÓ/”·Ö¿ª¡£ÈÎÒ»¸öÎļþÔÚÎļþϵͳÖеÄλÖö¼ÊÇÓÉÏàÓ¦µÄ·¾¶¾ö¶¨µÄ¡£
Óû§ÔÚ¶ÔÎļþ½øÐзÃÎÊʱ£¬Òª¸ø³öÎļþËùÔڵķ¾¶¡£ ·¾¶ÓÖ·ÖÏà¶Ô·¾¶ºÍ¾ø¶Ô·¾¶¡£ ¾ø¶Ô·¾¶ÊÇÖ¸´Ó“¸ù”¿ªÊ¼µÄ·¾¶£¬Ò²³ÆΪÍêȫ·¾¶£»Ïà¶Ô·¾¶ÊÇ´ÓÓû§¹¤×÷Ŀ¼¿ªÊ¼µÄ·¾¶¡£
Ó¦¸Ã×¢Òâµ½£¬ÔÚÊ÷ÐÍĿ¼½á¹¹Öе½Ä³¸öÈ·¶¨ÎļþµÄ¾ø¶Ô·¾¶ºÍÏà¶Ô·¾¶¾ùÖ»ÓÐÒ»Ìõ¡£¾ø¶Ô·¾¶ÊÇÈ·¶¨²»±äµÄ£¬¶øÏà¶Ô·¾¶ÔòËæ×ÅÓû§¹¤×÷Ŀ¼µÄ±ä»¯¶ø²»¶Ï±ä»¯¡£ÕâÒ»µã¶ÔÓÚÎÒÃÇÒÔºóʹÓÃijЩÃüÁîÈçcpºÍtarµÈ´óÓкô¦¡£
Óû§Òª·ÃÎÊÒ»¸öÎļþʱ£¬¿ÉÒÔͨ¹ý·¾¶ÃûÀ´ÒýÓ㬲¢ÇÒ¿ÉÒÔ¸ù¾ÝÒª·ÃÎʵÄÎļþÓëÓû§¹¤×÷Ŀ¼µÄÏà¶ÔλÖÃÀ´ÒýÓÃËü£¬¶ø²»ÐèÒªÁгöÕâ¸öÎļþµÄÍêÕû·¾¶Ãû¡£ÀýÈ磬Óû§WANGÓÐÒ»¸öÃûΪclassµÄĿ¼£¬¸ÃĿ¼ÖÐÓÐÁ½¸öÎļþ£ºsoftware_1ºÍhardware_1¡£ÈôÓû§WANGÏëÏÔʾ³öÆäclassĿ¼ÖеÄÃûΪsoftware_1µÄÎļþ£¬¿ÉÒÔʹÓÃÏÂÁÐÃüÁ
/home/WANG$ cat /home/WANG/class/software_1
Óû§Ò²¿ÉÒÔ¸ù¾ÝÎļþsoftware_1Ó뵱ǰ¹¤×÷Ŀ¼µÄÏà¶ÔλÖÃÀ´ÒýÓøÃÎÄ
Ïà¹ØÎĵµ£º
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......
Èí¼þÏÂÔصØÖ·£º
pcre£ºhttp://www.pcre.org/
Nginx£ºhttp://nginx.net/
spawn-fcig: http://redmine.lighttpd.net/projects/spawn-fcgi/news
ÀûÓà wget ÃüÁîÏÂÔØÏàÓ¦µÄ °²×°°ü
²½Öè
1¡¢°²×°pcre
ngnix ÐèÒª°²×°pcre¿â£º
wget http://sourceforge.net ......
ÈçºÎÔÚlinux¿ª»úʱ×Ô¶¯Æô¶¯smb¹²Ïí·þÎñ£¿
·½·¨1£ºntsysv£¬ÓнçÃ棬ѡÖÐsamba·þÎñ¼´¿É
·½·¨2. chkconfig --add smb
[root@test ~]# chkconfig --add smb
[root@test ~]# chkconfig --list smb
smb ......