Which command is used to change directory to the name beginning with a ‘p’? A. cd p B. cd p? C. cd p* D. cd [p] E. None of the above

”cd
”cd
”cd
”cd
E. None of the above” correct=”option3″]

The correct answer is: C. cd p*

The cd command is used to change the current working directory. The * wildcard character matches any number of characters, so cd p* will change the current working directory to any directory that begins with the letter “p”.

The cd p command would only change the current working directory to a directory that is named “p”. The cd p? command would only change the current working directory to a directory that begins with the letter “p” and has one character after it. The cd [p] command would only change the current working directory to a directory that begins with the letter “p” and has any number of characters after it.

Here is an example of how to use the cd command:

$ pwd
/home/user
$ cd p*
$ pwd
/home/user/pictures

In this example, the current working directory is /home/user. The cd p* command changes the current working directory to /home/user/pictures because this directory begins with the letter “p”.