ÔÚLinuxÖÐÖ´ÐÐ.sh½Å±¾£¬Òì³£/bin/sh^M
ÔÚLinuxÖÐÖ´ÐÐ.sh½Å±¾£¬Òì³£/bin/sh^M
www.firnow.com ʱ¼ä £º 2009-07-29 ×÷ÕߣºÄäÃû ±à¼£ºtoman µã»÷£º 199 [ ÆÀÂÛ ]
-
-
ÔÚLinuxÖÐÖ´ÐÐ.sh½Å±¾£¬Òì³£/bin/sh^M: bad interpreter: No such file or directory¡£
·ÖÎö£ºÕâÊDz»Í¬ÏµÍ³±àÂë¸ñʽÒýÆðµÄ£ºÔÚwindowsϵͳÖб༵Ä.shÎļþ¿ÉÄÜÓв»¿É¼û×Ö·û£¬ËùÒÔÔÚLinuxϵͳÏÂÖ´ÐлᱨÒÔÉÏÒì³£ÐÅÏ¢¡£
½â¾ö£º1£©ÔÚwindowsÏÂת»»£º
ÀûÓÃһЩ±à¼Æ÷ÈçUltraEdit»òEditPlusµÈ¹¤¾ßÏȽ«½Å±¾±àÂëת»»£¬Ôٷŵ½LinuxÖÐÖ´ÐС£×ª»»·½Ê½ÈçÏ£¨UltraEdit£©£ºFile-->Conversions-->DOS->UNIX¼´¿É¡£
2£©Ò²¿ÉÔÚLinuxÖÐת»»£º
Ê×ÏÈҪȷ±£ÎļþÓпÉÖ´ÐÐȨÏÞ
#sh>chmod a+x filename
È»ºóÐÞ¸ÄÎļþ¸ñʽ
#sh>vi filename
ÀûÓÃÈçÏÂÃüÁî²é¿´Îļþ¸ñʽ
:set ff »ò :set fileformat
¿ÉÒÔ¿´µ½ÈçÏÂÐÅÏ¢
fileformat=dos »ò fileformat=unix
ÀûÓÃÈçÏÂÃüÁîÐÞ¸ÄÎļþ¸ñʽ
:set ff=unix »ò :set fileformat=unix
:wq (´æÅÌÍ˳ö)
×îºóÔÙÖ´ÐÐÎļþ
#sh>./filename
ÎÄÕ³ö´¦£º·ÉŵÍø(http://dev.firnow.com/course/6_system/linux/Linuxjs/20090729/168243.html)
Ïà¹ØÎĵµ£º
ºÍBashµÄ»·¾³É趨ÓйصÄÎļþÓÐ
/etc/profile (Ö÷Òª)
$HOME/.bash_profile (Ö÷Òª)
$HOME/.bash_login
$HOME/.profile
$HOME/.bash_logout (Ö÷Òª)
$HOME/.bashrc (Ö÷Òª)
/etc/bashrc
˵Ã÷ÈçÏ£º
µÇÈë(login)ʱ
ÏÈÖ´ÐÐ /etc/profile
½Ó×Åbash»á¼ì²éʹÓÃÕßµÄ×Ô¼ÒĿ¼ÖУ¬ÊÇ·ñÓÐ .bash_profile »òÕß .bash_login»òÕß ......
ÖÜÐ÷ºê
http://zxuhong.blog.51cto.com/368977/74442
1.1 ¸ÅÊö
ÊÀ½ç±ê׼ʱ¼ä£¨Coordinated Universal Time£¬UTC£©£¬Ò²¾ÍÊÇ´ó¼ÒËùÊìÖªµÄ¸ñÁÖÍþÖαê׼ʱ ¼ä£¨Greenwich Mean Time£¬GMT£©¡£ÊÀ½ç¸÷µØʱ¼äÒ²ÊÀ½ç±ê׼ʱ¼äΪ»ù×¼»®·ÖΪ²»Í¬µÄʱÇø£¬ÀýÈ磬ÖйúµÄ±±¾©Ê±¼äÓëUTCµÄʱ²îΪ+8£¬Ò²¾ÍÊÇUTC+8¡£ÃÀ¹úÊÇUTC-5¡£
& ......
ÔÚÍøÉϲéÕÒÁËÅäÖÃlinuxÅäÖÃIPµÄ·½·¨£¬¼òµ¥µÄÓÐÏÂÃæÁ½ÖÖ£º
×î
³£ÓõĸøÍø¿¨ÅäÖÃipµÄÃüÁîΪ
££ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
˵Ã÷£º
eth0
ÊǵÚÒ»¸öÍø¿¨£¬ÆäËûÒÀ´ÎΪeth1£¬eth*
192.168.0.1ÊǸøÍø¿¨ÅäÖõĵÚÒ»¸öÍø¿¨ÅäÖõÄipµØÖ·
netmask 255.255.255.0 Åä
......
ÎÒÓõÄÊÇubuntu²Ù×÷ϵͳ¡£´ò¿ªÖÕ¶Ë
1.sudo apt-get install vim(vim-full Õâ¸öÈí¼þ×Ô9.10°æ±¾±»·ÏÆúÁË£¬²»ÂÛÔõôÌí¼ÓÈí¼þÔ´¶¼ÕÒ²»µ½µÄ£¬ËùÒÔÖ±½Ó°²×°vim¾Í¿ÉÒÔÁË£¬£¬Ò²¿ÉÒÔ°²×°gvim£¬£¬ÔÚÐÂÁ¢µÃÈí¼þÀïÃæËÑË÷vim¾Í¿ÉÒÔÕÒµ½ÁË)
2.
sudo apt-get install build-essential // build-essentialÊÇcÓïÑԵĿª·¢°ü£¬°üº¬ÁËgcc ma ......
ÊÐÃæÉÏÓеÄÒ»±¾½éÉܶàÏ̵߳ÄÊ顶Posix ¶àÏ̱߳à³Ì¡·£¬ËüÊÇÓ¢Îİ桶Programming with POSIX Muiltthread¡·ÖÐÒë±¾£¬ÕâÒ²ÊÇ°ëÄêÇ°ÎÒËùÄÜÕÒµ½µÄΨһרÌâ½éÉܶàÏ̱߳à³ÌµÄÊé¡£ÎÒ¸öÈ˸оõÕâ±¾ÊéµÄÇ°Ãæ1/3Ö®Ò»µÄÄÚÈÝдµÄ»¹ÊDz»´íµÄ£¬µ«ÊǺóÃæµÄ¶«Î÷¾Í·Ç³£»Þɬ²¢ÇÒÓкܶàÃ÷ÏÔµÄÎÄ×Ö´íÎ󡣿´¿´Õâ±¾ÊéµÄ·ÒëÕßÊǺü¸¸öÈË£¬¹À¼Æÿ¸öÈ ......