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

VPSʹÓÃÊÖ¼Ç LinuxÃüÁîÐлù´¡

VPSʹÓÃÊÖ¼Ç-LinuxÃüÁîÐлù´¡
Written by shine
on 2009, April 21, 4:09 PM. Linux
ÕâÀïÎÒ½«ÁгöʹÓÃlinux
vps
¹ý³ÌÖеij£ÓÃÃüÁÃæÏòµÄ¶ÔÏóÊǶ®Ò»µãÃüÁîÐÐ
µÄÅóÓÑ£¬Èç¹ûÄãûÓÐÈκÎÃüÁîÐлù´¡£¬½¨ÒéÕÒ±¾LinuxµÄ»ù´¡½Ì³ÌÀ´¿´¿´¡£
ÔÚ½²¾ßÌåµÄÃüÁî֮ǰ£¬ÏȽéÉÜÒ»ÏÂLinuxÃüÁîÐеÄһЩ³£Ê¶£º
Ò»ÌõÃüÁîÒ»°ãµÄ¸ñʽÊÇÕâÑùµÄ£ºÃüÁîÃû³Æ [²ÎÊý] [·¾¶]£¬[]´ú±í¿ÉÒÔÊ¡ÂÔ£¬Ê¡ÂÔ·¾¶±íʾÊÊÓõ±Ç°Â·¾¶¡£
·
¾¶ÓÐÏà¶Ô·¾¶ºÍ¾ø¶Ô·¾¶Á½ÖÖ£¬¾ø¶Ô·¾¶ÊÇÒÔ¸ùĿ¼£¨“/”£©ÎªÆðµãµÄ£¬Èç/home/shine´ú±í¸ùĿ¼ÏÂÃæhomeĿ¼ÖеÄshine×ÓĿ¼£¬Ïà¶Ô·
¾¶Ö¸µÄÊÇÒÔµ±Ç°Â·¾¶ÆðµãµÄ·¾¶£¬È統ǰ·¾¶Îª/home£¬shine/doc´ú±íµÄ¾ø¶Ô·¾¶ÊÇ/home/shine/doc£¬“.”´ú±íµ±Ç°Ä¿
¼£¬“..”´ú±íÉÏÒ»¼¶Ä¿Â¼£¬ÀýÈçÇ°Ò»¸öÀý×ÓÖÐʹÓÃ./shine/docЧ¹ûÊÇÒ»ÑùµÄ¡£“~”´ú±íµÄÊǵ±Ç°Óû§µÄÖ÷Ŀ¼£¬Èç¹ûµ±Ç°ÊÇÒÔshineÕâ¸öÓÃ
»§µÇ¼µÄ£¬Ôò~/docÒ²¿ÉÒÔ´ïµ½ÉÏÃæµÄЧ¹û¡£
Èç¹ûÄã²»ÖªµÀÒ»¸öÃüÁîÔõôÓ㬿ÉÒÔʹÓÃmanÕâ¸öÃüÁîÀ´²éÔÄ£¬µ«Ò»°ãÎÒÃÇÖ»ÊǼDz»ÇåÃüÁîµÄ¾ßÌå²ÎÊý£¬Ö»ÒªÔÚÃüÁîÃûºó¼Ó--help¾Í¿ÉÒÔÁË£¬Èçls --help¡£
ÃüÁîÔËÐйý³ÌÖÐÈç¹ûÏëÍ˳öÈ´²»ÖªµÀÔõô×ö£¬Ò»°ãÓ¦¸Ã¿ÉÒÔ³¢ÊÔCtrl+C¡¢Ctrl+D¡¢exit¡¢logout¡¢quit¡£
cd ¸Ä±ä·¾¶£¬ÀýÈçcd /¿ÉÒÔ°Ñ·¾¶Çл»µ½¸ùĿ¼Ï£¬Óû§µÇ¼ºóµÄĬÈÏ·¾¶Îª×Ô¼ºµÄÓû§Ä¿Â¼£¬Ê¹Óùý³ÌÖÐÒ²¿ÉÒÔͨ¹ýcd»òÕßcd ~»Øµ½Óû§Ä¿Â¼¡£
ls ÏÔʾָ¶¨Ä¿Â¼ÏµÄÎļþºÍĿ¼£¬ls -a¿ÉÒÔÏÔʾ°üÀ¨Òþ²ØÎļþÔÚÄÚµÄËùÓÐÄÚÈÝ£¬ls -lΪÁбíÏÔʾ¡£
su Çл»µ½rootÉí·ÝµÇ¼
logout ×¢Ïú
mkdir н¨Ä¿Â¼£¬Ä¬ÈÏÖ¸¶¨µÄ·¾¶ÖÐÓв»´æÔڵĸ¸Ä¿Â¼»á³ö´í£¬Ê¹ÓÃ-p²ÎÊý¼´¿É¡£
rm ɾ³ýÎļþ£¬Ä¬Èϲ»ÄÜɾ³ýĿ¼£¬Ê¹ÓÃ-r²ÎÊý¿ÉÒԵݹéɾ³ýĿ¼¼°ÆäÄÚÈÝ¡£
mv Òƶ¯Îļþ
cp ¸´ÖÆÎļþ£¬Ä¬Èϲ»Äܸ´ÖÆĿ¼£¬Ê¹ÓÃ-²ÎÊý¿ÉÒÔ¸´ÖÆĿ¼¼°Ä¿Â¼ÄÚµÄËùÓÐÏîÄ¿¡£
cat ÏÔʾÎļþÄÚÈÝ
echo »ØÏÔÊäÈëµÄÄÚÈÝ£¬¿ÉÒÔÓÃÀ´ÏÔʾһЩ»·¾³±äÁ¿µÄÖµ£¬Èçecho $PATH
ln ½¨Á¢Á´½Ó£¬ÓÐÈíÁ´½ÓºÍÓ²Á´½ÓÖ®·Ö£¬Ò»°ãÓÃ-s½¨Á¢ÈíÁ´½Ó¡£
tar
´ò°ü³ÌÐò£¬ÅäÉÏһЩ²ÎÊý¿ÉÒÔʵÏÖѹËõ/½âѹ¹¦ÄÜ£¬Ò»°ãÎÒÃÇÔÚʹÓÃVPSÖнâѹÓõñȽ϶࣬ʹÓòÎÊý-xvf½âѹ*.tarÎļþ£¬Ê¹ÓÃ-xzvf½â
ѹ*.tar.gz£¬Ê¹ÓÃ-xjvf½âѹ*.tar.bz2£¬Èç¹ûÐèÒª½âѹ*.zip»òÕß*.rarÎļþ£¬ÐèÒª°²×°ÏàÓ¦µÄѹËõÈí¼þ£¬ÓÃunzipºÍ
unrarÃüÁî½âѹ¡£
df -h ²é¿´Ó²ÅÌʹÓÃÇé¿ö
du -sh ²é¿´¸ÃĿ¼»òÎļþµÄ´óС
top ²é¿´½ø³Ì״̬£¬ÕâÀ


Ïà¹ØÎĵµ£º

linuxÄÚºËÖеÄHlistÓëList_head½á¹¹

List_Head
²Ù×÷ϵͳÄں˾­³£ÐèҪά»¤Êý¾Ý½á¹¹¡£ÄÚºËÓбê×¼µÄÑ­»·Á´±í¡¢Ë«ÏòÁ´±íµÄʵÏÖ¡£ÔÚ<Linux/list.h>ÎļþÖж¨ÒåÁËÒ»¸ölist_headÀàÐͼòµ¥½á¹¹£º
struct list_head {
   struct list_head *next, *prev;
};
 
ͨÓÃÁ´±íµÄ³£ÓÃÓÃ;Êǽ«Ä³Ò»¸öÊý¾Ý½á¹¹±¾Éí´®³ÉÁ´±í£¬»ò½«Ä³Ð©Á´±íÓëÒ»¸öÊý¾Ý½á¹ ......

LinuxÉùÒôÉ豸±à³ÌʵÀý

ÓÉÓÚÕâЩÎļþ²»ÊÇÆÕͨµÄÎļþ£¬ËùÒÔÎÒÃDz»ÄÜÓÃ
ANSI C
£¨±ê×¼
C
£©µÄ
fopen
¡¢
fclose
µÈÀ´²Ù×÷Îļþ£¬¶øÓ¦¸ÃʹÓÃϵͳÎļþ
I/O
´¦Àíº¯Êý£¨
open
¡¢
read
¡¢
write
¡¢
lseek
ºÍ
close
£©À´´¦ÀíÕâЩÉ豸Îļþ¡£
ioctl
£¨£©»òÐíÊÇ
Linux
ÏÂ×îÅÓÔӵĺ¯Êý£¬Ëü¿ÉÒÔ¿ØÖƸ÷ÖÖÎļþµÄÊôÐÔ£¬ÔÚ
Linux
ÉùÒôÉ豸± ......

LinuxÏÂGCC±àÒëµÄËĸö¹ý³Ì

3ks:http://boz8.com/house/article.aspx?aid=112
ÔÚLinuxϽøÐÐCÓïÑÔ±à³Ì£¬±ØȻҪ²ÉÓÃGNU GCCÀ´±àÒëCÔ´´úÂëÉú³É¿ÉÖ´ÐгÌÐò¡£
Ò»¡¢GCC¿ìËÙÈëÃÅ
GccÖ¸ÁîµÄÒ»°ã¸ñʽΪ£ºGcc [Ñ¡Ïî] Òª±àÒëµÄÎļþ [Ñ¡Ïî] [Ä¿±êÎļþ]
ÆäÖУ¬Ä¿±êÎļþ¿Éȱʡ£¬GccĬÈÏÉú³É¿ÉÖ´ÐеÄÎļþÃûΪ£º±àÒëÎļþ.out
ÎÒÃÇÀ´¿´Ò»Ï¾­µäÈëÃųÌÐò"Hello Wor ......

Linux°²×°JDKÏêϸ²½Öè2

Linux°²×°JDK²½Öè1. ÏÈ´ÓÍøÉÏÏÂÔØjdk(jdk-1_5_0_02-linux-i586.rpm)
£¬ÍƼöSUNµÄ¹Ù·½ÍøÕ¾www.sun.com£¬ÏÂÔغó·ÅÔÚ/homeĿ¼ÖУ¬µ±È»ÆäËüµØ·½Ò²ÐС£
½øÈ밲װĿ¼
#cd /home
#cp
jdk-1_5_0_02-linux-i586.rpm /usr/local
#cd /usr/local
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄ
ȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin ......

VPSʹÓÃÊÖ¼Ç Unix/Linux¹ÜÀí¹¤¾ßWebmin

Written by shine
on 2009, April 23, 12:29 PM. Linux
WebminÊÇÄ¿Ç°¹¦ÄÜ×îÇ¿´óµÄ»ùÓÚWebµÄUnixϵͳ¹ÜÀí¹¤¾ß¡£¹ÜÀíԱͨ¹ýä¯ÀÀÆ÷·ÃÎÊWebminµÄ¸÷ÖÖ¹ÜÀí¹¦Äܲ¢Íê³ÉÏàÓ¦µÄ¹ÜÀí¶¯×÷¡£Ä¿Ç° WebminÖ§³Ö¾ø´ó¶àÊýµÄUnixϵͳ£¬ÕâЩϵͳ³ýÁ˸÷ÖÖ°æ±¾µÄlinux
ÒÔΪ»¹°üÀ¨£ºAIX¡¢HPUX¡¢Solaris¡¢Unixware¡¢Irix ºÍFreeBSDµÈ¡£
Webmin ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ