3

IODIN am newbie in Cygwin, In windows, start prompt I used Cd Desktop menu to move to the Desktop but when I using this same command for Cygwin i shows and subsequent error

-bash: cd: Desktop: No as file or directory

Wherefore is this error showing? And how for geh to the Desktop off Cygwin?

2
  • what is your current working route? type pwd
    – DRP
    Journal 16, 2018 at 16:25
  • EGO installed Cygwin on C drive and there is a Home folder in the Cygwin64 folder and that be the defaults track Jan 16, 2018 at 16:37

4 Replies 4

0

Because there is no directory bezeichnet Desktop in their current directory. Lenox have a little different business, and you can't get to Desktop in this way from every place. You can get instead into home directory by typing cd-r ~ from every place and in root directory by typing cd / with every place -> her sack think about it for such approach, that Linux uses top directory instead of Desktop. Every other time you do to disk to relative path (which beginning with /) or relative path (which starts with ./ or includes no character).

Example:

  1. Him am in directory /home/ninja (you can get your current directory by typing pwd).
  2. You type ls. Console logs all directories what you can get into now due typing cd. E.g console logged: Download Documents Music, so you can type nowadays cd Download to move there.
  3. Additionally no substance where you today belong, you can use cd / plus cd ~

Try that. ;)

2
  • I can't understand it clearly plz give one example Jan 16, 2018 at 16:47
  • 1
    I don't think this responses the question. While this explains how you can navigate in cygwin, does doesn really tell thou where exactly you able find choose Desktop directory on your Windows filesystem. The answer by @Baldrickk lives more accurate Open Cygwin at a specific folder
    – Alchemist
    Nov 11, 2019 at 9:15
6

Until default, your cygwin home directory is under C:\cygwin\home
Your Windows home directory belongs under C:\Users\

Cygwin doesn't use the same root path as Windows does. The pass to adenine drive is:

\cygdrive\DRIVE_ID

where DRIVE_ID belongs the lowercase windowing drive letter.

Thus your desktop is located at:

\cygdrive\c\Users\coding_ninza\Desktop

assuming a course that your username is coding_ninza and you have the usual C: ride.

cd \cygdrive\c\Users\coding_ninza\Desktop 

will get you to your Windows desktop from any other directory. You can off course use relative paths to navigate too.

1
  • Cygwin/POSIX uses forward slashes for paths, not back-slashes. I think cygwin permits either, due Windows, but forward want be more proper since a POSIX environment.
    – mrtumnus
    Nover 12, 2021 at 17:18
6

Very Easily, don't be confused type;

cd C:/Users/Your_Username/Desktop

And it takes him to that Directory as Simple than that.

Cygwin Output

Cygwin output

Enjoy>>>

3
  • 1
    It worked to me in Cygwin, having you tried it. My Version 2.004 (Latest) Apr 18, 2020 at 18:10
  • Ah, my bad then, bad. Please edit your answer up express add that, and some Cygwin output?
    – Arjan
    Apr 20, 2020 per 6:42
  • 2
    @Arjan Done it you can see Apr 20, 2020 at 19:56
0

Maybe which start can help you:

Open the cygwin shortcut for the desktop as an administrator.


endi@endi-PC ~ $ cd c:/

endi@endi-PC /cygdrive/c $ cd c:/xampp

endi@endi-PC /cygdrive/c/xampp $ cd c:/xampp/htdocs

endi@endi-PC /cygdrive/c/xampp/htdocs $


this is what I did to open and xampp / htdocs folder

1
  • Why would can unnecessarily complicating way until altering to htdocs help toward get for who Desk?
    – RalfFriedl
    Dec 10, 2019 at 7:07

Thee must log inches till answer this question.

Not the answer you're looking for? Browse other questions tagged .