LinuxÖÐÎļþ¼ÐµÄ½â¶Á
[/b][url]http://blog.chinaunix.net/u3/95713/showart_1931142.html[/url]
Linux¸ù¾Ý°æ±¾µÄ²»Í¬, ÎļþµÄ×éÖ¯½á¹¹µ±È»»áÓÐËù²î±ð,µ«Ö÷ÒªµÄÎļþ¼ÐÓ¦¸ÃÊÇÒ»ÑùµÄ,Á˽âÕâЩÎļþ¼ÐµÄº¬Òå,¶ÔÓÚÁ˽âLinuxÓÐ×ÅÖØÒªµÄÒâÒå.
1, / LinuxÎļþϵͳµÄÈë¿Ú£¬Ò²ÊÇ´¦ÓÚ×î¸ßÒ»¼¶µÄĿ¼£»
2, /bin ϵͳËùÐèÒªµÄÄÇЩÃüÁîλÓÚ´ËĿ¼£¬±ÈÈç ls¡¢cp¡¢mkdirµÈÃüÁ¹¦ÄܺÍ/usr/binÀàËÆ£¬Õâ¸öĿ¼ÖеÄÎļþ¶¼ÊÇ¿ÉÖ´Ðеġ¢ÆÕͨÓû§¶¼¿ÉÒÔʹÓõÄÃüÁî¡£×÷Ϊ»ù´¡ÏµÍ³ËùÐèÒªµÄ×î»ù´¡µÄÃüÁî¾ÍÊÇ·ÅÔÚÕâÀï¡£
3, boot LinuxµÄÄں˼°Òýµ¼ÏµÍ³³ÌÐòËùÐèÒªµÄÎļþĿ¼£¬±ÈÈç vmlinuz initrd.img Îļþ¶¼Î»ÓÚÕâ¸öĿ¼ÖС£ÔÚÒ»°ãÇé¿öÏ£¬GRUB»òLILOϵͳÒýµ¼¹ÜÀíÆ÷ҲλÓÚÕâ¸öĿ¼.
4, /dev É豸Îļþ´æ´¢Ä¿Â¼£¬±ÈÈçÉù¿¨¡¢´ÅÅÌ... ...
5, /etc ϵͳÅäÖÃÎļþµÄËùÔڵأ¬Ò»Ð©·þÎñÆ÷µÄÅäÖÃÎļþÒ²ÔÚÕâÀ±ÈÈçÓû§Õʺż°ÃÜÂëÅäÖÃÎļþ
6,/home ÆÕͨÓû§¼ÒĿ¼ĬÈÏ´æ·ÅĿ¼£»
7,/lib ¿âÎļþ´æ·ÅĿ¼
8,/lost+found
ÔÚext2»òext3ÎļþϵͳÖУ¬µ±ÏµÍ³ÒâÍâ±ÀÀ£»ò»úÆ÷ÒâÍâ¹Ø»ú£¬¶ø²úÉúһЩÎļþËéƬ·ÅÔÚÕâÀï¡£µ±ÏµÍ³Æô¶¯µÄ¹ý³ÌÖÐfsck¹¤¾ß»á¼ì²éÕâÀ²¢ÐÞ¸´ÒѾËð
»µµÄÎļþϵͳ¡£ ÓÐʱϵͳ·¢ÉúÎÊÌ⣬ÓкܶàµÄÎļþ±»ÒƵ½Õâ¸öĿ¼ÖУ¬¿ÉÄÜ»áÓÃÊÖ¹¤µÄ·½Ê½À´ÐÞ¸´£¬»òÒƵ½Îļþµ½ÔÀ´µÄλÖÃÉÏ¡£
9, /mnt Õâ¸öĿ¼һ°ãÊÇÓÃÓÚ´æ·Å¹ÒÔØ´¢´æÉ豸µÄ¹ÒÔØĿ¼µÄ£¬±ÈÈçÓÐcdrom
µÈĿ¼¡£¿ÉÒԲο´/etc/fstabµÄ¶¨Òå¡£ÓÐʱÎÒÃÇ¿ÉÒÔ°ÑÈÃϵͳ¿ª»ú×Ô¶¯¹ÒÔØÎļþϵͳ£¬°Ñ¹ÒÔصã·ÅÔÚÕâÀïÒ²ÊÇ¿ÉÒԵġ£Ö÷Òª¿´/etc/fstabÖÐÔõ
ô¶¨ÒåÁË£»±ÈÈç¹âÇý¿ÉÒÔ¹ÒÔص½/mnt/cdrom ¡£
10, opt ±íʾµÄÊÇ¿ÉÑ¡ÔñµÄÒâ˼£¬ÓÐЩÈí¼þ°üÒ²»á±»°²×°ÔÚÕâÀҲ¾ÍÊÇ×Ô¶¨ÒåÈí¼þ°ü£¬±ÈÈçÔÚFedora Core
5.0ÖУ¬OpenOffice¾ÍÊÇ°²×°ÔÚÕâÀï¡£ÓÐЩÎÒÃÇ×Ô¼º±àÒëµÄÈí¼þ°ü£¬¾Í¿ÉÒÔ°²×°ÔÚÕâ¸öĿ¼ÖУ»Í¨¹ýÔ´Âë°ü°²×°µÄÈí¼þ£¬¿ÉÒÔͨ¹ý
./configure --prefix=/opt/Ŀ¼ ¡£
11, /proc ²Ù×÷ϵͳÔËÐÐʱ£¬½ø³ÌÐÅÏ¢¼°ÄÚºËÐÅÏ¢£¨±ÈÈçcpu¡¢Ó²ÅÌ·ÖÇø¡¢ÄÚ´æÐÅÏ¢µÈ£©´æ·ÅÔÚÕâÀï¡£/procĿ¼αװµÄÎļþϵͳprocµÄ¹ÒÔØĿ¼£¬proc²¢²»ÊÇÕæÕýµÄÎļþϵͳ£¬ËüµÄ¶¨Òå¿ÉÒԲμû /etc/fstab ¡£
12, /root Linux³¬¼¶È¨ÏÞÓû§rootµÄ¼ÒĿ¼£»
13, /sbin
´ó¶àÊÇÉ漰ϵͳ¹ÜÀíµÄÃüÁîµÄ´æ·Å£¬Êdz¬¼¶È¨ÏÞÓû§rootµÄ¿ÉÖ´ÐÐÃüÁî´æ·ÅµØ£¬ÆÕͨÓû§ÎÞȨÏÞÖ´ÐÐÕâ¸öĿ¼ÏµÄÃüÁÕâ¸öĿ¼ºÍ/usr/sbin;
/usr/X11R6/sbin»ò/usr/local/sbinĿ¼ÊÇÏàËƵģ»ÎÒÃǼÇס¾ÍÐÐÁË£¬·²ÊÇĿ¼s
Ïà¹ØÎĵµ£º
ÎĵµÑ¡Ïî
´òÓ¡±¾Ò³
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
¼¶±ð£º ³õ¼¶
Ö£ÑåÐË (mlinux@163.com), ¹ú·À¿Æ´ó¹¥¶Á²©Ê¿Ñ§Î»
2003 Äê 5 ÔÂ 01 ÈÕ
¹²ÏíÄÚ´æ¿ÉÒÔ˵ÊÇ×îÓÐÓõĽø³Ì¼äͨÐÅ·½Ê½£¬Ò²ÊÇ×î¿ìµÄIPCÐÎʽ¡£Á½¸ö²»Í¬½ø³ÌA¡¢B¹²ÏíÄÚ´æµÄÒâ˼ÊÇ£¬Í¬Ò»¿éÎïÀíÄÚ´æ±»Ó³Éäµ½½ø³ÌA¡¢B¸÷×ԵĽø³ÌµØÖ·¿Õ¼ä¡£½ø³ÌA¿ÉÒÔ¼´Ê±¿´µ½½ø³ÌB¶Ô¹² ......
µ±Á½Ì¨LINUXÖ÷»úÖ®¼äÒª»¥´«Îļþʱ¿ÉʹÓÃSCPÃüÁîÀ´ÊµÏÖ£¬½¨Á¢ÐÅÈιØϵ֮ºó¿É²»ÊäÈëÃÜÂë¡£
°ÑÄãµÄ±¾µØÖ÷»úÓû§µÄssh¹«³×Îļþ¸´ÖƵ½Ô¶³ÌÖ÷»úÓû§µÄ~/.ssh/authorized_keysÎļþÖÐ
¼ÙÉè±¾µØÖ÷»úlinux100,Ô¶³ÌÖ÷»úlinux200
Ò»£¬ÔÚlinux100Ö÷»úÀïµÄÓû§
ÔËÐÐ
#ssh-keygen -t rsa
½á¹ûÈçÏÂ
QUOTE:
Generating public/priv ......
Ò».linuxÀíÂÛ֪ʶ
1.¼ÆËã»ú»ù±¾ÀíÂÛ£»2.CPUÌåϵ½á¹¹£»3.ÄÚ´æ¹ÜÀí£»4.Îļþϵͳ£»5.½ø³Ìµ÷¶È£»6.Linux³£ÓòÙ×÷¡£
¶þ.linuxÇý¶¯ÖªÊ¶
1.i2cÇý¶¯Ìí¼ÓʹÓà 2.spiÇý¶¯Ìí¼ÓºÍ¶Áд &n ......
ǶÈëʽLinux²Ù×÷ϵͳѧϰ¹æ»®
ARM+LINUX·Ïߣ¬Ö÷¹¥Ç¶ÈëʽLinux²Ù×÷ϵͳ¼°ÆäÉÏÓ¦ÓÃÈí¼þ¿ª·¢Ä¿±ê£º
£¨1£© ÕÆÎÕÖ÷Á÷ǶÈëʽ΢´¦ÀíÆ÷µÄ½á¹¹ÓëÔÀí£¨³õ²½¶¨Îªarm9£©
£¨2£© ±ØÐëÕÆÎÕÒ»¸öǶÈëʽ²Ù×÷ϵͳ £¨³õ²½¶¨Îªuclinux»òlinux,°æ±¾´ý¶¨£©
£¨3£© ±ØÐëÊìϤǶÈëʽÈí¼þ¿ª·¢Á÷³Ì²¢ÖÁÉÙ×öÒ ......
od (octal dump)ºÍ xd(hexdump)ÃüÁî¿ÉÒÔÒÔÊ®½øÖÆ¡¢°Ë½øÖÆ¡¢Ê®Áù½øÖƺÍASCIIÂëÀ´ÏÔʾÎļþ»òÕßÁ÷£¬ËüÃǶÔÓÚ·ÃÎÊ»ò¿ÉÊӵؼì²éÎļþÖв»ÄÜÖ±½ÓÏÔʾÔÚÖÕ¶ËÉϵÄ×Ö·ûºÜÓÐÓá£
Óï·¨£ºod £ÛÑ¡Ïî£Ý Îļþ…
ÃüÁîÖи÷Ñ¡ÏîµÄº¬Ò壺
- A Ö¸¶¨µØÖ·»ùÊý£¬°üÀ¨£º
d Ê®½øÖÆ
o °Ë ......