Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing the desktop from GITBASH

Tags:

git-bash

I am using git bash for windows and I am trying to access my desktop. When I enter the command cd ~/desktop I get the following message:

bash: cd: /h//desktop: No such file or directory

What am i doing wrong?

See attached screenshot.enter image description here

like image 213
Sam Rao Avatar asked Dec 01 '22 15:12

Sam Rao


1 Answers

right click on the mouse when you are in desktop and choose Git Bash Here, then your present working path will be '~/Desktop/'

or if you just want to use 'cd' to change your working path,then maybe the first letter of 'desktop' should be capitalized. Which means:

$cd ~/Desktop
like image 107
Hejun Avatar answered Mar 23 '23 20:03

Hejun