Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 2 (Q.No. 8)
8.
Which command is used to change directory to the name beginning with a 'p'?
cd p
cd p?
cd p*
cd [p]
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
4 comments Page 1 of 1.

Nilesh S. said:   9 years ago
Here the option A and option C and option D are same but the question is, the name beginning with p, Hence the answer is option C. It is the correct answer.

Sumana said:   9 years ago
Hi,

Option 3 is not the correct answer at all.

Only option D is correct if any folder only named as p is present.

Please post an explanation.

Firoz said:   10 years ago
cd [dir1] --> Change to directory dir1 if it is specified, or to the home directory if none is given.

Siva said:   10 years ago
Hi,

This is Siva. I did not understand this question If it has many directories in that particular directory how will you change that particular directory?

Can please explain me the question?

Post your comments here:

Your comments will be displayed after verification.