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/bitmap.c
*
* (C) 1991 Linus Torvalds
*/
/* bitmap.c contains the code that handles the inode and block bitmaps */
#include <string.h>
#include <linux/sched.h>
#include <linux/kernel.h> // һЩÄں˳£Óú¯ÊýµÄÔÐζ¨Òå
......
ʹÓÃÒ»ÖÖ±»³ÆÎª"¹«Ë½Ô¿"ÈÏÖ¤µÄ·½Ê½À´½øÐÐsshµÇ¼. "¹«Ë½Ô¿"ÈÏÖ¤·½Ê½¼òµ¥µÄ½âÊÍ:Ê×ÏÈÔÚ¿Í»§¶ËÉÏ´´½¨Ò»¶Ô¹«Ë½Ô¿ £¨¹«Ô¿Îļþ£º~/.ssh/id_rsa.pub£» ˽ԿÎļþ£º~/.ssh/id_rsa£©
È»ºó°Ñ¹«Ô¿·Åµ½·þÎñÆ÷ÉÏ£¨~/.ssh/authorized_keys£©, ×Ô¼º±£ÁôºÃ˽Կ.ÔÚʹÓÃsshµÇ¼ʱ,ssh³ÌÐò»á·¢ËÍ˽ԿȥºÍ·þÎñÆ÷ÉϵĹ«Ô¿×öÆ¥Åä.Èç¹ûÆ¥Åä³É¹¦¾Í¿ ......
Ò»¡¢»¨Éú¿ÇFor Linux°²×°²½Öè
¡¡¡¡ÏÂÔØÊʺÏÄúµÄunix/linux°æ±¾µÄ°²×°°üÎļþ,ʹÓÃrootÉí·Ý½âѹËõ°²×°°ü
¡¡¡¡# tar -zvxf phlinux-1.0-install.redhat.9.0.tar.gz
¡¡¡¡°²×°°üÎļþ½«½âѹËõÖÁphlinux_installĿ¼ÖÐ
¡¡¡¡# cd phlinux_install
¡¡¡¡Ö´Ðа²×°½Å±¾
¡¡¡¡# ./install.sh
¡¡¡¡Ö´Ðа²×°½Å±¾ºó,½«×Ô¶¯ÒÔ»¥¶¯ÅäÖÃÄ ......
linuxѧϰָÄÏÕë(ѧϰ·½·¨Ì¸Ö®¶þ)
Ö¸ÄÏÕë, linux, ѧϰ
һ.ΪʲôҪѧlinux?
µ±È»×îÖØÒªÊǰ®ºÃºÍÐËȤ£¡Èç¹ûÄãÕâÖÖ±ØÒªÑ§£¬»òÕ߸ù±¾²»Ï²»¶£¬Çë²»ÒªÀË·Ñʱ¼ä£¬ÄãѧҲѧ²»ºÃ£¡
¶þ.Æð²½
ÄãÓ¦¸ÃΪ×Ô¼º´´ÔìÒ»¸öѧϰlinuxµÄ»·¾³--ÔÚµçÄÔÉÏ×°Ò»¸ölinux»òunix
ÎÊÌâ1£º°æ±¾µÄÑ¡Ôñ
±±ÃÀÓÃredhat,Å·ÖÞÓÃSuSE,×ÀÃæmandrake ......