LinuxÖ®uptime¡¢topÃüÁî
ÔÚLinuxϵͳÖУ¬uptime¡¢topµÈÃüÁîÅжÏÒ»¸öϵͳµÄ¸ºÔØ¡£load average·Ö±ð¼Ç¼ÁË1¡¢5¡¢15·ÖÖÓµÄϵͳƽ¾ù¸ºÔØ¡£
load average ¶Ô performance µÄÓ°Ïì?
1. Èç¹ûload average/CPUÊýÁ¿ < 3, performance is good
2. Èç¹ûload average/CPUÊýÁ¿ > 5, performance is very bad
Ïà¹ØÎĵµ£º
# uname -a # ²é¿´ÄÚºË/²Ù×÷ϵͳ/CPUÐÅÏ¢
# head -n 1 /etc/issue # ²é¿´²Ù×÷ϵͳ°æ±¾
# cat /proc/cpuinfo # ²é¿´CPUÐÅÏ¢
# hostname # ²é¿´¼ÆËã»úÃû
# lspci -tv # ÁгöËùÓÐPCIÉ豸
# lsusb -tv # ÁгöËùÓÐUSBÉ豸
# lsmod # Áгö¼ÓÔصÄÄÚºËÄ£¿é
# env # ²é¿´»·¾³±äÁ¿ ×ÊÔ´
# free -m # ²é¿´ÄÚ´æʹÓÃÁ¿ºÍ½»»»Ç ......
Ê×ÏÈ£¬ÄÚ´æµÄ´óСÔÚlinuxÄÚºËÖеĻñÖª·½·¨
1.ͨ¹ýbootloader µÄ tag mem´«Èë¡£
Setup.c Öеĺ¯ÊýÈçÏ£º
static int __init parse_tag_mem32(const struct tag *tag)
{
if (meminfo.nr_banks >= NR_BANKS) {
printk(KERN_WARNING
"Ignoring memory bank 0x%08x size %dKB\n",
tag->u.mem.start, tag->u.mem ......
°²×°openssh ·þÎñ¶Ë
sudo apt-get install openssh-server openssh-client
windows Ï¿ͻ§¶Ë
puTTY
³£ÓÃÃüÁî:
Ò»£®Ls ²é¿´Ä¿Â¼ÃüÁî
Ò»°ã·ÅÔÚhome Ŀ¼ÏÂ
Ls –l / ¸ùĿ¼ÏµÄÁбí
Ls –a / ¸ùĿ¼ÏÂËùÓеÄÎļþ
Ls –la ×éºÏµÄÑ¡Ïî
Ls –l / ......
1.¶¨Ò庯ÊýÖ¸ÕëÀàÐÍ
Òª¸ù¾Ý¶¯Ì¬¿âÖÐҩʹÓõĺ¯Êý£¬ÔÚÍâÃ涨ÒåͬÑùÀàÐ͵ĺ¯ÊýÖ¸ÕëÀàÐÍ£¬¹©ÒÔºóʹÓÃ
typedef unsigned long(*POpenDev)(IN unsigned long int);
2. ¶¨Ò庯ÊýÖ¸Õë
POpenDev OpenDev;
3.¶¯Ì¬¼ÓÔض¯Ì¬¿â
HANDLE sohandle = NULL;
sohandle = dlopen("libNiKeyDll.so", RTLD_NOW);
......
linuxÐÞ¸Äϵͳʱ¼ä
2008-04-03 20:57
Á½²½
(1)date 042612492005
(2)hwclock -w
µÚÒ»
²½µÄÒâ˼ÊÇÉèÖÃʱ¼ä,ÉèÖÃÍêÁË¿ÉÒÔÓÃdateÃüÁî²é¿´¶Ô²»¶Ô...×¢ÒâÊÇÔÂÈÕʱ·ÖÄê
µÚ¶þ²½µÄÒâ˼ÊÇдÈëÖ÷°åµÄrtcоƬ..
=======================================
su -c 'date -s ÔÂ/ÈÕ/Äê'
su -c 'date -s ʱ:·Ö:Ãë'
============== ......