Snapshot has user ID in this case, the process ID, the parent process ID ppid the next option is the amount of CPU utilization in this case it’s negligible what’s being used at time at the time it started ,TTY,TIME is the you know in this case the time that the processes have taken up on the CPU which again it’s negligible and then following the command itself so just the bourne-again shell and the process command right now um not counting background demons and things that are written in the background. ![]() Whenever you launch a process or a program it basically goes into a wait state and creates another shell and that show will turn around and launch that program and then when it’s done that shell as you know the child shell has its own built-in kill command kills itself and then it goes back to the parent or the parent process ID and the weight function is then complete and then the parent process ID will kind of give the cursor or the console back.Again if we just go through this first part the user ID who’s running the process this is the pid the process ID and later when we couple this with the kill command we’ll need to know the pid for any process to be able to kill it or to send it to the background sometimes depends on what you will do with that the ppid is the parent process ID what happens is in the Bourne shell the bourne-again shell in this case bash.We could do PS with the F option it just gives us a little bit more info.Type in PS and we may know that pull up a man page or even if we put in bad syntax like a couple of asterisks it’ll give us a list of switches and things.Here, we get a basic process ID or ped you TTY it runs on remember there seven we can do all F 1 to F 6 for a command prompt on alt f7 4x Windows or GUI you know the time in this case that the process is taken on the CPU and the command that’s running so in this case it’s the bourne-again shell.We were to combine a U and X that would list all processes running on or off terminals and it would format the results with additional information similar to a long listing. X would list all processes that do not run on terminals. ![]() We were to combine e and F together that would display all processes and Daemons on all TTYS.Ī would list all processes that run on terminals. With the L option it would list more information on those processes. With the F option it displays processes with full options. Ps - Options Available for Linux PS command
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |