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
Ïà¹ØÎĵµ£º
Îĵµ´´½¨Ê±¼ä£º2010-02-14
1 // P120: 3.±à³ÌÌâ (3)
2
3 // The begining of C program: test04-03.c.
4
  ......
LinuxÎļþ²éÕÒÃüÁîfind,xargsÏêÊö
Ò»¡¢find ÃüÁî¸ñʽ
1¡¢findÃüÁîµÄÒ»°ãÐÎʽΪ£»
find pathname -options [-print -exec -ok ...]
2¡¢findÃüÁîµÄ²ÎÊý£»
pathname: findÃüÁîËù²éÕÒµÄĿ¼·¾¶¡£ÀýÈçÓÃ.À´±íʾµ±Ç°Ä¿Â¼£¬ÓÃ/À´±íʾϵͳ¸ùĿ¼¡£
-print£º findÃüÁƥÅäµÄÎļþÊä³öµ½±ê×¼Êä³ö¡£
-exec£º findÃüÁî¶Ô ......
Á½ÖÖ·½Ê½£º
Ò»ÖÖÊÇͨ¹ýÖÕ¶ËÊÖ¶¯¹ÒÔØ¼ÓÉϲÎÊý: -o iocharset=utf8
È磺# mount /dev/sdb1 -t vfat /mnt/usb/ -o iocharset=utf8
µÚ¶þÖÖÊÇͨ¹ý¼ÓÈëÄÚºËÖ§³ÖÔÚFile systems ---> DOS/FAT/NT Filesystems --->ÖÐÓÐÁ½ÏîÐÞ¸ÄΪ£ ......
linuxÏ mysql µÄÐ¶ÔØºÍ°²×°
¹Ø¼ü×Ö: linuxÏ mysql µÄÐ¶ÔØºÍ°²×°
Ò»¡¢Ç°ÆÚ×¼±¸£º
1
.ÓÉÓÚredhat Enterprise 5 ÖÐ×Ô´øÒ»¸ömysqlµÄ°æ±¾£¬Èç¹ûÔÚ°²×°linuxǰδѡÔñmysqlµÄ°²×°´Ë²½¾Í¿ÉÌø¹ý£¬ÒòΪÎÒµ±Ê±°²×°ÁËÏÖÔÚ½«ÆäÐ¶ÔØ
£¬²½ÖèÈçÏ£º
&nb ......
²é¿´ÏµÍ³µÄ´ÅÅÌÐÅÏ¢£º
fdisk -l
[root@localhost home]# fdisk -l
Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 979 7759395 ......