LinuxϵͳÐÅÏ¢²é¿´ÃüÁî´óÈ«
ϵͳ
# uname -a # ²é¿´ÄÚºË/²Ù×÷ϵͳ/CPUÐÅÏ¢
# head -n 1 /etc/issue # ²é¿´²Ù×÷ϵͳ°æ±¾
# cat /proc/cpuinfo # ²é¿´CPUÐÅÏ¢
# hostname # ²é¿´¼ÆËã»úÃû
# lspci -tv # ÁгöËùÓÐPCIÉ豸
# lsusb -tv # ÁгöËùÓÐUSBÉ豸
# lsmod # Áгö¼ÓÔصÄÄÚºËÄ£¿é
# env # ²é¿´»·¾³±äÁ¿
×ÊÔ´
# free -m # ²é¿´ÄÚ´æʹÓÃÁ¿ºÍ½»»»ÇøʹÓÃÁ¿
# df -h # ²é¿´¸÷·ÖÇøʹÓÃÇé¿ö
# du -sh <Ŀ¼Ãû> # ²é¿´Ö¸¶¨Ä¿Â¼µÄ´óС
# grep MemTotal /proc/meminfo # ²é¿´ÄÚ´æ×ÜÁ¿
# grep MemFree /proc/meminfo # ²é¿´¿ÕÏÐÄÚ´æÁ¿
# uptime # ²é¿´ÏµÍ³ÔËÐÐʱ¼ä¡¢Óû§Êý¡¢¸ºÔØ
# cat /proc/loadavg # ²é¿´ÏµÍ³¸ºÔØ
´ÅÅ̺ͷÖÇø
# mount | column -t # ²é¿´¹Ò½ÓµÄ·ÖÇø״̬
# fdisk -l # ²é¿´ËùÓзÖÇø
# swapon -s # ²é¿´ËùÓн»»»·ÖÇø
# hdparm -i /dev/hda # ²é¿´´ÅÅ̲ÎÊý(½öÊÊÓÃÓÚIDEÉ豸)
# dmesg | grep IDE # ²é¿´Æô¶¯Ê±IDEÉ豸¼ì²â×´¿ö
ÍøÂç
# ifconfig # ²é¿´ËùÓÐÍøÂç½Ó¿ÚµÄÊôÐÔ
# iptables -L # ²é¿´·À»ðǽÉèÖÃ
# route -n # ²é¿´Â·Óɱí
# netstat -lntp # ²é¿´ËùÓмàÌý¶Ë¿Ú
# netstat -antp # ²é¿´ËùÓÐÒѾ½¨Á¢µÄÁ¬½Ó
# netstat -s # ²é¿´ÍøÂçͳ¼ÆÐÅÏ¢
½ø³Ì
# ps -ef # ²é¿´ËùÓнø³Ì
# top # ʵʱÏÔʾ½ø³Ì״̬
Óû§
# w # ²é¿´»î¶¯Óû§
# id <Óû§Ãû> # ²é¿´Ö¸¶¨Óû§ÐÅÏ¢
# last # ²é¿´Óû§µÇ¼ÈÕÖ¾
# cut -d: -f1 /etc/passwd # ²é¿´ÏµÍ³ËùÓÐÓû§
# cut -d: -f1 /etc/group # ²é¿´ÏµÍ³ËùÓÐ×é
# crontab -l # ²é¿´µ±Ç°Óû§µÄ¼Æ»®ÈÎÎñ
·þÎñ
# chkconfig --list # ÁгöËùÓÐϵͳ·þÎñ
# chkconfig --list | grep on # ÁгöËùÓÐÆô¶¯µÄϵͳ·þÎñ
³ÌÐò
# rpm -qa # ²é¿´ËùÓа²×°µÄÈí¼þ°ü
ÔÎijö´¦£ºhttp://tech.idv2.com/2008/01/11/linux-sysinfo-cmds/
Ïà¹ØÎĵµ£º
²Ù×÷ϵͳµÄÒ»¸ö¾µäÎÊÌâÊÇ"Éú²úÕß-Ïû·ÑÕß"ÎÊÌâ, ÕâÉ漰ͬ²½ÐźÅÁ¿ºÍ»¥³âÐźÅÁ¿µÄÓ¦ÓÃ, ÔÚÕâÀï,ÎÒÓÃÏ̵߳Äͬ²½ºÍ»¥³âÀ´ÊµÏÖ.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <semaphore.h>
#define N 2 // Ïû·ÑÕß» ......
system-config-printer ͼÐνçÃæÉèÖôòÓ¡»ú
BSD(FreeBSD)/System V
lpr/lp ´òÓ¡ÎļþÃû ´òÓ¡
lpr -P´òÓ¡»úÃû ´òÓ¡ÎļþÃû
lp &nb ......
¼¶
±ð£º Öм¶
M.
Tim Jones
, ×ÔÓÉ×÷¼Ò
2009 Äê 11 ÔÂ 19 ÈÕ
´¦ÀíÆ÷ÒѾÑݱä
ΪÕë¶ÔÐéÄâ»·¾³Ìá¸ßÐÔÄÜ£¬µ« I/O ·½Ãæ·¢ÉúÁËʲô±ä»¯ÄØ£¿Á˽âÒ»ÖÖÃûΪÉ豸£¨»ò PCI£©Í¸´«£¨passthrough£©µÄ I/O
ÐÔÄÜÔöÇ¿¼¼Êõ£¬ÕâÖÖ´´Ð¼¼Êõͨ¹ýʹÓÃÀ´×Ô Intel® (VT-d) »ò AMD (IOMMU) µÄÓ²¼þÖ§³Ö¸Ä½ø PCI Éè ......
liunuxÈëÃų£ÓÃÃüÁî
liunux
2009-04-13 17:04
ÔĶÁ200 ÆÀÂÛ0
×ֺţº
´ó
´ó
ÖÐ
ÖÐ
С
С
¡¡Linux³£ÓÃÃüÁîµÄ·ÖÀà½éÉÜ£º
......
LinuxϵͳÖгÌÐòµÄÏß³Ì×ÊÔ´ÊÇÓÐÏ޵ģ¬±íÏÖΪ¶ÔÓÚÒ»¸ö³ÌÐòÆäÄÜͬʱÔËÐеÄÏß³ÌÊýÊÇÓÐÏ޵ġ£¶øĬÈϵÄÌõ¼þÏ£¬Ò»¸öÏ߳̽áÊøºó£¬Æä¶ÔÓ¦µÄ×ÊÔ´²»»á±»ÊÍ·Å£¬ÓÚÊÇ£¬Èç¹ûÔÚÒ»¸ö³ÌÐòÖУ¬·´¸´½¨Á¢Ị̈߳¬¶øÏß³ÌÓÖĬÈϵÄÍ˳ö£¬Ôò×îÖÕÏß³Ì×ÊÔ´ºÄ¾¡£¬½ø³Ì½«²»ÔÙÄܽ¨Á¢ÐµÄÏ̡߳£
½â¾öÕâ¸öÎÊÌ⣬ÓÐ2ÖÖ·½Ê½£¬ÏµÍ³×Ô¶¯ÊÍ·ÅÏß³Ì×ÊÔ´£¬»òÕßÓÉÁí ......