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
Join Our Telegram Channel

288 64 288 64S117.2 64 74.6 75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/> Subscribe on YouTube
/> /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”.

Exit mobile version