• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

cygwin question

Special K

Diamond Member
I installed cygwin because I wanted a way to use UNIX commands at a windows command prompt. The only problem is, whenever I open the cygwin bash shell, I can't navigate outside the /home directory it creates inside it's installation folder. Is there a way to use cygwin's bash shell to navigate to any folder on my computer?

If not, is there any other utility that would give me UNIX command functionality at a windows command prompt?
 
ls /cygdrive

If you add the cygwin bin directory (ie. c:\cygwin\bin) to your %PATH% you'll be able to use the commands via CMD.
 
Originally posted by: xcript
ls /cygdrive

If you add the cygwin bin directory (ie. c:\cygwin\bin) to your %PATH% you'll be able to use the commands via CMD.

Is %PATH% something within windows, or within cygwin? How exactly do I do what you are describing?

Sorry, this is all pretty new to me.
 
Originally posted by: Special K
Originally posted by: xcript
ls /cygdrive

If you add the cygwin bin directory (ie. c:\cygwin\bin) to your %PATH% you'll be able to use the commands via CMD.

Is %PATH% something within windows, or within cygwin? How exactly do I do what you are describing?

Sorry, this is all pretty new to me.
My Computer -> Properties -> Advanced -> Environment Variables -> System Variables -> Path -> Edit

Prepend the cygwin bin path (suffixed with a semicolon). It might look something like this when you're done:

C:\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
 
Originally posted by: xcript
ls /cygdrive

If you add the cygwin bin directory (ie. c:\cygwin\bin) to your %PATH% you'll be able to use the commands via CMD.

Who in their right mind would want to use CMD when you have bash availible?
 
Originally posted by: sciencewhiz
Originally posted by: xcript
ls /cygdrive

If you add the cygwin bin directory (ie. c:\cygwin\bin) to your %PATH% you'll be able to use the commands via CMD.

Who in their right mind would want to use CMD when you have bash availible?

Well how do I navigate outside of the cygwin /home directory through bash? That was part of my orginal question. The highest level I can go in bash is /home. I can't go to C:\, for example.

 
Originally posted by: Special K
Originally posted by: sciencewhiz
Originally posted by: xcript
ls /cygdrive

If you add the cygwin bin directory (ie. c:\cygwin\bin) to your %PATH% you'll be able to use the commands via CMD.

Who in their right mind would want to use CMD when you have bash availible?

Well how do I navigate outside of the cygwin /home directory through bash? That was part of my orginal question. The highest level I can go in bash is /home. I can't go to C:\, for example.

Did you try as I suggested and "ls /cygdrive"?
 
Originally posted by: xcript
Originally posted by: Special K
Originally posted by: sciencewhiz
Originally posted by: xcript
ls /cygdrive

If you add the cygwin bin directory (ie. c:\cygwin\bin) to your %PATH% you'll be able to use the commands via CMD.

Who in their right mind would want to use CMD when you have bash availible?

Well how do I navigate outside of the cygwin /home directory through bash? That was part of my orginal question. The highest level I can go in bash is /home. I can't go to C:\, for example.

Did you try as I suggested and "ls /cygdrive"?

Ah, ok, that works.

Now how do I configure bash to always start there instead of in /home?

 
Originally posted by: Special K
Originally posted by: xcript
Originally posted by: Special K
Originally posted by: sciencewhiz
Originally posted by: xcript
ls /cygdrive

If you add the cygwin bin directory (ie. c:\cygwin\bin) to your %PATH% you'll be able to use the commands via CMD.

Who in their right mind would want to use CMD when you have bash availible?

Well how do I navigate outside of the cygwin /home directory through bash? That was part of my orginal question. The highest level I can go in bash is /home. I can't go to C:\, for example.

Did you try as I suggested and "ls /cygdrive"?

Ah, ok, that works.

Now how do I configure bash to always start there instead of in /home?

echo cd /cygdrive >>~/.bashrc
 
Back
Top