Before we learned the system information, user, network, Disk Class command, today we continue to learn the process, installation, time, scheduled Task command. 650) this.width=650; "src=" Http://img.baidu.com/hi/face/i_f01.gif "alt=" I_f01.gif "/>
Process Class command 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0052.gif "alt=" W_0052.gif "/>
Before I tell you about this kind of order, let me give you some basic concepts about the process. What is a process? We all know the program! The program is written by the programmer, and stored on the disk is not running. It's called a process when he's running. Speaking of the process, I think of a thread concept, the so-called thread is the process of the Aberdeen. We understand this better. A process can have many threads. As for their differences, we'll talk about them in detail later.
when our computer runs a program, it produces a process, so how do we know how the computer process is running? Under Linux , there are two commands that are very important for top and PS. these two are Linux give me the command to view the status of the process specific use look at our direct input Top command Enter as follows 650) this.width=650; "Src=" http://s1.51cto.com/wyfs02/M00/7B/14/ Wkiom1bgjy2c1jl2aaari6ozxrm797.png "title=" qq picture 20160219093444.png "alt=" Wkiom1bgjy2c1jl2aaari6ozxrm797.png "/>
Can see the following content
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7B/14/wKiom1bGjbewy41vAAC1ipucxes683.png "title=" QQ picture 20160219093601.png "alt=" Wkiom1bgjbewy41vaac1ipucxes683.png "/>
What does each line mean?
The first line, we don't have to say, is Uptime the contents of the command,
Second Line Tasks is our process, Total total number of processes, Running the number of processes that are running, Sleeping the number of sleep processes, stopped number of processes stopped, Zombie number of zombie processes
CPU use case
cpu (s): 0.0% US user space occupancy cpu percent, 0.0% sy kernel footprint cpu percentage 0.0% ni Span style= "font-size:19px;font-family: ' The song Body '; > processes that have changed priority in user process space occupy cpu percentage
98.7% ID Idle CPU percentage 0.0% wa waiting for input and output CPU percent of Time
0.0% Hi , 0.0% si
45th behavior Memory Information
The contents are as follows:
mem:1012292k total physical memory totals , 1458646k used The total amount of physical memory used, 866428k free total free memory, 28420k buffers used as the amount of memory for the kernel cache, swap:1048572ktotal Total swap area, 0k used The total number of swap areas used,
1048572k Free Total free Swap area, 37984k Cached the total amount of buffer swap area. the in-memory content is swapped out to the swap area and then swapped in to memory, but the used swap area has not been overwritten, which is the size of the swap area where the content already exists in memory. When the corresponding memory is swapped out again, it is no longer necessary to write to the swap area.
The following is the operation of each process of the specific circumstances, specifically what the meaning, we do not discuss here. When we use it, we say it in detail.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7B/14/wKiom1bGjsjSi2o7AABZdirP-zA533.png "title=" QQ picture 20160219101552.png "alt=" Wkiom1bgjsjsi2o7aabzdirp-za533.png "/>
The above is a dynamic view of the situation, corresponding to the static view process, that is PS command, the commonly used format is
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7B/14/wKioL1bGj2qAFzsUAABHCGhR8ZU827.png "title=" QQ picture 20160219102100.png "alt=" Wkiol1bgj2qafzsuaabhcghr8zu827.png "/>650) this.width=650;" src= "/HTTP/ S4.51cto.com/wyfs02/m02/7b/14/wkiom1bgjxybtid8aabpnkxfix8512.png "title=" qq picture 20160219101945.png "alt=" Wkiom1bgjxybtid8aabpnkxfix8512.png "/>
Show the content, I believe you should read it literally. I don't have much to be said here. Now that we have found the process, if there is a problem with the process, now what to do to solve him? Don't worry! We can kill him, right! Is thatKill,pkill,killall.the difference between them isKillis to kill the process according to the process number, example:kill-9(process number), where the-9it means to be mandatory. Pkillis based on the process name example I want to killApacheProcess:pkill Apache.sameKillallThe process is also killed according to the process name.
Install Class command 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0026.gif "alt=" W_0026.gif "/>
we are Windows under the installation of a software is decompression, double-click with the mouse, and then the next step can be, in Linux The installation of a software is also very simple, and also provides a different installation method. Here we install the service in the back of the time, will be explained in detail, here is not much to describe.
Time command 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0012.gif "alt=" W_0012.gif "/>
Date The command can display the date in the specified format, or it can be used to set the time, just type Date Displays the current time in the default format. as follows:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7B/14/wKiom1bGj2SQAARWAABI-2XjfDY090.png "title=" QQ picture 20160219105213.png "alt=" Wkiom1bgj2sqaarwaabi-2xjfdy090.png "/>
specific settings I explain the timing of the script at the time to explain in detail, simply say how to use, feel a bit of space, not practical, here we know that the order of time is Date you can do it.
Timed Task command 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0024.gif "alt=" W_0024.gif "/>
Crond is a Linux a service or software used in a system to perform regular commands or to specify program tasks.
Scheduled Task storage location:/etc/crontab
View timed task command:crontab - l
Edit timed Task command:crontab - e
Delete Scheduled task command:crontab –r
We just have to remember that. We use them when we build our services, and then we learn some other commands, and slowly our command base is plump. 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0049.gif "alt=" W_0049.gif "/>
This article from "Lele Run" blog, please be sure to keep this source http://10851431.blog.51cto.com/10841431/1743302
Linux Process Time Timer task command