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

LinuxµÄread/write¡¢fread/fwrite¡¢open/fopenÇø±ð

1,freadÊÇ´ø»º³åµÄ,read²»´ø»º³å.
2,fopenÊDZê×¼cÀﶨÒåµÄ,openÊÇPOSIXÖж¨ÒåµÄ.
3,fread¿ÉÒÔ¶ÁÒ»¸ö½á¹¹.readÔÚlinux/unixÖжÁ¶þ½øÖÆÓëÆÕͨÎļþûÓÐÇø±ð.
4,fopen²»ÄÜÖ¸¶¨Òª´´½¨ÎļþµÄȨÏÞ.open¿ÉÒÔÖ¸¶¨È¨ÏÞ.
5,fopen·µ»ØÖ¸Õë,open·µ»ØÎļþÃèÊö·û(ÕûÊý).
6,linux/unixÖÐÈκÎÉ豸¶¼ÊÇÎļþ,¶¼¿ÉÒÔÓÃopen,read.
Èç¹ûÎļþµÄ´óСÊÇ8k¡£
ÄãÈç¹ûÓÃread/write£¬ÇÒÖ»·ÖÅäÁË2kµÄ»º´æ£¬ÔòÒª½«´ËÎļþ¶Á³öÐèÒª×ö4´Îϵͳµ÷ÓÃÀ´Êµ¼Ê´Ó´ÅÅÌÉ϶Á³ö¡£
Èç¹ûÄãÓÃfread/fwrite£¬Ôòϵͳ×Ô¶¯·ÖÅ仺´æ£¬Ôò¶Á³ö´ËÎļþÖ»ÒªÒ»´Îϵͳµ÷ÓôӴÅÅÌÉ϶Á³ö¡£
Ò²¾ÍÊÇÓÃread/writeÒª¶Á4´Î´ÅÅÌ£¬¶øÓÃfread/fwriteÔòÖ»Òª¶Á1´Î´ÅÅÌ¡£Ð§ÂʱÈread/writeÒª¸ß4±¶¡£
Èç¹û³ÌÐò¶ÔÄÚ´æÓÐÏÞÖÆ£¬ÔòÓÃread/write±È½ÏºÃ¡£
¶¼ÓÃfread ºÍfwrite,Ëü×Ô¶¯·ÖÅ仺´æ,ËٶȻáºÜ¿ì,±È×Ô¼ºÀ´×öÒª¼òµ¥¡£Èç¹ûÒª´¦ÀíһЩÌØÊâµÄÃèÊö·û,ÓÃread ºÍwrite,ÈçÌ×½Ó¿Ú,¹ÜµÀÖ®ÀàµÄ
ϵͳµ÷ÓÃwriteµÄЧÂÊÈ¡¾öÓÚÄãbufµÄ´óСºÍÄãҪдÈëµÄ×ÜÊýÁ¿£¬Èç¹ûbuf̫С£¬Äã½øÈëÄں˿ռäµÄ´ÎÊý´óÔö£¬Ð§Âʾ͵ÍÏ¡£¶øfwrite»áÌæÄã×ö»º´æ£¬¼õÉÙÁËʵ¼Ê³öÏÖµÄϵͳµ÷Óã¬ËùÒÔЧÂʱȽϸߡ£
Èç¹ûÖ»µ÷ÓÃÒ»´Î(¿ÉÄÜÂð?)£¬ÕâÁ©²î²»¶à£¬ÑϸñÀ´ËµwriteÒª¿ìÒ»µãµã(ÒòΪʵ¼ÊÉÏfwrite×îºó»¹ÊÇÓÃÁËwrite×öÕæÕýµÄдÈëÎļþϵͳ¹¤×÷)£¬µ«ÊÇÕâÆäÖеIJî±ðÎÞËùν¡£


Ïà¹ØÎĵµ£º

LinuxÖÐfind³£¼ûÓ÷¨Ê¾Àý


·find   path   -option   [   -print ]   [ -exec   -ok   command ]   {} \;
#-print ½«²éÕÒµ½µÄÎļþÊä³öµ½±ê×¼Êä³ö
#-exec   command   {} \;      -----½«²éµ½µ ......

ÔÚWindowsÏÂÔ¶³Ì×ÀÃæÁ¬½ÓLinux XManagerƪ

×÷Õߣº¸ßÕÅÔ¶Öõ(HiLoveS)
²©¿Í£ºhttp://www.cnblogs.com/hiloves/
תÔØÇë±£Áô¸ÃÐÅÏ¢
XManager ÊÇÒ»¸ö¼òµ¥Ò×ÓõĸßÐÔÄܵÄÔËÐÐÔÚWindowsƽ̨ÉϵÄX-ServerÈí¼þ£¬¶øGnomeºÍKDE¾ÍÊÇX-Client£¬LinuxϵÄX- ServerÔòΪXorg¡£ËüÄÜ°ÑÔ¶¶ËUnix/LinuxµÄ×ÀÃæÎÞ·ìµØ´øµ½ÄãµÄWindowsÉÏ£¬ÉõÖÁµ±ÄãµÄµçÄÔÊÇÔÚÄÚÍø»ò·À»ðǽºó£¬ÄãÒ²ÄÜͨ ......

Oracleѧϰ±Ê¼Ç£ºlinuxÏÂÆôÍ£Oracle


1. linuxÏÂÆô¶¯oracle
su - oracle
sqlplus /nolog
conn /as sysdba
startup
exit
lsnrctl start
exit
2. linuxϹرÕoracle
su - oracle
sqlplus /nolog
conn /as sysdba
shutdown immediate
exit
lsnrctl stop
exit
3¡¢Æô¶¯¼àÌýÆ÷
oracle@suse92:~> lsnrctl start
4¡¢Í£Ö¹¼àÌýÆ÷
oracle@suse92:~ ......

linux¹ÒÔØÐÂÓ²ÅÌ

fdisk -l ÃüÁî¿´µ±Ç°´ÅÅÌÐÅÏ¢
[root@roswell root]# fdisk /dev/sdb
Command (m for help): m  --´òÓ¡¸ÃÃüÁîµÄ²ÎÊý¹¦ÄÜÁбí
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibil ......

Linux °²×°mysql

 
1¡¢¶þ½øÖÆÎļþ£¨tar.gz£©°²×°
ÏÈ´´½¨Óû§ºÍÓû§×é
 su - root
groupadd mysql
useradd -g mysql mysql
½âѹ¶þ½øÖÆÎļþ¡£
gunzip -c filename | tar -xf -
¸´ÖÆĿ¼/home/mysqlµ½/usr/local£»
´´½¨mysqlÐí¿É±í£º
linux:/usr/local/mysql #scripts/mysql_install_db --user=mysql
ÉèÖöþ½øÖÆËùÓÐȨ£¬Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ