课程: Ubuntu Linux: User and Group Management

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Configure and monitor user resources

Configure and monitor user resources

- [Instructor] A system has limited resources and the more users you have, the greater the chances that they'll be competing for those resources. But luckily, we can monitor and manage how many resources an individual user is consuming. First, let's take a look at seeing how to determine what resources are being used by individual people. I'll switch over to one of my users here, and I'll start up a CPU-intensive process using the yes command, which types the letter Y and Enter as quickly as it can, redirected to dev/null and I'll send it to the background. And then I'll go back to my other user here with exit. We can use the top command to see what's going on with the system. And up here at the top, consuming the majority of the CPU resources is the command that that user started. I'll press Q to quit top. I can use top with -u and a username to see only information about that user's processes, which is helpful to keep an eye on one user's activity without having to dig through all…

内容