ת×Ô±¾È˸öÈËÍøÕ¾¡¾£Ð£È£Ð̽·Õß¡¡£è£ô£ô£ð://£÷£÷£÷.£ð£è£ð£÷£å£ì£ì.£ã£ï£í
¡¿
ÔÎĵØÖ· http://www.phpwell.com/?p=43
¡¡¡¡¡¡¹«Ë¾ÄÚµÄһ̨²âÊÔ·þÎñÆ÷Ô±¾Ö»ÊÇ·ÅÔÚ¹«Ë¾ÄÚÍøÉÏʹÓã¬ÏÖÐèÒª½«²âÊÔ»·¾³ÖÃÓÚInternetÉÏ£¬
ÒÔ±ãÓÚ¿Í»§¼´Ê±Á˽âÏîÄ¿½øÕ¹Çé¿ö¡£ÎªLinuxϵͳÔöÌíÒ»¿éÍø¿¨µÄ¹ý³Ì¼Ç¼ÈçÏ£º
²½ÖèÒ»£º½«Ò»¿éÐÂÍø¿¨²åÈëµ½Ö÷°åÀ©Õ¹²Û²¢¹Ì¶¨ºÃ£¬Ê¹ÓÃÒ»¸ùÁ¼ºÃµÄÍøÏß½«»úÆ÷½ÓÈë·ÓÉÆ÷£¬¿ª»ú¼ì²é
Íø¿¨Ö¸Ê¾µÆÕý³£·¢ÁÁ¡£
²½Öè¶þ£ºµÇÈëlinuxϵͳʹÓÃifconfig ÃüÁî·¢ÏÖÔÚeth0֮϶à³öÁËÈçÏÂÄÚÈÝ
eth1 Link encap:Ethernet HWaddr 00:E0:4C:D0:14:93
inet6 addr: fe80::2e0:4cff:fed0:1493/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisio ......
LINUX³£ÓÃÃüÁ»ù´¡£©
1. man ¶ÔÄãÊìϤ»ò²»ÊìϤµÄÃüÁîÌṩ°ïÖú½âÊÍ
eg:man ls ¾Í¿ÉÒԲ鿴lsÏà¹ØµÄÓ÷¨
×¢£º°´q¼ü»òÕßctrl+cÍ˳ö£¬ÔÚlinuxÏ¿ÉÒÔʹÓÃctrl+cÖÕÖ¹µ±Ç°³ÌÐòÔËÐС£
2. ls ²é¿´Ä¿Â¼»òÕßÎļþµÄÊô*£¬ÁоٳöÈÎһĿ¼ÏÂÃæµÄÎļþ
eg: ls /usr/man
ls -l
a.d±íʾĿ¼(directory)£¬Èç¹ûÊÇÒ»¸ö"-"±íʾÊÇÎļþ£¬Èç¹ûÊÇlÔò±íʾÊÇÒ»¸öÁ¬½ÓÎļþ(link)
b.±íʾÎļþ»òÕßĿ¼Ðí¿ÉȨÏÞ.·Ö±ðÓÿɶÁ(r)£¬¿Éд(w)£¬¿ÉÔËÐÐ(x)¡£
3. cp ¿½±´Îļþ
eg: cp filename1 filename2 //°Ñfilename1¿½±´³Éfilename2
cp 1.c netseek/2.c //½«1.c¿½µ½netseekĿ¼ÏÂÃüÃûΪ2.c
4. rm ɾ³ýÎļþºÍĿ¼
eg: rm 1.c //½«1.cÕâ¸öÎļþɾ³ý
5. mv ÒÆ×ßĿ¼»òÕ߸ÄÎļþÃû
eg: mv filename1 filename2 //½«filename1 ¸ÄÃûΪfilename2
mv qib.tgz ../qib.tgz //ÒÆµ½ÉÏÒ»¼¶Ä¿Â¼
6. cd ¸Ä±äµ±Ç°Ä¿Â¼ pwd ²é¿´µ±Ç°ËùÔÚĿ¼ÍêÕû·¾¶
eg: pwd //²é¿´µ±Ç°ËùÔÚĿ¼·¾¶
cd netseek //½øÈënetseekÕâ¸öĿ¼
cd //Í˳öµ±Ç°Ä¿Â¼
7. cat£¬moreÃüÁî
½«Ä³¸öÎļþµÄÄÚÈÝÏÔʾ³öÀ´¡£Á½¸öÃüÁîËù²»Í¬µÄÊÇ:cat°ÑÎļþÄÚÈÝÒ»Ö±´òÓ¡³öÀ´£¬¶ø moreÔò·ÖÆÁÏÔʾ
eg; cat>1.c ......
Èç¹ûÄãÕýÔÚΪÄãµÄlinux
²Ù×÷ϵͳѰÕÒÃâ·Ñ¶øÓÖ¹»¿á¹»ìŵÄͼÐÎÉè¼ÆÈí¼þ£¬Äã¾ÍÀ´¶ÔµØ·½ÁË£¡ÕâÒ»´Î£¬ÎÒÃǽ«ÎªÄã½éÉÜÔÚlinux
²Ù×÷ϵͳ7¸öÓ¦Óù㷺¶øÇÒÃâ·ÑµÄ3DͼÐÎÉè¼ÆÈí¼þ¡£
1¡¢Blender
¡¾µã»÷ÏÂÔØ
Blender
¡¿
¡¡
BlenderÊÇÒ»¸ö×ÔÓÉ¡¢¿ªÔ´µÄ3DÄ£ÐÍ´´×÷Èí¼þ£¬²»½öÊÊÓÃÓÚLinuxƽ̨£¬¶øÇÒÒ²Äܹ»ÔËÐÐÓÚÆäËûµÄÖ÷Á÷²Ù×÷ϵͳ֮ÉÏ¡£
BlenderÌṩÁ˸ïÐÂÐÔµÄÓû§½çÃæÈÃÓû§ÔÚ¹¤×÷¹ý³ÌÖлñµÃÎÞÓëÂױȵÄÏíÊÜ¡£Áé»îµÄ´°¿Ú²¼¾ÖÔÊÐíÓû§½øÐÐÈ«ÃæµÄÅäÖÃ
ºÍÉèÖá£
BlenderÄܹ»ÎªÓû§´øÀ´ÎÞÓëÂױȵĴ´×÷ÏíÊÜ
BlenderÅ䱸Á˹㷺µÄ3D¶ÔÏóÀàÐÍ£¬°üÀ¨¶à±ßÐÎÍø¸ñ¡¢NURBSÇúÃæ¡¢BezierÇúÏß¡¢B-SplineÇúÏßÒÔ¼°Ê¸Á¿×ÖÌåµÈ¡£¾ßÌåµÄ¹¦ÄܰüÀ¨£º
¡¡¡¡Óû§ÓѺýçÃæ
¡¡¡¡ÊµÊ±3D/Game´´×÷
¡¡¡¡½¨Ä£
¡¡¡¡Ì×Ë÷¹¤¾ß
¡¡¡¡äÖȾ
¡¡¡¡¶¯»
¡¡¡¡µ×ÎÆ
¡¡¡¡UVÕ¹¿ª
¡¡¡¡³ÉÏñºÍºÏ³É
¡¡¡¡2¡¢Art of Illusion
¡¾µã»÷ÏÂÔØ
Art of Illusion
¡¿
¡¡¡¡Art of IllusionÊÇÒ»Ì×ÍêȫʹÓÃJAVAÓïÑÔ±àдµÄ3D½¨Ä£ºÍäÖȾ¹¤¾ß£¬Òò´ËÊÊÓÃÓÚÈκμæÈÝJ2SE 1.4ÒÔÉϰ汾µÄJava
ÐéÄâ»ú¡£
ÓÃArt o ......
Ê×ÏÈÉêÃ÷,ÎÒÊDzËÄñ.²Ëµ½Ê²Ã´³Ì¶È,´ó¼Ò¿´¿´ÏÂÃæµÄ´úÂë.
´úÂëÒªÇó:È¡µÃ1000´Îµ¥¶À´´½¨½ø³ÌµÄʱ¼ä.
[code:1:fdac913669]#include
#include
#include
#include
#include
strut timeval {
long tv_sec; /* ÃëÊý */
long tv_usec; /* ΢ÃëÊý */
};
int gettimeofday(struct timeval *tv,struct timezone *tz);
main()
{
struct timeval tpstart,tpend;
float timeuse;
unsigned int i;
gettimeofday(&tpstart,NULL);
for(i=0;i<1000;i++)
pid_t fork();
gettimeofday(&tpend,NULL);
timeuse=1000000*(tpend.tv_sec-tpstart.tv_sec)+tpend.tv_usec-tpstart.tv_usec;
timeuse/=1000000;
printf("Used Time:£¥f\n",timeuse);
exit(0);
}
[/code:1:fdac913669]
È¡µÃÏß³Ìʱ¼ä:
//Ïß³Ì
²»ÖªµÀ¸ÃÔõô×ö.ÒòΪint pthread_create(pthread_t * thread, pthread_attr_t * attr,
void * (*start_routine)(void *), void *&nb ......
1¹Ø»úÃüÁî shutdown
¡¡¡¡ºÃÏñubuntuµÄÖÕ¶ËÖÐĬÈϵÄÊǵ±Ç°Óû§µÄÃüÁֻÊÇÆÕͨÓû§£¬Òò´ËÔÚÖÕ¶ËÆ÷ÖпÉÒÔʹÓÃsudo -sh ת»»µ½¹ÜÀíÔ±rootÓû§ÏÂÖ´ÐÐÃüÁî¡£
¡¡¡¡1)shutdown –help
¡¡¡¡¿ÉÒԲ鿴shutdownÃüÁîÈçºÎʹÓ㬵±È»Ò²¿ÉÒÔʹÓÃman shutdownÃüÁî¡£
¡¡¡¡2£© shutdown -h now ÏÖÔÚÁ¢¼´¹Ø»ú
¡¡¡¡3£©shutdown -r now ÏÖÔÚÁ¢¼´ÖØÆô
¡¡¡¡4£©shutdown -r +3 Èý·ÖÖÓºóÖØÆô
¡¡¡¡5£©shutdown -h +3 “The System will shutdown after 3 minutes” ÌáʾʹÓÃÕß½«ÔÚÈý·ÖÖÓºó¹Ø»ú
¡¡¡¡6£©shutdown -r 20:23 ÔÚ20£º23ʱ½«ÖØÆô¼ÆËã»ú
¡¡¡¡7£©shutdown -r 20:23 & ¿ÉÒÔ½«ÔÚ20£º23Ê±ÖØÆôµÄÈÎÎñ·Åµ½ºǫ́ȥ£¬Óû§¿ÉÒÔ¼ÌÐø²Ù×÷ÖÕ¶Ë
¡¡¡¡2ÖжÏÃüÁî
¡¡¡¡1£©Ö´ÐÐÍêÃüÁîºó£¨ÈôûÓÐתµ½ºǫ́£©£¬¿ÉÒÔʹÓÃCTRL+CÀ´ÖÐÖ¹ÃüÁî
¡¡¡¡2£©kill ³ÌÐò±àÂë
¡¡¡¡µ±ÃüÁîÔÚºǫִ́ÐÐʱϵͳ»á·µ»ØÒ»¸ö³ÌÐò±àÂ룬ÀýÈ磺ÔÚʹÓà shutdown -r 20:23 & ϵͳ·µ»ØÏµÍ³±àÂ룺4905
¡¡¡¡ÎÒÃÇ¿ÉÒÔʹÓÃkill 4905À´ÖÐÖ¹ÖØÆôÃüÁî
¡¡¡¡3ps aux | grep ³ÌÐò±àºÅ
¡¡¡¡ÎÒÃÇÈç¹ûÖªµÀ³ÌÐòµÄ±àºÅ£¬ÎÒÃÇ¿ÉÒÔʹÓÃps aux |grep ³ÌÐò±àºÅÀ´²éѯ¸Ã³ÌÐò±àºÅ¶ÔÓ¦µÄÃüÁîÊÇʲô¡£
¡¡¡¡ÀýÈçÉÏÃæµÄ³ÌÐò±àº ......
How to change the hostname of a Linux system
Normally we will set the hostname of a system during the installation process. Many peoples don’t care about this, and don’t change the hostname even if for example this was set to something really stupid by the datacenter that installed the system (most likely they will set this to “debian” on any debian installation, etc). For me, it is important to see on each one of the ssh screens I will have open at any time a different hostname that is relevant and will give me quickly the information on what system I am logged in.
Change the hostname on a running system
On any Linux system you can change its hostname with the command ‘hostname‘ (surprised?)… Here are some quick usages of the command line hostname:
hostname
without any parameter it will output the current hostname of the system.
hostname --fqd
it will output the fully qualified domain name (or FQDN) of the system.
hostname NEW_NAME
......