Which command displays current directory name or change from one to another? A. Chdir B. Cd C. Mkdir D. Both a and b

Chdir
Cd
Mkdir
Both a and b

The correct answer is: Both a and b.

The cd command is used to change the current working directory. The chdir command is a synonym for cd.

The mkdir command is used to create a new directory.

To display the current working directory, you can use the pwd command.

For example, to change the current working directory to the Documents directory, you would use the following command:

cd Documents

To create a new directory called New Folder, you would use the following command:

mkdir New Folder

To display the current working directory, you would use the following command:

pwd

The output of the pwd command would be something like this:

/home/user/Documents

This indicates that the current working directory is the Documents directory.