- A C library for programming cognitive experiments on Windows
When you start up the Cygwin bash shell, its working directory will be
/home/yourname
. The directory where Windows programs save your files to will be
something like C:\Documents and settings\yourname\My documents
. If you want to
work on files in that directory, you can cd
over there each time you open Cygwin,
with commands like
cd /cygdrive/c/My\ Documents/yourname
or
cd /cygdrive/c/Documents\ and\ settings/yourname/My\ documents
But that's a huge typing effort. Lazy people will probably want a to put link to their Windows file directory in their Cygwin home directory.
ln [-s] TARGET [LINK_NAME]
is the command they need. If you want such a link, make sure you are in your Cygwin home
directory (cd ~
), and give the following command:
ln -s /cygdrive/c/My\ Documents/yourname winfiledir
Don't forget the -s
. Once you have typed /cygdrive/c/
you can
use tab completion to type the pathname of your specific Windows file directory. If everything
goes well, the command should produce a link in your Cygwin home directory, called
winfiledir
.
cd winfiledir
should change your working directory to your Windows file directory.