Linux, a lot of fully display the system's current state of operation, load, I/O and other information tools to help administrators in real-time understanding of the system running dynamic, and troubleshooting.
PS Command: Displays the status of the process and the snapshot mode.
The process is divided into two categories: one is the process that the user initiates through the terminal, and the other is the process that is unrelated to the terminal, mostly the daemon process.
The PS command supports two styles of commands: SysV style BDS style. The SysV style is lined with horizontal lines.
ps command option: &NBSP;&NBSP;&NBSP;&NBSP;A&NBSP;&NBSP;: terminal-related processes x : terminal-independent processes u : shows which user started -e : show all Processes &NBSP;&NBSP;&NBSP;&NBSP;-F&NBSP: Full Format list displays information -f : Displays additional information -h &NBSP: Show process hierarchy -o : Customize display info #ps aux | moreUSER PID %CPU %MEM VSZ RSS TTY STAT start timecommandroot 1 0.0 0.1 19356 1544 ? Ss 17:00 0:02/sbin/initroot 2 0.0 0.0 0 0? S 17:00 0:00[kthreadd] ... ... user: process Related user pid: process number%cpu: cpu occupancy percentage%mem: memory consumption percent vsz: consumption of virtual memory size rss: resident Memory Set, non-exchangeable internalWhich terminal is associated with the tty: stat: process status r: Run status s: interruptible sleep d: Non-disruptive sleep t: Stopped z: Zombie process s: Session First process +: foreground process l : multithreaded Process n: low-priority process <: High-priority process start: Start run time time; runtime command: Which command starts this process, if command is enclosed in square brackets, is the kernel process #ps -ef | more uid pid ppid c STIME TTY TIME CMDroot 1 0 0 17:00 ? 00:00:02 /sbin/initroot 2 0 0 17:00 ? 00:00:00 [kthreadd] ppid: Parent Process stime: Start time time: perform cumulative time custom display information #ps axo pid,command pid command 1 /sbin/init 2 [kthreadd] 3 [migration/0] 4 [ksoftirqd/0]...... to see if the httpd process is started, you can use the grep command to stitch. ' #ps -ef | grep httpdroot 1746 1 0 17:00 ? 00:00:01 /usr/sbin/ httpdapache 1753 1746 0 17:00 ? 00:00:00 /usr/sbin/httpd
Pgrep command: Check the active process in the system
pgrep command parameter-u UID: Specifies user-initiated process-G GID: Specifies group-related processes-T: Displays terminal-related processes-L: Displays both the process number and the program name #pgrep-u dhcpd1638
Top command: A Linux analysis tool, real-time Monitoring system performance Resource Usage
# toptop-21:42:26 up 4:42, 3 users, Load average:0.00, 0.00, 0.00tasks:170 Total, 1 running, 169 sleeping, 0stopp Ed, 0 zombiecpu (s): 0.2%us, 0.3%sy, 0.0%ni, 99.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stmem:1016320ktotal, 666004k Used, 350316k free, 41344k buffersswap:2097144ktotal, 0k used, 2097144k free, 365124k cached
First line: System load
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/43/A0/wKiom1Pbky7BCJsRAADqhF0SJrA436.jpg "title=" 2014-07-31_214307.jpg "alt=" Wkiom1pbky7bcjsraadqhf0sjra436.jpg "/>
Second line: Process information
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/43/A0/wKioL1PblIPCR_soAADjZ4kJqAY545.jpg "title=" 2014-07-31_214843.jpg "alt=" Wkiol1pblipcr_soaadjz4kjqay545.jpg "/>
Third line: Percentage of CPU usage
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/43/A0/wKioL1PblKPg8-YVAAHn7lbqXo8616.jpg "title=" 2014-07-31_220005.jpg "alt=" Wkiol1pblkpg8-yvaahn7lbqxo8616.jpg "/>
Line four: Memory information
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/43/A0/wKiom1Pbk7nR6M9cAAEra2fuzWM193.jpg "title=" 2014-07-31_221404.jpg "alt=" Wkiom1pbk7nr6m9caaera2fuzwm193.jpg "/>
Htop command:
need to manually install yourself rpm Package or source package, CentOS6.5 the system CD is not.
command-Line Options-C: Use a monochrome color scheme-D: Set delay update time in seconds-H: Show htop Command Help Information-u: Show only a given user's procedure-P: Show only given pids-s: Sort by this column-V: Displays version information such as: # htop-d 1 It will refresh 1 times in 1 seconds. # Htop-vhtop 1.0.1-(C) 2004-2011 Hisham muhammadreleased under the GNU GPL. Interactive command: Interactive Select to display the process for the specified user l: Display the list of files opened by the process where the cursor is located s: Shows the system call of the process executing the cursor A: Bind process to the specified cpu#: Fast position cursor to the PID # process
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/43/A0/wKiom1PblALi0lwJAAirmkPdF5M523.jpg "title=" 2014-07-31_221424.jpg "alt=" Wkiom1pblali0lwjaairmkpdf5m523.jpg "/>
Vmstat: Virtual Memory status information
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/43/A1/wKioL1PblVPRyfOwAAOvFwPoK8w657.jpg "title=" 2014-07-31_225725.jpg "alt=" Wkiol1pblvpryfowaaovfwpok8w657.jpg "/>
Iftop: Flow monitoring Tool
Command option-I: Specifies the network card device name to monitor-B: Displays the traffic in bytes-N: Does not display the host name but the IP address-N: Said to be the default display port, I also never see How to use (Don ' Tconvert port numbers to services)- F: Specify the traffic to display a segment
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/43/A1/wKioL1PblaODqP0WAAVc9qKBGEY603.jpg "title=" 2014-08-01_201111.jpg "alt=" Wkiol1pblaodqp0waavc9qkbgey603.jpg "/>
Dstat: All-in-all monitoring tools
-C: Show CPU statistics-D: Show disk data-G: Show page Statistics-I: Show interrupted data-M: Display memory-S: Swap memory-P: Show process queue--IPC: Show interprocess Message Queuing Semaphore and shared memory usage-ddisk: Display only statistics for the specified disk-y: System State Data-N: Display network interface-neth0: Displays only the usage of the specified network interface-F: Displays all information in full format network connection status statistics, such as Dstat--tcp- TCP--UDP--raw--unix
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/43/A0/wKiom1PblMnA9abJAAKJBYG0jJ8025.jpg "title=" 2014-08-01_203808.jpg "alt=" Wkiom1pblmna9abjaakjbyg0jj8025.jpg "/>
Supplement: Check the next part of the explanation is covered by Loge, explained as follows.
Percent of CPU usage is obscured: User space consumes CPU percentage.
The dstat command is obscured by the section: Disk read/realism time frequency.
Summary: There are many common Linux monitoring tools, scan the port, capture data packets, command how much will use some, but out of the results do not understand, just mention a few commands.
Nmap: A tool for scanning the root port.
NC ncat: Left and right feeling and nmap almost.
Tcpdump: Analyze traffic packet tool.