Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a directory in Desktop named Project. I tried opening it using the cd command but it is not opening. What's the reason?

Check the screenshot. The directory has all the required permissions.

I tried with the root user also, but facing the same problem.

Screenshot

share|improve this question
1  
Can you do your screenshot with Alt+PrintScreen. It's not visible this way, forcing me to open it in a new Window. Nice background BTW. –  Tshepang Jul 17 '11 at 18:14
add comment

5 Answers

up vote 28 down vote accepted

It looks to me like the Project directory has a space at the start of it, so try:

cd " Project"

If it's something other than a space (say a tab) then

cd *Project

should do the trick.

share|improve this answer
add comment

Am I the only one who thinks the OP's screen snapshot is a bit strange?

"ls -ll" should sort by filename. If the "Project" file began with some invisible character than looks like a space, why does it sort between "perl" and "Screenshot.png"?

If I go into any directory and do "mkdir ' Project'", then "ls -ll" sorts it at the top of the list.

This looks like a listing produced by "ls -lt".

share|improve this answer
add comment

Looks like the directory starts with a space. Try cd \ Project

share|improve this answer
add comment

There is a white space before Project.

Try this:

cd \ Project

or

cd ' Project'

or

cd " Project"
share|improve this answer
add comment

There seems to be an extra space, try:

$ cd " Project"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.