-1

I cant go to my desktop using cd command. There is

no such file or directory

error. Screenshot Screenshot

What am I doing wrong?

John Kugelman
  • 307,513
  • 65
  • 473
  • 519

1 Answers1

1

Try using an absolute path like cd /user/home/*YOUR_USERNAME*/Desktop please be advised that Unix bash is case sensitive.

If this don't work you can still run the ls - all command in your home directory to see all folders and files inside. If you see the "Desktop" folder and just can't change into the directory try using sudo cd ~/Desktop

Hope that helps.

Johannes Griebenow
  • 489
  • 1
  • 6
  • 14
  • cd /user/home/*YOUR_USERNAME*/Desktop - doesnt work. And when I use "ls - all" - I can`t see the Desktop – Oleg Vecherya Oct 21 '17 at 13:06
  • 1
    Then you simply don't have any "Desktop" directory in your home folder. You can create it using `mkdir Desktop` – Johannes Griebenow Oct 21 '17 at 13:14
  • Wait) How can I possibly have no Desktop directory in my home folder?) It is located in C:\Users\Oleg\Desktop. In Command Prompt I just print " cd Desktop" and it works. But in this Unix console I cant do this... `{ ~ } » cd /user/home/Oleg/Desktop ~ cd: no such file or directory: /user/home/Oleg/Desktop ` – Oleg Vecherya Oct 21 '17 at 13:23
  • That is indeed odd. Please provide the output of `ls -all` after `cd /` and after `cd ~` for further information. – Johannes Griebenow Oct 21 '17 at 13:28
  • 1. https://ibb.co/kwtdi6 2. https://ibb.co/gz9OGR And here is the view of the home folder: https://ibb.co/bu9vVm – Oleg Vecherya Oct 21 '17 at 13:44
  • Ok now it makes kinda sense. Seems like your babun home directory doesn't match your windows home directory. Actually it is a known problem that babun uses an own directory structure when installed with default configuration. A solution for this issue is already provided by @ouwen [here] [1] [1]:https://stackoverflow.com/questions/36011250/how-to-make-babun-cygwin-home-directory-equal-windows-home-directory – Johannes Griebenow Oct 21 '17 at 15:15