unix 环境“cd"命令的源代码 [英] source code for unix environments 'cd' command
本文介绍了unix 环境“cd"命令的源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在哪里可以找到 Unix 环境的 cd
命令的源代码?
Where can I find the source code for Unix environment's cd
command?
我想知道命令是如何实现的.
I want to know how the command is implemented.
推荐答案
以下是 cd
工作原理的完整说明:http://web.archive.org/web/20090515201659/http://www.cs.ucr.edu/~brett/cs153_w02/syscall.html
Here is a complete explanation how cd
works: http://web.archive.org/web/20090515201659/http://www.cs.ucr.edu/~brett/cs153_w02/syscall.html
cd
Unix 命令只是调用 chdir
并检查错误代码.
The cd
Unix command just calls chdir
and examines the error codes.
这篇关于unix 环境“cd"命令的源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文