LINUXÏÂÐÂÓ²Å̹ÒÔØ
¹ØÓÚÐÂÓ²Å̵ĹÒÔØÖ÷ÒªÓм¸¸ö²½×ࣺ£¨ÎÒÓõÄÊÇUbuntu9.10£©
Ò».Ê×ÏȲ鿴×Ô¼ºµÄÉ豸£¬ÓÃÃüÁî fdisk -l
youlong@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c4e91
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1243 9984366 83 Linux
/dev/sda2 1244 1305 498015 5 Extended
/dev/sda5 1244 1305 497983+ 82 Linux swap / Solaris
Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
(ÆäÖÐsdbÊÇÐÂÌíÓ²ÅÌ)
¶þ.¶ÔÐÂÓ²Å̽øÐзÖÇø£¬ÓÃÃüÁîfdisk /dec/sdb
eg:
[root@linux ~] sudo fdisk /dev/sdb "sdbΪÐÂÌíÓ²ÅÌ"
youlong@ubuntu:~$ sudo fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x784f9b03.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0
Ïà¹ØÎĵµ£º
/************************
cÓïÑÔ±àдµÄtcp socketͨÐŵÄserver¶Ë¡£
¿ÉÒÔ³ÖÐø¼àÌýmyprotÖ¸¶¨µÄ¶Ë¿Ú
´òÓ¡¶Ë¿Ú½ÓÊÕµ½µÄ×Ö·ûÁ÷
Í·ÎļþÒòΪ¼âÀ¨ºÅ±»×ªÒ壬ËùÒÔÓÃÁËÒýºÅ
************************/
#include "stdio.h"
#include "stdlib.h"
#include "errno.h"
#include "string.h& ......
LinuxµÄ±äÁ¿¿É·ÖΪÁ½Àࣺ»·¾³±äÁ¿ºÍ±¾µØ±äÁ¿
»·¾³±äÁ¿£¬»òÕß³ÆÎªÈ«¾Ö±äÁ¿£¬´æÔÚÓëËùÓеÄshellÖУ¬ÔÚÄãµÇ½ϵͳµÄʱºò¾ÍÒѾÓÐÁËÏàÓ¦µÄϵͳ¶¨ÒåµÄ»·¾³±äÁ¿ÁË¡£LinuxµÄ»·¾³±äÁ¿¾ßÓм̳ÐÐÔ£¬¼´×Óshell»á¼Ì³Ð¸¸shellµÄ»·¾³±äÁ¿¡£
±¾µØ±äÁ¿£¬µ±Ç°shellÖеıäÁ¿£¬ºÜÏÔÈ»±¾µØ±äÁ¿Öп϶¨°üº¬»·¾³±äÁ¿¡£LinuxµÄ±¾µØ±äÁ¿µÄ·Ç»·¾³± ......
±¾ÈËʹÓõÄTDµÄÄ£¿éÊÇLC63**,ÔÚÉϸöÔµÄÕ⼸Ìì¸ÕÄõ½°å×Ó£¬ÕÛÌÚÁ˽«½üÒ»¸öÔ£¬Õâ¸ö°å×Ó´òµç»°£¬ÉÏÍø¶¼Ã»ÓÐÎÊÌâÁË¡£
Ê×ÏÈ»¹ÊÇÓбØÒª½éÉÜÒ»ÏÂpppÐÒéÁË£¬ÊÇTDÉÏÍøµÄ»ù´¡£º
PPPÊǵã¶ÔµãµÄÁ¬½ÓÐÒé¡£ÕâÖÖÁ¬½Ó½¨Á¢Ö®ºó£¬½«¸øÁ½µã·Ö±ð·ÖÅäIPµØÖ·£¬Ê¹ÓÃÕâ¸öIP¿ÉÒÔ½øÐÐÁ½µãÖ®¼äµÄͨѶ¡£»¥ÁªÍø×î³õµÄ“²¦ºÅÉÏÍø”·½Ê½Ëµµ ......
Linux Find ÃüÁָͨÄÏ
×÷ÕߣºSheryl Calish
¼òµ¥½éÉÜÕâÒ»ÎÞ´¦²»ÔÚµÄÃüÁîµÄÇ¿´óµÄ·½ÃæÒÔ¼°»ìÂҵķ½Ãæ¡£
2008 Äê 7 Ô·¢²¼
Linux find ÃüÁîÊÇËùÓÐ Linux ÃüÁîÖÐ×îÓÐÓõÄÒ»¸ö£¬Í¬Ê±Ò²ÊÇ×î»ìÂÒµÄÒ»¸ö¡£ËüºÜÄÑ£¬ÒòΪËüµÄÓï·¨ÓëÆäËû Linux ÃüÁîµÄ±ê×¼Óï·¨²»Í¬¡£µ«ÊÇ£¬ËüºÜÇ¿´ó£¬ÒòΪËüÔÊÐíÄú°´ÎļþÃû¡¢ÎļþÀàÐÍ¡¢Óû§ÉõÖÁ ......
This document shows how to write a daemon in Linux using GCC. Knowledge of Linux and a familiarity with C are necessary to use this document. This HOWTO is Copyright by Devin Watson, under the terms of the BSD License.
1. Introduction: What is a Daemon?
2. Getting Started
3. Planning Your Daemo ......