Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

ps -l

Hi,

I'm a windows user, I'm trying to find out what ps -l does for unix? I think it prints a list of all processes running at the time you issue that command, similar to windows' task manager.

The output header seems to be:

F S  UID   PID  PPID C PRI NI ADDR SZ WCHAN TTY       TIME CMD


I'm really wondering what the first two columns stand for (F and S)? They seem to always be a single character, is that always the case, or can they sometimes be more than one character? (I'm wondering because I want to write a script that parses the output, and it'll make a difference if the output is only ever one char long for those two columns or can be more),

Thanks
0
DJ_AM_Juicebox
Asked:
DJ_AM_Juicebox
1 Solution
 
omarfaridCommented:
from the man page of ps:

F        flags associated with the process
S        minimal state display

http://man-wiki.net/index.php/1:ps
http://man-wiki.net/index.php/1:ps#PROCESS_FLAGS
http://man-wiki.net/index.php/1:ps#PROCESS_STATE_CODES
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Tackle projects and never again get stuck behind a technical roadblock.
Join Now