LinuxÏÂÍê³ÉµÄÒ»¸ö×÷Òµ³ÌÐò
Îĵµ´´½¨ÈÕÆÚ£º2010-02-18
01 // P173: 2.±à³ÌÌâ (5)ÊäÈëÒ»¸ö×Ö·û´®£¬Í³¼ÆÓ¢ÎÄ×Öĸ¡¢¿Õ¸ñ¡¢Êý×ÖºÍÆäËû×Ö·ûµÄ¸öÊý¡£
02
03 // The beginning of C program: test06-05.c.
04
05 // Header files included.
06 #include <stdio.h>
07 #include <string.h>
08
09 // Macro definition.
10 #define MAX_SIZE 100
11
12 // Main function's declaration.
13 int main ( void )
14 {
15 char ch[MAX_SIZE];
16 int letter=0, space=0, number=0, other=0, i=0, length=0;
17 printf ( "Please input a line of characters: " );
18 do
19 {
20 ch[i] = getchar();
21 i++;
22 } while ( ch[i-1] != '\n' );
23 length = i-1;
24 ch[length] = '\0';
25 printf ( "The string length is: %d\n", strlen(ch) );
26 &nbs
Ïà¹ØÎĵµ£º
/*
* linux/fs/fcntl.c
*
* (C) 1991 Linus Torvalds
*/
#include <string.h>
#include <errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <asm/segment.h>
#include <fcntl.h>
#include <sys/stat. ......
Á½ÖÖ·½Ê½£º
Ò»ÖÖÊÇͨ¹ýÖÕ¶ËÊÖ¶¯¹ÒÔØ¼ÓÉϲÎÊý: -o iocharset=utf8
È磺# mount /dev/sdb1 -t vfat /mnt/usb/ -o iocharset=utf8
µÚ¶þÖÖÊÇͨ¹ý¼ÓÈëÄÚºËÖ§³ÖÔÚFile systems ---> DOS/FAT/NT Filesystems --->ÖÐÓÐÁ½ÏîÐÞ¸ÄΪ£ ......
ÔÚvmϰ²×°unbuntu linux server 9.04
°²×°Íê³É ²é¿´IPµØÖ· ifconfig
°²×°telnet sudo apt-get install xinetd telnetd
ÒòΪ²»ÐèҪ̫¶àÈËTELNET ÔÝʱ²»×öÐÞ¸ÄÅäÖÃÎļþ¡£
°²×°FTP sudo apt-get install vsftpd
ͬÑù²»ÐèÒªÅäÖà ʹÓÃĬÈϵÄftp:ftpÓû§·ÃÎÊ
mysql
sudo apt-get install mysql-server
apac ......
ǶÈëʽlinux»ù´¡ÖªÊ¶´ó¸Ù
ÆäʵÕâ¶Îʱ¼ä·Ç³£µÄ棬æµ½Á¬×ö·¹³ÔµÄʱ¼ä¶¼Ã»ÓÐÁË¡£µ«ÊǽñÌìÎÒÌØÒâ³é¿Õ£¬À´¸ø¹Ø×¢ÎÒµÄÅóÓÑÃÇÒ»µãµã½»´ú¡££¨ÒòΪ½ñÌì·¢ÏÖ¹Ø×¢µÄÈË»¹Âù¶àµÄ£¬ÓеãÊܳèÈô¾ª°¡£¡¹þ¹þ....£©ÈçÌâÎÒÔÝʱֻÄܸø´ó¼ÒһЩ´ó¸Ù£¬ºÜÏêϸµÄѧϰ¹ý³ÌÒªµÈ´ó¸Å°ë¸öÔµÄʱ¼ä£¬ÎÒÓÐÁË¿ÕÏÐʱ¼ä²ÅÄÜ ......
Internet------(eth1)router1(eth2)------(eth1)router2(eth0)------(eth0)router3(eth1)------(eth0)pc
ÉÏÃæ¾ÍÊÇÎÒµÄÍøÂçÍØÆË½á¹¹£¬ÆäÖзÓÉÆ÷1ÊÇÓÃÀ´Á¬½ÓÍâ²¿ÍøÂçµÄһ̨linux»úÆ÷£¬Í¼ÖÐËùÓзÓÉÆ÷¶¼ÊÇÆÕͨµÄpc»ú£¬ÕâЩpc¶¼°²×°ÁËubuntu×ÀÃæÏµÍ³£¬³ýÁË×îÓұߵÄpc£¬ÆäÓàµÄpc¶¼×°ÁË3ÕÅÍø¿¨£¨ÆäÖÐÒ»Õű¸Óã©¡£
ÓÉÓÚDebianϵ ......