where is command "cd" located? or is it a command/ system call?
as above
|
Neither ... it's a shell-builtin.
man bash (tcsh, ksh ... ) for details Cheers, Tink |
It's a built-in command so it doesn't have its own file. As the previous poster mentioned, it's part of the "bash" command line program. (Bash stands for "Bourne Again Shell").
|
Random note: the cd shell builtin uses the chdir system call to accomplish its task. Up until about the sixth edition of Unix (sometime in the mid '70s) the change directory command in the Bourne shell was 'chdir' too. I think cd is easier to type :D.
|
that makes sense now, i just wrote a little shell myself, everything (well not everything technically) works but cd doesn't not work, i guess i need to write it on my own then.
|
By the way, cd used to be an executable on the very early Unix times (late sixties), but was broken just after the fork system call was added to the system.
Here is an excerpt from http://cm.bell-labs.com/cm/cs/who/dmr/hist.html Quote:
|
All times are GMT -5. The time now is 11:49 PM. |