Program to expain ps commands

QWrite a program to explain PS command ?Ans.Ps कमांड active processes को दिखाती है |Syntax:ps कमांड का syntax निम्नलिखित है –ps [option]

कुछ basic ps कमांड्स निम्नलिखित है –1`) Displays all processes on a terminal, with the exception of group leaders.Ps –a

2) Displays scheduler data.Ps –c

3) Displays all processes with the exception of session leaders.Ps –d

4) Displays all processes.Ps –e

5) Displays a full listing.Ps –f

6) Displays the process group ID and session ID.Ps –j

7) Displays a long listingPs –l