Jump to content

Unix Advanced: Difference between revisions

zOMG MISSING COMMA
(zOMG MISSING COMMA)
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
Processes
Processes


A process is a program that runs when you execute a command in UNIX. You can have more than one process running at a time, which obviously means you can have more than one program running at a time. "How can this be Conor!?" you shout at me. I cover my ears and respond that you can run some programs in the background or you can put some programs on hold while you do something else equally crazy. And here's how you do all this magic UNIX stuff!
A process is a program that runs when you execute a command in UNIX. You can have more than one process running at a time, which obviously means you can have more than one program running at a time. "How can this be, Conor!?" you shout at me. I cover my ears and respond that you can run some programs in the background or you can put some programs on hold while you do something else equally crazy. And here's how you do all this magic UNIX stuff!


== Suspending a Process ==
== Suspending a Process ==
Line 73: Line 73:
  68730  pi  T      0:00.02 slrn
  68730  pi  T      0:00.02 slrn
  68749  pi  R+    0:00.00 ps
  68749  pi  R+    0:00.00 ps
  prompt$ kill -SIGKILL 68730
  prompt$ kill -SIGKILL 68730
  [1]  + killed    slrn
  [1]  + killed    slrn
  prompt$
  prompt$


Line 130: Line 132:


There ends my sucky sig explanation ;o)
There ends my sucky sig explanation ;o)
Please note: This explanation of ps refers to the GNU version used in BSD and Linux: we are now on Solaris so your ps commands will be different. Check the man page for details. In the meantime, use /usr/ucb/ps to run the commands shown above.


Hopefully you've found this tutorial a bit helpful and have maybe learnt something as well from it as well.
Hopefully you've found this tutorial a bit helpful and have maybe learnt something as well from it as well.


== Links ==
== Links ==
[[Unix Intro]] - basic Unix commands, just in case you forgot them or something...
[[Helpdesk]] - more tutorials!
[[Category:Helpdesk]]