Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cd.. command does not work [closed]

Tags:

linux

ubuntu

I made a directory in my ubunto desktop and copied some file inside it.

I tried to go inside the directory by using the terminal.

the issue I have is when I want to back to the parent directory which is "Desktop" by using "cd.." command I got an error says cd..: command not found

I'm a newbie and want to know the reason. would you explain it for me. thank you

like image 643
femchi Avatar asked Oct 04 '12 23:10

femchi


People also ask

Why is my cd command not working?

How to fix: When you need to change to another drive, you don't need to use CD command and it won't work, you can just type the drive letter followed by a colon, e.g. D:. If you want to change the directory and folder path at the same time, you can use add the “/d” switch after CD command, e.g. cd /d d:\PS.

Why CD command is not working in shell script?

Trying to use cd inside the shell script does not work because the shell script runs in the subshell and once the script is over it returns to the parent shell, which is why the current directory does not change.

How do I change C drive to D drive in command prompt?

To access another drive, type the drive's letter, followed by :. For instance, if you wanted to change the drive from C: to D:, you should type: d: … and then press Enter on your keyboard.

How do I run a cd from command prompt?

The cd command, short for Change Directory, lets you jump from one directory (folder) to another without any hassles. Simply type in 'cd' in the Command prompt and hit Enter. From there, you'll be taken to the top of your Command prompt directory instantly.


1 Answers

You need space, after command cd

cd ..
like image 155
Andrey Avatar answered Oct 07 '22 02:10

Andrey