LINUXϵͳ±à³ÌÖ®ÈÕÀúʱ¼ä
LINUXÖÐʱ¼äÓÐÁ½ÖÖ£º
1£©ÈÕÀúʱ¼ä
2£©½ø³Ìʱ¼ä
ÈÕÀúʱ¼ä¹ËÃû˼Òå¼´ÓÃÀ´»ñÈ¡ÈÕÀú£»
Ö÷ÒªÉæ¼°µ½µÄº¯ÊýÓУº
time(time_t*);
stime(time_t*);
tm* gmtime(time_t*);
tm* localtime(time_t*);
char *strftime(tm*);
char *asctime(tm*);
time_t* mktime(tm*);
Êý¾Ý½á¹¹ÈçÏ£º
time_t
struct tm{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_wday;
int tm_yday;
int tm_year;
int tm_isdst;
}
ת»»¹ØϵÈçÏÂͼ£º
ʾÀý´úÂëÈçÏ£º
struct utsname aname;
int a=uname(&aname);
cout << a;
cout << endl;
cout << aname.sysname<< endl;
cout << aname.machine<< endl;
cout << aname.release<< endl;
cout << aname.version<<endl;
cout << aname.nodename<< endl;
time_t time1;
time_t time2;
time2=time(&time1);
cout << time1 << endl;
cout << time2 << endl;
struct tm *tm1;
tm1=localtime(&time1);
cout << tm1->tm_sec<<endl;
cout << tm1->tm_min<<endl;
cout << tm1->tm_hour<<endl;
cout << tm1->tm_mday<<endl;
cout << tm1->tm_mon<<endl;
cout << tm1->tm_year<<endl;
cout << tm1->tm_wday<<endl;
cout << tm1->tm_yday<<endl;
char *css;
css=asctime(tm1);
cout << css;
size_t size=strftime(css,100,"%Y-%m-%d %H-%M-%S %w",tm1);
cout << size << ":"<<css;
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄÏ°¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......
ÎÒÊÇÓÃÐéÄâ»ú×°ÁËLinux£¬ÕæʵϵͳÊÇWindows XP£¬ÔÚWindows XPÏÂÓÃServ-uÈí¼þ¼ÜÉèÁËFTP·þÎñÆ÷£¬È»ºóÎÒÃǾͿÉÒÔÔÚÐéÄâ»úµÄLinuxϵǼ¸ÃFTP·þÎñÆ÷ÏÂÔØ»òÉÏ´«ÎļþÁË£¬²»Í¬µÄ½öÊÇÔÚLinuxÏÂÊÇÔÚÃüÁîÐÐÀïÊäÈëÏà¹ØFTPÃüÁîÀ´Íê³ÉµÄ£¬Ó¦¸ÃÒ²ÓÐÏñFlashFXP¡¢CuteFTPÕâÒ»ÀàµÄLinuxרÓÃÈí¼þ£¬²»¹ýÎҹª¹ÑÎÅ£¬²»Á˽⣬Ҳ¾Í²»ÎóÈË×ÓµÜÁË¡£ ......
ÎÒÃÇÔÚ¸ãÐÔÄܲâÊÔµÄʱºò£¬¶Ôºǫ́·þÎñÆ÷µÄCPUÀûÓÃÂʼà¿ØÊÇÒ»¸ö³£ÓõÄÊֶΡ£·þÎñÆ÷µÄCPUÀûÓÃÂʸߣ¬Ôò±íÃ÷·þÎñÆ÷ºÜ·±Ã¦¡£Èç¹ûǰ̨ÏìӦʱ¼äÔ½À´Ô½´ó£¬¶øºǫ́CPUÀûÓÃÂÊʼÖÕÉϲ»È¥£¬ËµÃ÷ÔÚij¸öµØ·½ÓÐÆ¿¾±ÁË£¬ÏµÍ³ÐèÒªµ÷ÓÅ¡£Õâ¸öÊǼ´Ê¹²»¶®¼¼ÊõµÄÈ˶¼ÈÝÒ×Àí½âµÄÊÂÇé¡£
ÉÏÃæÀí½â¶ÔÂð£¿ÎÒ¸öÈ˾õµÃ²»Ê®·Ö× ......
Ctrl+z£¬ÖÕÖ¹Õâ¸ö³ÌÐò£¬È»ºó¿ÉÒÔ¿´µ½ÏµÍ³Ìáʾ£º
[1]+ Stopped /root/bin/rsync.sh
È»ºóÎÒÃÇ¿ÉÒ԰ѳÌÐòµ÷¶Èµ½ºǫִ́ÐУº
#bg 1
[1]+ Running /root/bin/rsync.sh &
Èç¹ûÏë°ÑËüµ÷»Øǰ̨ÔËÐÐ,¿ÉÒÔÓÃ
#fg 1
/root/bin/rsync.sh
ÕâÑù£¬ÄãµÄ¿ØÖÆ̨ÉϾÍÖ»ÄܵȴýÕâ¸öÈÎÎñÍê³ÉÁË¡£
&½«½ø³Ì¶ªµ½ºǫ́ÖÐÈ¥Ö´ÐС£
ÓÃjo ......