Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux Command Line ½âÎö

0
´¦Àí
Ä£ÐÍ
Linux kernel
µÄÆô¶¯°ü
À¨ºÜ¶à×é¼þµÄ³õʼ»¯ºÍÏà¹ØÅäÖã¬ÕâЩÅäÖòÎÊýÒ»°ãÊÇͨ¹ýcommand line
½ø
ÐÐÅäÖõġ£ÔÚ½øÐкóÐø·ÖÎö֮ǰ£¬ÏÈÀ´Àí½âÒ»ÏÂcommand line
µÄ´¦Àí
Ä£ÐÍ£º
Òª´¦ÀíµÄ¶ÔÏóÊÇÒ»¸ö×Ö·û´®£¬ÆäÖаüº¬Á˸÷ÖÖÅäÖÃÐÅÏ¢£¬Í¨³£¸÷¸öÅäÖÃÖ®¼äͨ¹ý¿Õ¸ñ½øÐзÖÀ룬ÿ¸öÅäÖõıí´ïÐÎʽÊÇ
È磺param=value1,value2
»òÕߺܼòµ¥¾ÍÊÇÒ»¸örw
¡£
ÄÇôkernel
¾ÍÐèÒªÌṩ¶ÔÕâЩ
²ÎÊý½øÐд¦ÀíµÄ´¦Àíº¯ÊýÁÐ±í¡£¸ù¾Ý²ÎÊýµÄ×÷ÓÃÒÔ¼°Ö´ÐÐÆÚµÄÏȺó²»Í¬£¬ÕâЩ´¦Àíº¯Êý±»¶¨Òåµ½²»Í¬µÄ¶ÎÖС£Õë¶Ôÿһ¸ö²ÎÊý£¬Kernel
¶¼»áµ½ÏàÓ¦µÄ¶ÎÖвéÕÒÏàÓ¦µÄ´¦Àíº¯Êý£¬×îÖÕ½øÐи÷¸ö×é¼þµÄÅäÖá£
1
ÅäÖÃ
¸ñʽ
³£¼ûµÄÅäÖøñʽÈ磺
 
console=ttySAC0,115200 root=nfs nfsroot=192.168.1.9:/source/rootfs
initrd=0x10800000,0x14af47
 
2
ÅäÖÃ
·½Ê½
2.1 Bootloader
¶¯
̬ÅäÖÃ
ÓÉbootloader
½øÐвÎÊýÅä
Öã¬command line
½«×öΪatag_list
µÄÒ»¸ö½Úµã´«µÝµ½Kernel
¡£
2.2 Kernel
¾²Ì¬ÅäÖÃ
ͨ¹ýmake menuconfig
½ø
ÐÐÅäÖãºÔËÐкóÅäÖÃboot options->Default kernel
command string
¡£¸ÃÅäÖý«±»¾²Ì¬±àÒëµ½Kernel
ÖУ¬
ͨ¹ý±äÁ¿default_command_line
·ÃÎÊ¡£

½â
ÎöÅäÖÃ
3.1
Ïà¹Ø¶¨Òå
¸ù¾ÝÖ´ÐеÄÏȺó˳Ðò£¬¿ÉÒÔ½«´¦Àíº¯Êý·ÖΪÈý¸ö´óÀ࣬ËûÃÇ·Ö±ð´æÔÚÓÚÏÂÃæÈý¸ö¶ÎÖУ¨²Î¿¼top/arch/arm/kernel/vmlinux.lds
£©:
 
__setup_start = .; *(.init.setup) __setup_end = .;
 
__early_begin = .; *(.early_param.init) __early_end = .;
 
__start___param = .; *(__param) __stop___param = .;
 
Õâ
Èý¸ö¶ÎÄÚ´æ´¢µÄ²»ÊDzÎÊý£¬¶øÊÇcommand line
²ÎÊýËùÐèÒªµÄ´¦Àíº¯
Êý¡£
3.1.1
.early_param.init
¶Î
“.early_param.init

Ëù¶¨ÒåµÄ´¦ÀíÏà¶Ô¿¿Ç°Ò»Ð©£¬ËüËù´¦ÀíµÄ²ÎÊýÀýÈ磺initrd=
£¬cachepolicy=
£¬nocache
£¬ nowb
£¬ ecc=
£¬ vmalloc=
£¬
mem=
£¬µÈµÈ¡£
ÕâЩ´¦Àíº¯ÊýÊÇͨ¹ý__early_param
ºê
À´¶¨ÒåµÄ£¬ÀýÈ磺
static void __init early_initrd(char **p)
{
…… }
__early_param("initrd=", early_initrd);
¶ÔÓÚºê__early_param
£¬
¿ÉÒÔÔÚtop/arch/arm/include/asm/Setup.h
ÖÐ
ÕÒµ½Èç϶¨Ò壺
 
struct early_params {
    const char
*arg;
   &n


Ïà¹ØÎĵµ£º

linux ÖйØÓÚjavaµÄ»·¾³

 °²×°»·¾³£º
1.ÉÏ´«jdk-6u17-linux-i586.binºÍapache-tomcat-6.0.20.tar.gzµ½/usr
2.°²×°JDK
¡¡¡¡$chmod a+x jdk-6u17-linux-i586.bin
¡¡¡¡$ ./jdk-6u17-linux-i586.bin
¡¡¡¡$ vi /etc/profile
¡¡¡¡#Ìí¼ÓÈçÏÂ
¡¡¡¡export JAVA_HOME=/usr/jdk1.6.0_17
¡¡¡¡export PATH=$JAVA_HOME/bin:$PATH
¡¡¡¡$echo $JAVA_H ......

linux c/c++ GDB½Ì³ÌÏê½â

GDB
ÊÇ
GNU
¿ªÔ´×éÖ¯·¢²¼µÄÒ»¸öÇ¿´óµÄ
UNIX
ϵijÌÐòµ÷ÊÔ¹¤¾ß¡£»òÐí£¬¸÷λ±È½Ïϲ»¶ÄÇÖÖͼÐνçÃ淽ʽµÄ£¬Ïñ
VC
¡¢
BCB
µÈ
IDE
µÄµ÷ÊÔ£¬µ«Èç¹ûÄãÊÇÔÚ
UNIX
ƽ̨ÏÂ×öÈí¼þ£¬Äã»á·¢ÏÖ
GDB
Õâ¸öµ÷ÊÔ¹¤¾ßÓбÈ
VC
¡¢
BCB
µÄͼÐλ¯µ÷ÊÔÆ÷¸üÇ¿´óµÄ¹¦ÄÜ¡£Ëùν

´çÓÐËù³¤£¬³ßÓÐËù¶Ì

¾ÍÊÇÕâ¸öµÀÀí ......

linux ²éÕÒĿ¼»òÎļþÏê½â


²éÕÒĿ¼£ºfind /£¨²éÕÒ·¶Î§£© -name '²éÕҹؼü×Ö' -type d
²éÕÒÎļþ£ºfind /£¨²éÕÒ·¶Î§£© -name ²éÕҹؼü×Ö -print
Èç¹ûÐèÒª¸ü½øÒ»²½µÄÁ˽⣬¿ÉÒԲο´LinuxµÄÃüÁîÏê½â¡£
ÕâÀïÕª³­ÈçÏ£º
·find path -option [ -print ] [ -exec -ok command ] {} \;
#-print ½«²éÕÒµ½µÄÎļþÊä³öµ½±ê×¼Êä³ö
#-exec command { ......

linux ²»Í¬°æ±¾


²»Í¬Ö®´¦Ö÷ÒªÌåÏÖÔÚ×ÅÑ۵㣺
£¨1£©UbuntuÊÇΪÁËÌá¸ßͼÐνçÃæϵÄÓû§ÌåÑé
 
ËùÒÔ¹¦·ò¶¼×öÔÚ¼ÒÓûúÉÏÓ²¼þ¼æÈÝÐÔ
  ³õ¼¶Óû§µÄÒ×ÓÃÐÔ
£¨2£©SuseÊÇΪÁËÌá¸ßÆóÒµÓû§µÄÈÏ¿É
  ÐèÒª×î¸ßµÄÎȶ¨ÐÔ£¬ÈÝÒ×µÄÅäÖ÷þÎñ
  ¿ÉÒÔºÜÈÝÒ×ʹÓÃSuseºÍRethat´î½¨Ò»¸ö¿É¿¿µÄÍøÕ¾
£¨3£©ArchlinuxÊÇΪÁ˼ò»¯Öм¶Ó ......

Linux SCSI ×ÓϵͳÆÊÎö

Small Computer Systems Interface (SCSI)
ÊÇÒ»×é±ê×¼¼¯£¬Ëü¶¨ÒåÁËÓë´óÁ¿É豸£¨Ö÷ÒªÊÇÓë´æ´¢Ïà¹ØµÄÉ豸£©Í¨ÐÅËùÐèµÄ½Ó¿ÚºÍЭÒé¡£ Linux® ÌṩÁËÒ»ÖÖ SCSI ×Óϵͳ
£¬ÓÃÓÚÓëÕâЩÉ豸ͨÐÅ¡£Linux
ÊÇ·Ö²ã¼Ü¹¹µÄÒ»¸öºÜºÃµÄÀý×Ó£¬Ëü½«¸ß²ãµÄÇý¶¯
Æ÷£¨±ÈÈç´ÅÅÌÇý¶¯Æ÷»ò¹âÇý£©Á¬½Óµ½ÎïÀí½Ó¿Ú£¬±ÈÈç
Fibre Channel » ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ