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
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.
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.
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.
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.
You need space, after command cd
cd ..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With