Thanks you all for your reply .But i found it little strange as For giving an option to a command i normally use a hyphen "-" Why this is not the case with ps?
Is this a kind of bug?
Confused, I think i m far behind to actually understand what does your statement means. However i m trying my level best to grab the linux technology.Thanks for your reply.
BSD is one of the oldest derivative of Unix operating system. BSD uses options with no dash. Recent forms of ps commands supports all three forms, no dash, single dash and double dashes...
Here is the statement from ps man page...
NAME
ps - report a snapshot of the current processes.
SYNOPSIS
ps [options]
DESCRIPTION
ps displays information about a selection of the active processes. If you want a repetitive
update of the selection and the displayed information, use top(1) instead.
This version of ps accepts several kinds of options:
1 UNIX options, which may be grouped and must be preceded by a dash.
2 BSD options, which may be grouped and must not be used with a dash.
3 GNU long options, which are preceded by two dashes.