LinuxÈëÃűʼÇÎå
Shell½Å±¾¼°Æä³É·Ö
ShellÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄ±à³ÌÓïÑÔ¡£ÓÃShell±àдµÄÅú´¦ÀíÎļþ³ÆÎªShell½Å±¾¡¢
Shell½Å±¾µÄ³É·Ö
-×¢ÊͲ¿·Ö
ÒÔ#¿ªÍ·µÄÐÐ
-ÃüÁî
ÔÚShell½Å±¾ÖпÉÒÔ³öÏÖÈκÎÔÚ½»»¥·½Ê½Ï¿ÉÒÔʹÓõÄÃüÁî
-±äÁ¿
¼È¿ÉÒÔʹÓÃÓû§×Ô¶¨ÒåµÄ±äÁ¿£¬Ò²¿ÉÒÔʹÓÃϵͳ»·¾³±äÁ¿
-Á÷³Ì¿ØÖÆ
¶ÔÃüÁîµÄÖ´ÐÐÁ÷³Ì½øÐпØÖÆ£¨Ë³Ðò¡¢·ÖÖ§¡¢Ñ»·£©
Á·Ï°
more /etc/httpd/
vi hello
ls
date
whoami
pwd
date;whoami;pwd
ÔÚhelloÀïдÉÏ
#/bin/bash
#this script is display current user,time and path
#it is display current time
echo "current time is"
date
#it is display current user
echo "current user is"
whoami
#it is display current path
echo "current path is"
pwd
Ö´ÐÐbash hello
Á·Ï°
ls -l
-rwxr-xr-- Root IT abctxt
Root ×÷ΪËùÓÐÕß ¿´Ç°ÈýÏî rwx
Ö´ÐÐchmod u+x hello
ls -l hello
IT ×÷ΪËùÓÐ×é ¿´ÖмäÈýÏî r-x
ÆäËûËùÓÐ×é ¿´ºóÈýÏî r--
³£¼ûµÄ»·¾³±äÁ¿
HOME Óû§Ö÷Ŀ¼
PATH ÃüÁîËÑË÷·¾¶
PS1 ÃüÁîÌáʾ·ûºÅ
PWD Óû§µ±Ç°¹¤×÷·¾¶
SHELL Óû§shellÀàÐÍ
TERM ÖÕ¶ËÀàÐÍ
LANG ÓïÑÔ»·¾³
x=abc
echo x
echo $x
x=asdfsaf
echo $x
echo $SHELL
echo $PATH
Ð޸Ļ·¾³±äÁ¿
PATH=$PATH:/root
echo $hello
Ïà¹ØÎĵµ£º
1¡¢½«Îļþcheckoutµ½±¾µØÄ¿Â¼
svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
ÀýÈ磺svn checkout svn://192.168.1.1/pro/domain
¼òд£ºsvn co
2¡¢Íù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
svn add file
ÀýÈ磺svn add test.php(Ìí¼Ótest.php)
svn add *.php(Ìí¼Óµ±Ç°Ä¿Â¼ÏÂËùÓеÄphpÎļþ)
3¡¢½«¸Ä¶¯µÄÎļþÌá½»µ½°æ±¾ ......
£¨Ò»£©RedHat/CentOS/Fedora ϵͳÃÜÂëÆÆ½â
¡¡¡¡1.ÔÚgrubÑ¡Ïî²Ëµ¥°´E½øÈë±à¼Ä£Ê½¡£
¡¡¡¡2.±à¼kernel ÄÇÐÐ×îºó¼ÓÉÏS£¨»òÕßSingle£©¡£
¡¡¡¡3.°´B£¬Æô¶¯µ½single-user mode¡£
¡¡¡¡4.½øÈëºóÖ´ÐÐÏÂÁÐÃüÁ
¡¡¡¡# mount -t proc proc /proc
¡¡¡¡# mount -o remount,rw /
¡¡¡¡#passwd
¡¡¡¡#sync
¡¡¡¡#reboot
£¨¶þ£©D ......
Linux²Ù×÷ϵͳÏÂVI±à¼Æ÷³£ÓÃÃüÁî½éÉÜ
ZDNet ÍøÂçÆµµÀƵµÀ ¸üÐÂʱ¼ä£º2008-05-19 ×÷Õߣºkid À´Ô´£ºÈüµÏÍø
±¾ÎĹؼü´Ê£ºlinuxÃüÁî Linux linux viÃüÁî
¡¡¡¡Ò»£®¼ò½é
¡¡¡¡viÊÇunixÊÀ½çÖÐ×îͨÓõÄÈ«ÆÁ±à¼Æ÷£¬linuxÖÐÊÇÓõÄÊÇviµÄ¼ÓÇ¿°ævim,vimͬviÍêÈ«¼æÈÝ£¬vi¾ÍÊÇ"visual interface"µÄËõд¡£ ......
ÔÚ¹²ÏíÄڴ棨ÉÏ£©ÖУ¬Ö÷ÒªÎ§ÈÆ×Åϵͳµ÷ÓÃmmap()½øÐÐÌÖÂ۵쬱¾²¿·Ö½«ÌÖÂÛϵͳV¹²ÏíÄڴ棬²¢Í¨¹ýʵÑé½á¹û¶Ô±ÈÀ´²ûÊöÁ½ÕßµÄÒìͬ¡£ÏµÍ³V¹²ÏíÄÚ´æÖ¸µÄÊǰÑËùÓй²ÏíÊý¾Ý·ÅÔÚ¹²ÏíÄÚ´æÇøÓò£¨IPC shared memory region£©£¬ÈκÎÏëÒª·ÃÎʸÃÊý¾ÝµÄ½ø³Ì¶¼±ØÐëÔÚ±¾½ø³ÌµÄµØÖ·¿Õ¼äÐÂÔöÒ»¿éÄÚ´æÇøÓò£¬ÓÃÀ´Ó³Éä´æ·Å¹²ÏíÊý¾ÝµÄÎïÀíÄÚ´æÒ³Ãæ ......
vmwareÐéÄâlinux¾ÖÓòÍøÖÐÉÏÍø
¶ÔÓÚ³õѧlinuxµÄÅóÓÑ£¬×îºÃÊÇÔÚwindowsÏÂÓÃvmwareÐéÄâÒ»¸ölinux£¬Èç¹ûÊǾÖÓòÍø£¬¿ÉÒÔʹÓÃNAT·½Ê½×îΪ¼òµ¥¡£
ÓÃVMnet8£¬°²×°ºÃºó£¬Ñ¡ÔñNAT·½Ê½£¬È»ºóÔÚwindowsÖ÷»úÉÏÓÃipconfig²é¿´VMnet8µÄIPµØÖ·£¬ÔËÐÐ->cmd->ipconfig -all
Ò»°ãÊÇ192.168.X.1/255.255.255.0
´ËʱVMnet8µÄÉèÖ ......