1

I have installed Cygwin and once I started to build a C++ file in Visual Studio Code with Cygwin GCC, I noticed that it uses some usr/bin folder. Then I went to check what is in Cygwin usr/bin folder. But I noticed that there is no bin folder here. But there is a sbin folder here. Is it any glitch or normal?

1
  • 1
    Do you mean usr/bin without a leading slash? If so, this is a path relative to your current directory. Whether this directory should exist or not I can only tell if I know your current directory. Commented Jun 14, 2021 at 8:51

1 Answer 1

2
$ mount
D:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
D:/cygwin64/lib on /usr/lib type ntfs (binary,auto)
D:/cygwin64 on / type ntfs (binary,auto)

On cygwin the directory /bin and /usr/bin are the same, similar for /lib and /usr/lib

Additional info on
https://cygwin.com/cygwin-ug-net/using.html#mount-table

2
  • and what about /usr/sbin? Commented Jun 15, 2021 at 14:48
  • /sbin and /usr/sbin are separated, and usually not in the PATH
    – matzeri
    Commented Jun 15, 2021 at 16:33

You must log in to answer this question.

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