Linux϶þ½øÖÆÎļþµÄ²é¿´ºÍ±à¼
Ò»¡¢ÔÚLinuxϲ鿴¶þ½øÖÆÎļþµÄÈí¼þ£º
xxd
hexdump
¶þ¡¢±à¼£º
1¡¢biew
2¡¢hexedit
3¡¢vim
Vim À´±à¼¶þ½øÖÆÎļþ¡£Vim ±¾·ÇΪ´Ë¶øÉè¼ÆµÄ£¬Òò¶øÓÐÈô¸É¾ÖÏÞ¡£µ«ÄãÄܶÁ
È¡Ò»¸öÎļþ£¬¸Ä¶¯Ò»¸ö×Ö·û£¬È»ºó°ÑËü´æÅÌ¡£½á¹ûÊÇÄãµÄÎļþ¾ÍÖ»ÓÐÄÇÒ»¸ö×Ö·û¸ø¸ÄÁË£¬
ÆäËüµÄ¾Í¸úÔÀ´ÄǸöһģһÑù¡£
Òª±£Ö¤ Vim ±ð°ÑËüÄÇЩ´ÏÃ÷µÄÇÏÃÅÓôíµØ·½£¬Æô¶¯ Vim ʱ¼ÓÉÏ "-b" ²ÎÊý:
vim -b datafile
Õâ¸ö²ÎÊýÉ趨ÁË 'binary' Ñ¡Ïî¡£Æä×÷ÓÃÊÇÅųýËùÓеÄÒâÍ⸱×÷Óá£ÀýÈ磬'textwidth'
ÉèΪÁ㣬ÃâµÃÎı¾ÐиøÉÃ×ÔÅÅ°æÁË¡£²¢ÇÒ£¬ÎļþÒ»ÂÉÒÔ Unix Îļþ¸ñʽ¶ÁÈ¡¡£
¶þ½øÖÆģʽ¿ÉÒÔÓÃÀ´ÐÞ¸Äij³ÌÐòµÄÏûÏ¢±¨ÎÄ¡£Ð¡Ðıð²åÈë»òɾ³ýÈκÎ×Ö·û£¬ÄÇ»áÈóÌÐòÔË
ÐгöÎÊÌâ¡£Óà "R" ÃüÁî½øÈëÌ滻ģʽ¡£
ÎļþÀïµÄºÜ¶à×Ö·û¶¼ÊDz»¿ÉÏÔʾµÄ¡£Óà Hex ¸ñʽÀ´ÏÔʾËüÃǵÄÖµ:
:set display=uhex
ÁíÍ⣬Ҳ¿ÉÒÔÓÃÃüÁî "ga" À´ÏÔʾ¹â±êϵÄ×Ö·ûÖµ¡£µ±¹â±êλÓÚÒ»¸ö ×Ö·ûÉÏʱ£¬
¸ÃÃüÁîµÄÊä³ö¿´ÆðÀ´¾ÍÏñÕâÑù:
27£¬ Hex 1b, Octal 033
ÎļþÖÐÒ²ÐíûÄÇô¶à»»Ðзû¡£Äã¿ÉÒÔ¹Ø±Õ 'wrap' Ñ¡ÏîÀ´»ñµÃ×ÜÀÀµÄЧ¹û:
:set nowrap
×Ö ½Ú λ ÖÃ
Òª·¢ÏÖÄãÔÚÎļþÖеĵ±Ç°×Ö½ÚλÖã¬ÇëÓÃÕâ¸öÃüÁî:
g CTRL-G
ÆäÊä³öÊ®·ÖÈß³¤:
Col 9-16 of 9-16; Line 277 of 330; Word 1806 of 2058; Byte 10580 of 12206
×îºóÁ½¸öÊý×Ö¾ÍÊÇÎļþÖеĵ±Ç°×Ö½ÚλÖúÍÎļþ×Ö½Ú×ÜÊý¡£ÕâÒѾ¿¼ÂÇÁË 'fileformat'
Ñ¡Ïîµ¼Ö»»Ðзû×Ö½Ú²»Í¬µÄÓ°Ïì¡£
ÒªÒƵ½ÎļþÖÐij¸öÖ¸¶¨µÄ×Ö½Ú£¬ÇëÓà "go" ÃüÁî¡£ÀýÈ磬ҪÒƵ½×Ö½Ú 2345:
2345go
ʹ Óà XXD
Ò»¸öÕæÕýµÄ¶þ½øÖƱà¼Æ÷ÓÃÁ½ÖÖ·½Ê½À´ÏÔʾÎı¾: ¶þ½øÖƺÍÊ®Áù½øÖƸñʽ¡£Äã¿ÉÒÔÔÚ Vim
Àïͨ¹ýת»»³ÌÐò "xxd" À´´ïµ½ÕâЧ¹û¡£¸Ã³ÌÐòÊÇËæ Vim Ò»Æð·¢²¼µÄ¡£
Ê×ÏÈÒÔ¶þ½øÖÆ·½Ê½±à¼Õâ¸öÎļþ:
vim -b datafile
ÏÖÔÚÓà xxd °ÑÕâ¸öÎļþת»»³ÉÊ®Áù½øÖÆ:
:%!xxd
Îı¾¿´ÆðÀ´ÏñÕâÑù:
0000000: 1f8b 0808 39d7 173b 0203 7474 00
Ïà¹ØÎĵµ£º
LinuxϵͳµÄÓ²¼þÇý¶¯³ÌÐò±àдÔÀí
http://www.yesky.com/161/1874161.shtml
±¾ÎÄÏêϸµØ½éÉÜÈçºÎLinuxϵͳµÄÓ²¼þÇý¶¯³ÌÐòµÄ±àдÔÀí£¬Ö¸³öÄÄЩÄÚºËÀý³Ì½«»á±»µ÷Óá¢ÈçºÎ³õʼ»¯Çý¶¯³ÌÐò¼°ÈçºÎ·ÖÅäÄÚ´æµÈµÈ¡£´ó¼ÒÒ»¶¨¶ÔLinux²Ù×÷ϵͳÓÐËùÁ˽âÁË£¬Ôڴ˱¾ÈËÒ²²»ÔÙ׸ÊöÁË¡£ºÃ°É£¬ÏÂÃæ¼òµ¥µØ½éÉÜÒ»ÏÂÉ豸Çý¶¯³ÌÐò¡£¹ËÃû˼Ò壬Çý¶ ......
1¡¢NFS·þÎñÆ÷¶ËÓë¿Í»§¶ËµÄ°²×°£º
sudo apt-get install nfs-kernel-server nfs-common portmap
2¡¢ÅäÖÃportmap
Á½ÖÖ·½·¨ÈÎÑ¡Ò»Ö־ͿÉÒÔ£º
sudo emacs /etc/default/portmap
È¥µô -i 127.0.0.1
3¡¢ÅäÖùÒÔØĿ¼ºÍȨÏÞ
vim /etc/exports
ÔÚ¸ÃÅäÖÃÎļþϼÓÈ룺
/home/nfsboot *(rw,sync)
½âÊÍһϣº
4¡ ......
¶ÔÓÚ³ÌÐòÔËÐйý³ÌÖеÄÁÙʱÎļþ»òÁÙʱÊý¾Ý£¬²ÉÓÃRAMDISKÀ´´æ·Å£¬ÊÇÒ»¸öºÜºÃµÄÑ¡Ôñ
linux RamDisk ʹÓüò½é
1¡¢Ram Disk½éÉÜ
1.1 ʲôÊÇRam Disk
Ram Disk ¾ÍÊǽ«ÄÚ´æÖеÄÒ»¿éÇøÓò×÷ΪÎïÀí´ÅÅÌÀ´Ê¹ÓõÄÒ»ÖÖ¼¼Êõ¡£
¶ÔÓÚÓû§À´Ëµ£¬¿ÉÒÔ°ÑRAM diskÓëͨ³£µÄÓ²ÅÌ·ÖÇø£¨Èçdevhda1£©Í¬µÈ¶Ô´ýÀ´Ê¹Óà ......
intelÔÚËûµÄ΢´¦ÀíÆ÷ÖÐÒýÈëÒ»¸öеĻã±àÖ¸Á£¬½Ð×öMMXÖ¸ÁÓÃÀ´¼ÓËÙ¶àýÌåÓ¦ÓóÌÐòµÄÖ´ÐС£mmxÖ¸Áî×÷ÓÃÓÚfpuµÄ¸¡µã¼Ä´æÆ÷¡£
80x86΢´¦ÀíÆ÷²¢²»ÔÚtssÖÐ×Ô¶¯±£´æfpu,mmx,xmm¼Ä´æÆ÷¡£ËûÃÇ°üº¬Ä³ÖÖÓ²¼þÖ§³Ö£¬ÄÜÔÚÐèҪʱ±£´æÕâЩ¼Ä´æÆ÷µÄÊýÖµ£¬Ó²¼þÖ§³ÖÓÉcr0¼Ä´æÆ÷ÖеÄÒ»¸öts±êÖ¾×é³É¡£×ñÑÒÔϹæÔò£º
ÿµ±Ö´ÐÐÓ²¼þÉÏÏÂÎÄÇÐ ......
VMwareÌṩ:ÇŽÓ,Host OnlyºÍNATÈýÖÖÁ¬Íø·½Ê½. ÎÒ¸öÈËÈÏΪNAT·½Ê½½Ï¼òµ¥,ÓÃËüÀ´¹²ÏíÖ÷»úµÄIP,ÊʺÏÄÇÖÖÿ̨Ö÷»úÖ»ÔÊÐíÒ»¸öIPµÄÇé¿ö¡£¾ßÌåÉèÖÃÈçÏ£º
1¡¢°²×°VMware workstation¡£
2¡¢°²×°guestϵͳ£¬ÕâÀïÎÒ°²×°µÄRed Hat Linux9£¬°²×°¹ý³ÌÖÐÈ·±£ÍøÂçÁ¬½ÓÑ¡ÔñµÄÊÇNAT·½Ê½£¬µ±È»
¿ÉÒÔÔÚ°²×°Íêºó½øÐÐÐ޸ġ£
3¡¢µ½windows XP ......