Why CD is a built in?

Ánh Dương

New member
Why CD is a built in?
Answer
Originally Answered: Why is ‘cd’ a built-in command in the shell and not an executable program like the command ‘ls’? cd has to be a builtin
because the shell itself needs to change its “cwd” – current working directory – not a sub-process.
 

Tìm kiếm

Back
Top