Linux view process, CPU, memory

Source: Internet
Author: User

First, real-time view

Computer consumption of memory is generally

Use the top command to view, CPU, memory, usage, real-time data; exit with Q-key or Ctrl +c

Top Results interpretation

Top-01:47:27 up, 2 users, load average:0.00, 0.03, 0.05
tasks:154 Total, 1 running, 153 sleeping, 0 stopped, 0 zombie
Cpu (s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
mem:1012076k Total, 705720k used, 306356k free, 79348k buffers
swap:2031612k Total, 0k used, 2031612k free, 332136k cached

Up 6:00 means it's been on for 6 hours.

Load average:0.00, 0.03, 0.05 for load requests per minute, every five minutes, every 15 minutes, combined load

tasks:154 Total, 1 running, 153 sleeping, 0 stopped, 0 Zombie said:

Cpu (s): 0.0%us, 0.0%sy, 0.0%ni, 100.0%id, 0.0%wa, 0.0%hi , 0.0%si, 0.0%st 100% idle rate

mem:1012076k Total, 705720k used, 306356kfree, 79348k buffers with idle

Uptime: View computer uptime average load on users online

Who view details of users who log on online

Last save important operation commands for the computer

Free-h can view memory usage

Swap is virtual memory or swap memory

Second, Scheduled Tasks

1. One-time mission plan at

Add a task

At 18:15

Init 6

Crontab + D exit

At what point in time to dry

What to edit

Crtl+d Exit Edit

View Tasks

Delete a task

ATRM Task number (is the job behind)

Tasks will automatically disappear after execution

2. Recurring Task Plan

* * * * * */bin/jjjjxhhh.sh task--time-sharing day and month task

00 03 * * * Three points per day

20 23 * * * 23 points per day

*/5 * * * * every five minutes

59 23 * 1-2 Weekly, Tuesday 23:59

59 23 * * 1,3,5 per week, Wednesday, Friday 23:59

Crontab

Add to

18:24 reboots per day

Crontab-e

* * * Init 6

View

Ctontab-l

Delete

Crontab-e

Remove the line from that task.

Crontab-r Delete all scheduled tasks under this user

Crontab-i prompt before deleting a user's task schedule

Crontab-s

Three

Linux view process, CPU, memory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.