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

WindowsºÍLinux¼äÎı¾Îļþ¸ñʽת»»

ÎÊÌ⣺ÔÚLinuxÏÂÕý³£»»ÐеÄÎÄ×Ö£¬µ½ÁËWindowsϺ󣬲»ÔÙ»»ÐС£
 
ÔÚWindowsÏ»»ÐÐʱ£¬ÓÐÁ½¸ö×Ö·û£º»Ø³µ(\r)ºÍ»»ÐÐ(\n)¡£µ«ÔÚLinuxÏ£¬Ö»ÓÐÒ»¸ö»»ÐÐ(\n)
¿ÉʹÓÃunix2dosºÍdos2unixÃüÁî½øÐиñʽµÄת»»£º
²ÎÊý£º
-k  ±£³ÖÊä³öÎļþºÍÊäÈëÎļþµÄÈÕÆÚʱ¼ä´Á²»±ä
-o file   ĬÈÏģʽ . ½«fileת»»£¬²¢Êä³öµ½file
-n  infile outfile ÐÂģʽ. ת»»infile, ²¢Êä³öµ½outfile
 
 
1.       unix2dos
 
¼ÙÉèÓÃviн¨Ò»Îı¾Îļþ£¬ÊäÈë123456
[root@centos test]# ls -l a.txt
-rw-r--r-- 1 root root 7 Jan  7 21:31 a.txt
[root@centos test]# hexdump -c a.txt
0000000   1   2   3   4   5   6  \n
0000007
[root@centos test]# unix2dos -n a.txt b.txt
unix2dos: converting file a.txt to file b.txt in DOS format ...
[root@centos test]# ls -l
total 8
-rw-r--r-- 1 root root 7 Jan  7 21:31 a.txt
-rw------- 1 root root 8 Jan  7 21:34 b.txt
[root@centos test]# hexdump -c a.txt
0000000   1   2   3   4   5   6  \n
0000007
[root@centos test]# hexdump -c b.txt
0000000   1   2   3   4   5   6  \r  \n
0000008
b.txtÊÇת»»ºóµÄDOSϵÄÎļþ
 
2.       dos2unix
[root@centos test]# dos2unix -n b.txt c.txt
dos2unix: converting file b.txt to file c.txt in UNIX format ...
[root@centos test]# ls -l
total 12
-rw-r--r-- 1 root root 7 Jan  7 21:31 a.txt
-rw------- 1 root root 8 Jan  7 21:34 b.txt
-rw------- 1 root root 7 Jan  7 21:38 c.txt
[root@centos test]# hexdump -c b.txt
0000000   1   2   3   4   5   6  \r  \n
0000008
[root@centos test]# hexdump -c c.txt
0000000   1   2   3   4   5   6  \n
0000007
c.txtÊÇת»»ºóunixϵÄÎı¾Îļþ
 


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

ÔĶÁÕÔ¾¼µÄ¡¶LinuxÄÚºËÍêȫעÊÍ¡·Ö®Ç°±ØÐëÖªµÀµÄ£¡

Linux 0.11ËäÈ»²»ÊÇʲô“ÖéÄÂÀÊÂê·å”£¬µ«Ëü¿Ï¶¨»¹ÊÇ“»ªÉ½”»ò“̩ɽ”¡£ËäÈ»Ó絫Ä㻹ÊÇÐèÒª×î»ù±¾µÄŬÁ¦ºÍ»¨·ÑÒ»¶¨µÄ´ú¼Û²ÅÄÜ“ÅʵǔÉÏÈ¥¡£
1. PC¼æÈÝ»úÓ²¼þ¹¤×÷Ô­Àí£¨±ÈÈç8259A,8253, 8042£¬UARTµÈÓ²¼þ£©£»
2. Intel 32λ ÔËÐÐģʽ¹¤×÷Ô­Àí£¬Ñ°Ö··½Ê½£»
3. ´«Í³CÓïÑÔ£» ......

Linux 2.6Äں˵ÄÐÂËø»úÖÆ RCU

http://www.ibm.com/developerworks/cn/linux/l-rcu/
º¯ÊýÕªÒª£º
C´úÂë
/*¶ÁÕßÔÚ¶ÁÈ¡ÓÉRCU±£»¤µÄ¹²ÏíÊý¾ÝʱʹÓøú¯Êý±ê¼ÇËü½øÈë¶Á¶ËÁÙ½çÇø¡£*/ 
rcu_read_lock()  
/* 
¸Ãº¯ÊýÓërcu_read_lockÅä¶ÔʹÓã¬ÓÃÒÔ±ê¼Ç¶ÁÕßÍ˳ö¶Á¶ËÁÙ½çÇø¡£¼ÐÔÚÕâÁ½¸öº¯ÊýÖ®¼äµÄ´úÂëÇø³ÆΪ"¶Á¶ËÁÙ½çÇø" ......

linuxÎļþϵͳ¸ÅÄî&Ŀ¼½á¹¹

[תÌû]
Îļþϵͳ¸ÅÄî
Ò». ÎļþÓëĿ¼µÄ¶¨Òå
1. Îļþϵͳ£ºËüÊÇ´ÅÅÌÉÏÓÐÌض¨¸ñʽµÄһƬÇøÓò£¬²Ù×÷ϵͳͨ¹ýÎļþϵͳ¿ÉÒÔ·½±ãµØ²éÑ°ºÍ·ÃÎÊÆäÖÐËù°üº¬µÄ´ÅÅ̿飻
2. Îļþ£ºÎļþϵͳÖд洢Êý¾ÝµÄÒ»¸öÃüÃûµÄ¶ÔÏó¡£
3. Ŀ¼£ºÆäÖаüº¬Ðí¶àÎļþÏîÄ¿µÄÒ»ÀàÌØÊâÎļþ¡£
4. ×ÓĿ¼£º±»°üº¬ÔÚÁíÒ»¸öĿ¼ÖеÄĿ¼¡£
5. ÎļþÃû£ºÓÃÀ ......

¹ØÓÚLinuxÄÚºËѧϰ

³£³£ÓÐÈËÎÊ£ºÎÒÏëѧϰÄںˣ¬ÐèҪʲô»ù´¡Âð£¿Linus Torvalds±¾ÈËÊÇÕâÑù»Ø´ðµÄ£ºÄã±ØÐëʹÓùýLinux¡£ Õâ¸ö¡­¡­»¹ÊÇÓеãÌ«·ºÁË°É£¬ÎÒÏëÏÂÃ漸¸ö»ù´¡¿ÉÄÜ»¹ÊÇÐèÒªµÄ£¬¾¡¹Ü²»Ò»¶¨±ØÐ裺
1, ¹ØÓÚ²Ù×÷ϵͳÀíÂÛµÄ×î³õ¼¶µÄ֪ʶ¡£²»ÐèҪͨ¶Á²¢Àí½â¡¶²Ù×÷ϵͳ¸ÅÄî¡·¡¶ÏÖ´ú²Ù×÷ϵͳ¡·µÈ¾ÞÖø£¬µ«×ÜÒªÖªµÀ·Öʱ£¨time-shared£©ºÍÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ