µÚÒ»´ÎÔÚLinuxϱà³Ì
µÚÒ»´ÎÔÚLinuxϱà³Ì¡£ºÇºÇ
ÔÚÍøÉÏËÑË÷ÁËÒ»ÏÂÔõôÑùÔÚLinuxϱà³Ì¡£ËµÊÇÓÃGeditдºÃ´úÂ룬Ȼºó±£´æ.c¸ñʽÎļþ¡£È»ºóµ½Öն˱àÒë¡£
´ò¿ªGedit.ÀϹæ¾Ø£¬ÏÈÀ´¸öHello.c
#include <stdio.h>
main()
{
printf("Hello~!Vimo~~\n\n");
}
±£´æ¡£È»ºó´ò¿ªÖնˡ£
±àÒëÊÇʲôÃüÁû°ì·¨£¬ÎÊÏÂͬѧ¡£°¢Áé¸æËßÎÒ£º
gcc hello.c
./a.out
./ hello
È»ºóÖÕ¶ËÀïÖÕÓÚ¿´µ½HelloÊä³öÁË¡£
ºóÀ´ÔÚÍøÉÏÕÒÁËһϣ¬ÓÐÁíÍâÒ»¸öÃüÁ
gcc hello.c -o hello
./hello
¶î¡£¡£¡£ÐÄÇéûʲôÌر𼤶¯µÄ¡£·´Õý£¬³É¹¦ÁË¡£¡£¡£
Ïà¹ØÎĵµ£º
¿ÉÒÔ½«Õâ¸ö½Å±¾·Å½øcrontab£¬ËûµÄÅäÖÆÎļþÔÚ /etc/crontabÖÐÿÌìÁ賿ִÐÐÒ»´Î£¬×Ô¶¯±¸·Ý Õâ¸ö½Å±¾Ã¿Ìì×î¶àÖ»Ö´ÐÐÒ»´Î£¬¶øÇÒÖ»±£Áô×î½üÎåÌìµÄ±¸·ÝÔÚ·þÎñÆ÷ÉÏ¡£
#!/bin/bash
#This is a ShellScript For Auto DB Backup
#Powered by aspbiz
#2004-09
#Setting
#ÉèÖÃÊý¾Ý¿âÃû£¬Êý¾Ý¿âµÇ¼Ãû£¬ÃÜÂ룬±¸·Ý·¾¶£¬ÈÕ־ ......
Ðò ÑÔ
ÓÉÓÚ¿ª·¢»·¾³ÐèÒªÔÚlinux-2.6ÄÚºËÉϽøÐУ¬ÓÚÊÇ×¼±¸¶ÔÎÒµÄÐéÄâ»úÉϵÄLinuxϵͳÉý¼¶¡£Ã»Ïëµ½ÕâһŪ¾Í»¨ÁËÁ½Ììʱ¼ä(·´¸´×°ÏµÍ³£¬ÐÁ¿à°¡~~)£¬×ÜËã°ÑLinuxϵͳ´Ó2.4.20-8Äں˳ɹ¦Éý¼¶µ½ÁË2.6.18Äںˡ£
ÍøÉÏËäÈ»Óкܶà½éÉÜLinuxÄÚºËÉý¼¶µÄÎÄÕ£¬²»¹ýҪô¹ýʱ£¬ÏÂÔØÁ´½ÓʧЧ£»ÒªÃ´±í´ï²»Ç壬²»ÖªËùÔÆ£»¸ü¿ÉÆøµÄ ......
ÔÚdebian Linux·þÎñÆ÷µÄÈÕÖ¾ÖУ¬dmesg³öÏÖÀàËƵÄÐÅÏ¢£º
TCP: Treason uncloaked! Peer 202.106.38.7:57824/80 shrinks window 3573023813:3573023814. Repaired.
TCP: Treason uncloaked! Peer 202.106.38.7:57824/80 shrinks window 3573023813:3573023814. Repaired.
TCP: Treason uncloaked! Peer 202.99.99.211:3760 ......
LinuxʹÓôÓ1970Äê1ÔÂ1ÈÕ0ʱ0·Ö0ÃëÆ𵽿ª»úʱ¾¹ýµÄÃëÊý×÷Ϊ¿ª»úʱ¼ä, ÊÇÔÚmain.cºÍmktime.cÖнøÐгõʼ»¯µÄ.
1. linux/init/main.c
/*
* read current time from CMOS.
* ·ÃÎÊCMOSÐèҪͨ¹ý¶Ë¿Ú0x70, 0x71½øÐÐ.
* ¶ÁÊý¾Ýʱ,ÏÈÓÃOUTÖ¸ÁîÏò0x70·¢ËÍÒª¶ÁÈ¡×Ö½ÚµÄÆ«ÒÆλÖÃÖµ, È»ºóÓÃINÖ¸Áî´Ó0x71¶ÁÊý¾Ý. ......
µ±Éϲã×¼±¸ºÃÒ»¸ö°üÖ®ºó£¬½»¸øÏÂÃæÕâ¸öº¯Êý´¦Àí
int dev_queue_xmit(struct sk_buff *skb)
{
struct net_device *dev = skb->dev;
struct netdev_queue *txq;
struct Qdisc *q;
int rc = -ENOMEM;
/* GSO will handle the following emulations directly. */
if (netif_needs_gso(dev, skb))
goto gso; ......