UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2007-08-22 04:39 AM

zhn636
Member
Registered: 2007-04-24
Posts: 146

Re: shell process

how many kind of shell processes in the unix system?
   what is the definition of the shell process?

Offline

#2 2007-08-22 01:46 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: shell process

Huh?  Do you just mean like "/bin/sh", that type of shell?  There are tons of them:
sh, csh, tcsh, ksh, bash, etc...

Offline

#3 2007-08-23 04:36 AM

zhn636
Member
Registered: 2007-04-24
Posts: 146

Re: shell process

whether the shell is also a executable file or a background process ,who has the permission to execute it? whether only the root user to execute it.

Offline

#4 2007-08-23 01:09 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: shell process

Huh?  You still haven't answered me as to what you're even talking about...  If by
"shell" you mean what most people mean (the aforementioned "/bin/sh" and relatives),
then your questions are all completely bizarre...  Why the hell would only root be
able to run the shell??  The shell is what you type commands into...  Anyone with a
valid login runs a shell...  Without one, you wouldn't be able to do anything at all!
As for the nonsensical "executable file" vs. "background process" comparison (where
do you come up with these strange questions, anwyay??), you could say it's BOTH,
and even more (a foreground process, sometimes, as well)...  Like all processes, it
has to start out as being an executable file on disk (unless you plan on just stuffing
raw machine code into memory, which you've generated on the fly somehow)...  When
you execute it, it generally starts out as a foreground process...  Then, when you
type commands into it and it executes other apps on your behalf, it could be thought
of as being in the "background", while they are running in the foreground, I suppose...

Offline

#5 2007-08-23 05:16 PM

zhn636
Member
Registered: 2007-04-24
Posts: 146

Re: shell process

oh ,thanks,the question that I firstly ask is mainly I am not very clear about the differences between the shell and the process.

Offline

#6 2008-05-23 09:08 PM

clint999
Guest

Re: shell process

Board footer

Powered by FluxBB