cd
cd stands for change directory and is a command used to switch the shell’s current working directory. In most Unix-like shells it is a builtin; it is not a separate program. Its primary purpose is to update the shell’s working directory for subsequent commands.
Its syntax is simple: cd [directory]. If directory is omitted, the command changes to the user’s home
The command typically updates environment variables such as PWD to reflect the new working directory, and OLDPWD
Cross-platform notes: in Windows, the equivalent functionality is provided by the built-in cd command in Command
Historically, cd has been a core feature of Unix shells since early implementations and remains a fundamental