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

linuxµÄpsÃüÁת£©

linuxµÄpsÃüÁîºÍtop¶¼ÊÇÓÃÀ´¼àÊÓϵͳ½ø³ÌºÍ×ÊԴʹÓÃÇé¿öµÄÓÐÓÃÃüÁî, psÃüÁî¸üΪ³£ÓÃ, ËùÒÔÕÆÎÕpsÃüÁîÊǺÜÓбØÒªµÄ
psÃüÁîÈç¹ûÓÐÈκÎÒÉÎÊ,ÇëÔÚÖÕ¶ËÏÂÊäÈë :# man ps
Ãû³Æ£ºps
ʹÓÃȨÏÞ£ºËùÓÐʹÓÃÕß
ʹÓ÷½Ê½£ºps [options] [--help]
˵Ã÷£ºÏÔʾ˲¼äÐÐ³Ì (process) µÄ¶¯Ì¬
²ÎÊý£º
ps µÄ²ÎÊý·Ç³£¶à, Ôڴ˽öÁгö¼¸¸ö³£ÓõIJÎÊý²¢´óÂÔ½éÉܺ¬Òå
-A ÁгöËùÓеÄÐгÌ
-w ÏÔʾ¼Ó¿í¿ÉÒÔÏÔʾ½Ï¶àµÄ×ÊѶ
-au ÏÔʾ½ÏÏêϸµÄ×ÊѶ
-aux ÏÔʾËùÓаüº¬ÆäËûʹÓÃÕßµÄÐгÌ
au(x) Êä³ö¸ñʽ :
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
USER: ÐгÌÓµÓÐÕß
PID: pid
%CPU: Õ¼ÓÃµÄ CPU ʹÓÃÂÊ
%MEM: Õ¼ÓõļÇÒäÌåʹÓÃÂÊ
VSZ: Õ¼ÓõÄÐéÄâ¼ÇÒäÌå´óС
RSS: Õ¼ÓõļÇÒäÌå´óС
TTY: Öն˵ĴÎҪװÖúÅÂë (minor device number of tty)
STAT: ¸ÃÐг̵Ä״̬:
D: ²»¿ÉÖжϵľ²Ö¹ (ͨ¼Â¡õ¡õçÇb½øÐÐ I/O ¶¯×÷)
R: ÕýÔÚÖ´ÐÐÖÐ
S: ¾²Ö¹×´Ì¬
T: ÔÝÍ£Ö´ÐÐ
Z: ²»´æÔÚµ«ÔÝʱÎÞ·¨Ïû³ý
W: ûÓÐ×ã¹»µÄ¼ÇÒäÌå·ÖÒ³¿É·ÖÅä
<: ¸ßÓÅÏÈÐòµÄÐгÌ
N: µÍÓÅÏÈÐòµÄÐгÌ
L: ÓмÇÒäÌå·ÖÒ³·ÖÅä²¢ËøÔÚ¼ÇÒäÌåÄÚ
START: Ðг̿ªÊ¼Ê±¼ä
TIME: Ö´ÐеÄʱ¼ä
COMMAND:ËùÖ´ÐеÄÖ¸Áî
·¶Àý£º
ps
PID TTY TIME CMD
2791 ttyp0 00:00:00 tcsh
3092 ttyp0 00:00:00 ps
% ps -A
PID TTY TIME CMD
1 ? 00:00:03 init
2 ? 00:00:00 kflushd
3 ? 00:00:00 kpiod
4 ? 00:00:00 kswapd
5 ? 00:00:00 mdrecoveryd
.......
% ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.7 1096 472 ? S Sep10 0:03 init [3]
root 2 0.0 0.0 0 0 ? SW Sep10 0:00 [kflushd]
root 3 0.0 0.0 0 0 ? SW Sep10 0:00 [kpiod]
root 4 0.0 0.0 0 0 ? SW Sep10 0:00 [kswapd]£Ý
£¨×ª×Ôhttp://www.diybl.com/course/6_system/linux/Linuxjs/2008723/133700.html£©


Ïà¹ØÎĵµ£º

Mysql for linux mysql×Ô¶¯±¸·Ý½Å±¾

¿ÉÒÔ½«Õâ¸ö½Å±¾·Å½øcrontab£¬ËûµÄÅäÖÆÎļþÔÚ /etc/crontabÖÐÿÌìÁ賿ִÐÐÒ»´Î£¬×Ô¶¯±¸·Ý Õâ¸ö½Å±¾Ã¿Ìì×î¶àÖ»Ö´ÐÐÒ»´Î£¬¶øÇÒÖ»±£Áô×î½üÎåÌìµÄ±¸·ÝÔÚ·þÎñÆ÷ÉÏ¡£
#!/bin/bash
#This is a ShellScript For Auto DB Backup
#Powered by aspbiz
#2004-09
#Setting
#ÉèÖÃÊý¾Ý¿âÃû£¬Êý¾Ý¿âµÇ¼Ãû£¬ÃÜÂ룬±¸·Ý·¾¶£¬ÈÕ־ ......

×ÀÃæLinuxÊÇÔõÑùÁ¶³ÉµÄ£¿






<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
       ×ÀÃæ
Linux
ÊÇʲô£¿Ëµµ½µ×£¬×ÀÃæ
Linux
Ó¦¸ÃÊÇÔõÑùµÄ£¿Õâ¸öÎÊÌâËäÈ»¼òµ¥£¬ÕýÈ·»Ø´ðÈ·Êô²»Òס£ÎªÊ²Ã´£¿
 
       ÈËʹÓüÆËã»ú±ÜÃâ²»ÁËʹÓÃ×Àà ......

Linux£¨Ubuntu£©°²×°Trace32

  Trace32-ICDÊÇÄ¿Ç°¹¦ÄÜ×îÇ¿´óµÄ·ÂÕæÆ÷£¬Ö§³Ö¸÷ÖÖCPU£¬°üÀ¨ARM/X86µÈ¡£Trace32Êǵ¹úlauterbach¹«Ë¾µÄ²úÆ·£¬¹¦ÄÜÇ¿´ó£¬Ö§³Ö¸÷ÖÖ²Ù×÷ϵͳµ÷ÊÔ£¬Èçlinux/vxworks/winceµÈ£¬²»¹ý¼Û¸ñÒ²±È½Ï¸ß£¬Òª3-5ÍòRMB£¬ÏÖÔÚÒ²ÓÐЩ·ÂÖƵÄTrace£¨ÈçTrace32-ICP£©£¬¼Û¸ñ±È½Ï±ãÒË£¬´ó¸Å1Íò¶àRMB¡£Trace32ÓÉÓÚÆ书ÄÜÇ¿´ó£¬ÌرðÊʺϴóÐÍÇ¶È ......

linux strace ½ø³Ì¸ú×Ù

linux strace ½ø³Ì¸ú×Ù

µ÷ÓÃ:
strace [ -dffhiqrtttTvxx ] [ -acolumn ] [ -eexpr ] ...
[ -ofile ] [ -ppid ] ... [ -sstrsize ] [ -uusername ] [ command [ arg ... ] ]
strace -c [ -eexpr ] ... [ -Ooverhead ] [ -Ssortby ] [ command [ arg ... ] ]
¹¦ ......

ddÃüÁîÏê½âÖ®linuxÏ´´½¨Ò»¶¨´óСÎļþÃüÁî

±¾ÎĽ²½âÁËlinux´´½¨ÎļþÃüÁdd¡£Ê¹ÓÃddÕâ¸ölinuxÃüÁî¿ÉÒÔ´´½¨Ò»¶¨´óСÎļþ¡£ 
linux´´½¨ÎļþÃüÁddÃüÁî 
°ÑÖ¸¶¨µÄÊäÈëÎļþ¿½±´µ½Ö¸¶¨µÄÊä³öÎļþÖУ¬²¢ÇÒÔÚ¿½±´µÄ¹ý³ÌÖпÉÒÔ½øÐиñʽת»»¡£Óï·¨£º 
CODE:[Copy to clipboard]dd ¡²Ñ¡Ï 
QUOTE: 
if =ÊäÈëÎļþ£¨»òÉ豸Ãû³Æ£©¡£ 
of ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ