Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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
 


Ïà¹ØÎĵµ£º

LINUXµÄһЩÃüÁî

# uname -a # ²é¿´ÄÚºË/²Ù×÷ϵͳ/CPUÐÅÏ¢
# head -n 1 /etc/issue # ²é¿´²Ù×÷ϵͳ°æ±¾
# cat /proc/cpuinfo # ²é¿´CPUÐÅÏ¢
# hostname # ²é¿´¼ÆËã»úÃû
# lspci -tv # ÁгöËùÓÐPCIÉ豸
# lsusb -tv # ÁгöËùÓÐUSBÉ豸
# lsmod # Áгö¼ÓÔصÄÄÚºËÄ£¿é
# env # ²é¿´»·¾³±äÁ¿ ×ÊÔ´
# free -m # ²é¿´ÄÚ´æʹÓÃÁ¿ºÍ½»»»Ç ......

¹ØÓÚ linux ÄÚ´æ

Ê×ÏÈ£¬ÄÚ´æµÄ´óСÔÚ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 ......

2010 Linuxѧϰ±Ê¼Ç

°²×°openssh ·þÎñ¶Ë
sudo apt-get install openssh-server openssh-client
 
windows Ï¿ͻ§¶Ë
puTTY
 
 ³£ÓÃÃüÁî:
 
Ò»£®Ls ²é¿´Ä¿Â¼ÃüÁî
Ò»°ã·ÅÔÚhome Ŀ¼ÏÂ
Ls –l /  ¸ùĿ¼ÏµÄÁбí
Ls –a /  ¸ùĿ¼ÏÂËùÓеÄÎļþ
Ls –la  ×éºÏµÄÑ¡Ïî
Ls –l / ......

linuxÈçºÎ¶¯Ì¬¼ÓÔض¯Ì¬¿â

1.¶¨Ò庯ÊýÖ¸ÕëÀàÐÍ
Òª¸ù¾Ý¶¯Ì¬¿âÖÐҩʹÓõĺ¯Êý£¬ÔÚÍâÃ涨ÒåͬÑùÀàÐ͵ĺ¯ÊýÖ¸ÕëÀàÐÍ£¬¹©ÒÔºóʹÓÃ
typedef unsigned long(*POpenDev)(IN unsigned long int);
 2. ¶¨Ò庯ÊýÖ¸Õë
POpenDev OpenDev;
3.¶¯Ì¬¼ÓÔض¯Ì¬¿â
 HANDLE sohandle = NULL;
sohandle  = dlopen("libNiKeyDll.so", RTLD_NOW); ......

linuxϵͳʱ¼äÉèÖÃ

linuxÐÞ¸Äϵͳʱ¼ä
2008-04-03 20:57
Á½²½
(1)date 042612492005
(2)hwclock -w
µÚÒ»
²½µÄÒâ˼ÊÇÉèÖÃʱ¼ä,ÉèÖÃÍêÁË¿ÉÒÔÓÃdateÃüÁî²é¿´¶Ô²»¶Ô...×¢ÒâÊÇÔÂÈÕʱ·ÖÄê
µÚ¶þ²½µÄÒâ˼ÊÇдÈëÖ÷°åµÄrtcоƬ..
=======================================
su -c 'date -s ÔÂ/ÈÕ/Äê'
su -c 'date -s ʱ:·Ö:Ãë'
============== ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ