Ò»²½µ½Î»ÉèÖÃLinuxϵͳʱ¼ä
ÔÛ¾Í˵˵linuxÔõôһ²½µ½Î»ÉèÖÃϵͳʱ¼ä¡£ÄÃlinuxÐéÄâ»ú×öʵÑéµÄÅóÓÑ»áÖªµÀ¡£µ±Äã°Ñlinux»¹Ôµ½Ä³¸öµãµÄʱºò£¬vmware°ï²»ÁËÄã°Ñϵͳʱ¼äÒ²¸øÖØÉèÁË¡£ËùÒÔÕâʱºò¾ÍÒªÊÖ¹¤À´¸ã¡£¹ØÓÚÕ¦Éèlinuxʱ¼ä¡£ÍøÉϽéÉÜÒ²ºÜ¶à£¬µ«ÊǶ¼ÊdzÀ´³È¥µÄ¶«Î÷¡£ÄÇÔõô²ÅÄܸßЧ¿ì½ÝµÄÉèÖÃϵͳʱ¼äÄØ£¿
¿ªÊ¼µÄʱºò£¬»òÕßÍøÉ϶¼ÓеÄ˵·¨£¬±ÈÈç˵°Ñʱ¼äÉèΪ2009-11-12 18:30:50¡£
ÎÒÃÇ»áÏÈÉèÈÕÆÚ
date -s 20091112
ÔÙÉèʱ¼ä
date -s 18:30:50
һ̨»úÆ÷»¹ºÃ˵£¬¶àÁËÄã¾Í»á·³ÁË¡£ÓÐûÓÐÒ»²½µ½Î»µÄ°ì·¨ÄØ£¿¼¸¾ËÑË÷·¢ÏÖÓУ¡
date 111218302009 (ÔÂÈÕʱ·ÖÄê)
ÕâÑù¿ÉÒÔÒ»²½µ½Î»¡£µ«ÊÇ£¡µ«ÊÇʲôÄØ£¬¶ÔÓÚlinuxÀ´Ëµ£¬ÕâÑùµÄд·¨Ì«²»human£¬Ì«ÄѼÇÁË¡£ÓÐûÓиü¼òµ¥µÄ·½·¨£¿¼¸¾ÃþË÷£¬·¢ÏÖ£¬ÓУ¡
date -s "20091112 18:30:50"
ÕâÑù¾Í¿ÉÒÔÒ»²½µ½Î»£¬¶øÓÖÈÝÒ×¼ÇÒäÁË¡£Íµ×ÅÓÃÁ˺ó¤Ê±¼äÁË£¬Ò»°ã¶ùÈËÎÒ²»¸æËßËû£¬Ðé~
ʱ¼äÉèÖÃÍêÁ˾ÍÒª±£´æÁË¡£Èç¹ûÄã»áÕý³£¹Ø»ú»¹ºÃ˵¡£ÏµÍ³¹ØµÄʱºò»á±£´æÒ»´Î£¬¿ÉÊÇÈç¹ûÄã¿ÉÄܲ»Õý³£¹Ø»úµÄ»°£¬¿ÉÒÔÕâôÏȱ£´æÒ»ÏÂÉèÖÃ
hwclock --systohc
¶ÔµÄ£¬ÊÇÕâôд¡£ÍøÉÏ´ó¶àµÄд·¨ÊÇ
clock -w »òÕßhwclock -w
¶øÄã×Ðϸ·ÖÎöϾÍÖªµÀ£¬clockÊÇhwclockµÄÈíÁ´½Ó¡£¶øhwclockµÄhelpºÍmanÀï¸ù±¾Î´Ìá-wÕâ¸ö²ÎÊý¡£²»ÖªµÀ-wÊÇÄÄÄêµÄд·¨¡£¶øÍøÉÏ´ó¶àµÄÎÄÕÂÊÇ-w :)
×îºó×ܽáһϣ¬Ò»²½µ½Î»ÉèÖÃlinuxϵͳʱ¼ä:
date -s "20091112 18:30:50" &&hwclock --systohc
Ïà¹ØÎĵµ£º
ÔÚÐéÄâ»úRed Hat Enterprise Linux 4 update 4Öа²×°oracle 10.2.0.1
1)²é¿´ÏµÍ³ÄÚ´æ
[root@linux4 ~]# grep MemTotal /proc/meminfo
2)²é¿´½»»»Çø´óС
[root@linux4 ~]# grep SwapTotal /proc/meminfo
3)
²é¿´/tmpĿ¼´óС
[root@linux4 ~]# df -m /tmp
4)²é¿´²Ù×÷ϵͳ°æ±¾
[root@linux4 ~]# cat /etc/issue
5)¼ ......
VPSʹÓÃÊÖ¼Ç-LinuxÃüÁîÐлù´¡
Written by shine
on 2009, April 21, 4:09 PM. Linux
ÕâÀïÎÒ½«ÁгöʹÓÃlinux
vps
¹ý³ÌÖеij£ÓÃÃüÁÃæÏòµÄ¶ÔÏóÊǶ®Ò»µãÃüÁîÐÐ
µÄÅóÓÑ£¬Èç¹ûÄãûÓÐÈκÎÃüÁîÐлù´¡£¬½¨ÒéÕÒ±¾LinuxµÄ»ù´¡½Ì³ÌÀ´¿´¿´¡£
ÔÚ½²¾ßÌåµÄÃüÁî֮ǰ£¬ÏȽéÉÜÒ»ÏÂLinuxÃüÁîÐеÄһЩ³£Ê¶£º
Ò»ÌõÃüÁîÒ»°ãµÄ¸ñʽÊÇÕâ ......
Í·Îļþ£º
#ifndef _LED_CONFIG_H
#define _LED_CONFIG_H
#define LED_CON 0
#define LED_ON 1
#define LED_OFF 2
#endif
ÄÚºËÏÂÃæµÄÇý¶¯Ä£¿é£º
#include <linux/module.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/cdev.h>
#include <linux/fs.h>
......
ÕâÒ²ËãºÍƽͬѧµÄµãÌâ×÷ÎÄÁË£¬ºÇºÇ¡£
Ëû¶ÔÓÚLinuxϺܶàʱºò£¬apiº¯Êý´óÁ¿Ê¹ÓÃint×÷Ϊ³£ÓÃÀàÐ͸е½²»½â£¬ÎÊÎÒ£¬ÎÒÄØ£¬¾ÍÊÔׯشðһϹþ¡£
ÔÌûÔÚÕâÀhttp://student.csdn.net/space.php?uid=121080&do=thread&id=9168
ÎÊÌâÈçÏ£º
¸ù¾Ý<c++ primer>½¨Ò飬±íʾÏñ“ÈÝÁ¿”ÕâÑùµÄ±äÁ¿Ê±£¬ÒòΪ²»¿ ......
0.11ºËÖнø³ÌµÄµ÷¶ÈÖ÷ÒªÓÉËĸö²¿·ÖÊý×é³É£ºµ÷¶È³õʼ»¯¡¢µ÷¶È¡¢Ë¯Ãß¡¢»½ÐÑ¡£
Ò»¡¢µ÷¶È³õʼ»¯:sched_init()
ÎÒÃÇÖªµÀÔÚÄں˳õʼ»¯£¨main£©¹ý³ÌÖУ¬Òª½«ÈÎÎñ0ת»»µ½Óû§Ì¬ÏÂÖ´ÐУ¬Ò²¾ÍÊǽ¨Á¢LinuxÖеĵÚÒ»¸öÓû§³ÌÐò¡£¼ÈÈ»ÈÎÎñ0֮ǰÊÇÔÚÄÚºË̬ÏÂÖ´Ðе ......