i was looking at my process in system monitor and i saw one that i never say before: "sh". what does it do? why did it suddenly appear?
i was looking at my process in system monitor and i saw one that i never say before: "sh". what does it do? why did it suddenly appear?
sh stands for shell, the standard command language interpreter
Quoting from Open Group
Some kinda technical termThe sh utility is a command language interpreter that shall execute commands read from a command line string, the standard input, or a specified file. The application shall ensure that the commands to be executed are expressed in the language described in Shell Command Language.
advocating Free and Open Source Software, supporting the Open Web
fight for your right to party and get your free cloud storage now
what does it do? its a process that shows up in my system monitor...
Actually, I really don't know exactly what it does. It also shows in my System Monitor and pointing to it, it shows /bin/sh -c /usr/bin/compiz-decorator
advocating Free and Open Source Software, supporting the Open Web
fight for your right to party and get your free cloud storage now
Code:man shOriginally Posted by man sh
[ECS 770 AMD Motherboard] [AMD Phenom II X2 3.0GHz Dual-Core Processor] [Kingston 2GB DDR3 SDRAM]
[Nvidia GeForce 8800GT Graphics Card] [Creative X-Fi XtremeGamer Sound Card] [Western Digital 500GB Hard Disk Drive]
why did i never see it before? for mem usage it says n/a... almost like its doing nothing...
Perhaps a more helpful snippet from the man page is this:
If you really want to know what that particular shell process is doing, you might try using `lsof` against the process ID.The shell is a command that reads lines from either a file or the terminal, interprets them, and generally executes other commands. It is the program that is running when a user logs into the system...
Code:sudo lsof -p PID
maybe i just never noticed it before... speaking of processes, what does "zombie mode" mean?
Last edited by thomz92; September 17th, 2009 at 02:24 AM.
A process which is done executing but is still in the process table because it's caller hasn't requested it be removed.
The UNIX process model is very different from the Windows one for example. Processes are logically arranged in a tree like structure. The root of the tree is called "init", it's the only process directly called by the kernel itself.
All processes then are forked from init, usually including the login manager process. The login manager then forks a login shell (called "sh"). Sh can fork more processes and so forth. Other processes can call other processes. When "sh" is killed, so any processes it forked are also killed.
Fundamentally the model is a tree, not a list.
Proud GNU/Linux zealot and lover of penguins
"Value your freedom or you will lose it, teaches history." --Richard Stallman
Bookmarks