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

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 # ²é¿´µ±Ç°Óû§µÄ¼Æ»®ÈÎÎñ -


Ïà¹ØÎĵµ£º

WindowsÓû§¿´LinuxĿ¼¼°ÄÚºËÔ´ÂëµÄĿ¼½á¹¹

 Ò»£ºWindowsÓû§¿´LinuxĿ¼ 
    ÓëWindows½«Ó²ÅÌ¿´×ö“CÅÌ”¡¢“DÅÌ”¼¸¸ö¶ÀÁ¢µÄ·ÖÇø²»Í¬£¬Linux½«Õû¸öÎļþϵͳ¿´×öÒ»¿ÃÊ÷£¬Õâ¿ÃÊ÷µÄÊ÷¸ù½Ð×ö¸ùÎļþϵͳ£¬ÓÃ/±íʾ¡£¸÷¸ö·ÖÇøͨ¹ý“¹ÒÔØ”£¨mount£©ÒÔÎļþ¼ÐµÄÐÎʽ·ÃÎÊ¡£
 
 ÔÚ/ÖеÄÎļþ¼ÐºÜ¶à£¬±¾Î ......

LinuxµÄtailÃüÁî

tailÃüÁîÓÃ;
´ÓÖ¸¶¨µã¿ªÊ¼½«Îļþдµ½±ê×¼Êä³ö¡£Ê¹ÓÃtailÃüÁîµÄ-fÑ¡Ïî¿ÉÒÔ·½±ãµÄ²éÔÄÕýÔڸıäµÄÈÕÖ¾Îļþ£¬tail -f
filename»á°ÑfilenameÀï×îβ²¿µÄÄÚÈÝÏÔʾÔÚÆÁÄ»ÉÏ£¬²¢ÇÒ²»µ«Ë¢Ð£¬Ê¹Äã¿´µ½×îеÄÎļþÄÚÈÝ¡£
Óï·¨
±ê×¼Óï·¨
tail [ -f ] [ -c Number | -n Number | -m Number | -b
Number | -k Number ] [ File ] ......

[»ù´¡]³£ÓÃlinuxÃüÁî ±¸²é

=================Îļþ²Ù×÷==================
²»Ê¹ÓÃfindÖ±½ÓʹÓÃͨÅä·û¶ÔÎļþ²Ù×÷£º
cp ./*/*attch* /testout_attch/
 
ÎļþÄÚÈÝÏÔʾ
head/tail:
¡¡¡¡## (1) displays the first 6 lines of a file
¡¡¡¡head -6 readme.txt
¡¡¡¡## (2) displays the last 25 lines of a file
¡¡¡¡tail -25 mail.txt
¡¡¡¡# ......

[»ù´¡]LinuxµÄdnsÖ÷»úÃûµÈÉèÖÃ

dns
/etc/resolv.conf
Ö÷»úÃû
1)#hostname tt.com
2)/etc/sysconfig/networkÖеÄhostname
3)ÐÞ¸Ä/etc/hostsÎļþ
=>sendmail->/etc/mail/local-host-names

gateway
etc/sysconfig/network
ip
/etc/sysconfig/network-scripts/ifcfg-eth0
1. ±ä¸üµ±Ç°Ö÷»úÃû
Á½ÖÖ·½·¨£º echo new-hostname > /proc/s ......

linux´ÅÅÌÐÔÄܲâÊÔ

 120-test:/# apt-get install hdparm
Õæʵ»úÆ÷120ÉϲâÊÔ½á¹û£º
²âÊÔ´ÅÅÌÐÔÄÜ£¨²»cache£©
120-test:/home/lai# hdparm -t /dev/sda
/dev/sda:
 Timing buffered disk reads:  346 MB in  3.02 seconds = 114.65 MB/sec
²âÊÔ´ÅÅÌÐÔÄÜ£¨´øcache£©
120-test:/home/lai# hdparm -T /dev/sda
/dev/s ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ