What command is used to change the working directory? A. cdir B. chdir C. changedir D. cd E. None of the above

cdir
chdir
changedir
cd E. None of the above

The correct answer is D. cd.

The cd command is used to change the current working directory. It is one of the most basic and frequently used commands in Unix-like operating systems. The syntax for the cd command is as follows:

cd [directory]

If no directory is specified, the current working directory is changed to the home directory. If the specified directory does not exist, an error message is displayed.

The cd command can also be used to change to a directory that is relative to the current working directory. For example, to change to the parent directory, you would use the following command:

cd ..

To change to a directory that is one level below the current working directory, you would use the following command:

cd .

The cd command can also be used to change to a directory that is on a different filesystem. For example, to change to the /home directory, you would use the following command:

cd /home

The cd command is a powerful and versatile tool that can be used to navigate the file system. It is an essential command for any user of a Unix-like operating system.

The other options are incorrect because they are not valid commands.