11 reputation
3
bio website Erfankam.com
location Islamic Repulic of, Iran
age
visits member for 2 years, 4 months
seen Jun 9 at 6:25

I am a Programmer.


May
25
comment Why is cd not a program?
I think every process has a working directory and path variable too. Thus you by chdir just change this attribute of process. Shell has this attribute too and by cd we modify this attribure.
May
25
comment Why is cd not a program?
lets add some another lines to your app. #include <stdlib.h> int main(void) { chdir(".."); puts(getenv("PWD")); setenv(P"PWD", "/", 1); puts(getenv("PWD")); } What will we have as results?
May
24
awarded  Editor
May
24
revised How to see package version without install?
We can use apt-cache show command to see both version and description.
May
24
suggested suggested edit on How to see package version without install?
May
24
awarded  Supporter
May
17
awarded  Teacher
May
17
answered Why is cd not a program?