15.01.2024 Views

CompTIA A+ Certification All-in-One Exam Guide

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

as it has two totally different types of switch sets! Anyway, let’s look at one

of the most common examples of ps, the ps aux command. The aux command

is actually three switches: a = processes for all users, u = show process

owner, x = process not attached to a terminal.

Note that I’m skipping a lot of lines right here between the beginning and

the end of the displayed results of the ps aux command.

One of the big problems with ps aux is the enormous output. There’s a

number of ways to make dealing with this output easier. One way is to use ps

| less. The less tool makes it easy to scroll up and down through the output.

Remember the | more tool we used earlier in this chapter? Well, “less” is

“more.” Humor! Get it? I’ll see myself out. . . . But seriously, less and more

will both work for this task; the difference between the two are details for

power users and programmers.

Let’s discuss the output of the ps aux command:

• USER: Who is running this process

• PID: The process ID number assigned to the process

• %CPU: What percentage of CPU power this process is using

• %MEM: What percentage of memory this process is using

• VSZ: Total paged memory in kilobytes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!