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

linux ,±àдһ¸ö³ÌÐò,°ÑÒ»¸öÎļþ¸´ÖƵ½ÁíÒ»¸öÎļþÉÏ

¼´ÊµÏÖ¼òµ¥µÄcopy¹¦ÄÜ
ÒªÇó:Ö»Óà open()  read() write() ºÍclose()ϵͳµ÷ÓÃ.


cat file1 >> file2 £¿

open()Á¬¸öÎļþ£¬read()ÆäÖÐÒ»¸öÄÚÈÝ£¬write()µ½ÁíÍâÒ»¸öÎļþÉÏ£¬×îºóclose()µô¡£

Äܲ»ÄÜÓÃlseekº¯Êý£¿


C/C++ code:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

#define BUF_SIZE 1024*8
int main()
{
int fds, fdd;
char buf[BUF_SIZE];
size_t hasread = 0;
fds = open("filea", O_RDONLY);
fdd = open("fileb", O_WRONLY, O_CREAT);
if(fds && fdd)
{
while((hasread = read(fds, buf, sizeof(buf))) > 0)
{
write(fdd, buf, hasread);
}
close(fds);
close(fdd);
}




²»ºÃÒâ˼£¬ÉÙcopy°ë±ß¡°}¡±

ÒýÓÃ
²»ºÃÒâ˼£¬ÉÙcopy°ë±ß¡°}¡±

·Ç³£ºÃ


Ïà¹ØÎÊ´ð£º

ÓйØlinux°²×°½Å±¾kickstartµÄ±àд

ÎÒ֮ǰÖÆ×÷µÄlinux×Ô¶¯°²×°isoÒѾ­³É¹¦ÁË£¬ÏÖÔÚÏë¶ÔÆä½øÐÐһЩ¶¨ÖÆÐ޸ģ¬±ÈÈ磬¸ü¸ÄgrubͼƬµÈ¡£
ÎÒÔÚks.cfgµÄ%post¶ÎÀïÃæÊÇÕâÑùдµÄ£º
%post --nochroot
# Move the contents of the tar into their new locati ......

LinuxÈçºÎÔÚͼÐνçÃæºÍÃüÁîÐÐÖ®¼äÇл»

¸÷λ´óϺ£¬ÎÒÕýÔÚѧϰLinux£¬¿ÉÊÇLinuxͼÐνçÃæºÍÃüÁîÐÐÖ®¼äÇл»Óöµ½À§ÄÑ£¬ÔÚÃüÁîÐÐÏÂÊäÈëstartx£¬²»ÊǽøÈëͼÐνçÃæ
¶øÊdzöÏÖ
ÇëÎʸ÷룬ÕâÊÇΪʲô£¿ ¶øÇÒ°´Ctrl+Alt+F7£¬Ò²²»ÄÜÃüÁîÐнøÈëͼÐνçÃæ¡£
¼±¼±¼±

......

LINUXÏÂжÔØJDKÎÊÌâ

ÎÒÓÃRPM±¨°²×°ÁËÒ»¸öÀÏ°æ±¾µÄJRE£¬ºóÀ´Ïëװа汾µÄ£¬
²»¹ý£¬ÎÒ°Ñ/usr/javaĿ¼ֱ½Ó¸øɾÁË£¬
ºóÔÙ°²×°µÄʱºò£¬×ÜÊÇÌáʾ°æ±¾³åÍ»£¬
¶øÇÒÎÒÓÃRPM°üжÔØʱҲÕÒ²»µ½ÎļþÁË¡£
ÎÒ¶ÔLINUX²»ÊìϤ£¬Ï£Íû¸ßÊÖ°ïæ¡£
http: ......

linuxÏÂÔõÑùÈÃ×Ô¼ºÐ´µÄ³ÌÐòÔÚÈκÎĿ¼¶¼¿ÉÒÔÓÃ

ÔÚlinuxÏÂдµÄһЩС³ÌÐòºÍ½Å²½£¬Ã¿´ÎÒªÔËÐж¼ÓÐÇл»µ½ËüËùÔÚµÄĿ¼£¬
ÔõÑùÈÃËüÔÚÆäËûĿ¼Ҳ¿ÉÒÔÓÃÄØ£¿¾ÍÈçÓÃvi»òlsÕâЩÃüÁîÒ»Ñù
³¢ÊÔ¹ýÌí¼Ó»·¾³±äÁ¿£¬µ«²»³É¹¦£¬²»¶®
ûÓÐÈ˻شð

ÏñviÄÇЩ£¬ËüÃÇËùÔÚµÄĿ¼¶¼Å ......

Fedora LinuxÏÂjavaÖÐÎÄÎÊÌâ¡£

RT
javaµÄһЩ½çÃæÊÇ·½¿é¡£Ó¦¸ÃÊÇ×Ö·ûÎÊÌâ°É¡£
ÎÒÓõÄÊÇFedora11.ÇëÎÊÔõô½â¾ö°¡£¿
°££¬Ã»ÓÐÈ˻شðÎÒ

òËÆlinuxϵÄ×Ö·ûÊÇutf-8 ÊÇÓÃeclipseô£¿ ÊǵĻ°£¬°ÑËü¸Ä»Øgbk¾Í¿ÉÒÔÁË¡£

ϵͳÖÐÎÄ×ÖÌå°²×°ÁËÂð£¿
Ä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ