Cygwin Question


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Cygwin Question
# 1  
Old 05-17-2009
Cygwin Question

Hello I have a quick question about cygwin. I cannot access my print work directory folder. When I enter the pwd command it will put me in the folder but when I type "ls" command it says that there are no files in there. Also if I am in the home directory and I type "ls" command it lists the user name folder (ie. print work directory), but when I try to access the folder it says that it doesn't exist. In other words I cannot access or change anything in my pwd folder. I always get file doesn't exist. Please help. Thank you.
# 2  
Old 05-17-2009
Quote:
Originally Posted by jae99
Hello I have a quick question about cygwin. I cannot access my print work directory folder. When I enter the pwd command it will put me in the folder

pwd doesn't put you anywhere; it tells you where you are.

To change directories, use cd.
# 3  
Old 05-17-2009
Sorry I don't think I explained my issue very well.

Image

In the above pic I'm in the home directory and it lists two files, a .txt and another file directory named bill gates. Why does it say no such file when I try to enter it but it displays it the home directory.
# 4  
Old 05-17-2009
That's because cd should be followed by one word without spaces (which would be the directory you want to change to).

Cygwin picks up the first word "bill" and assumes that that is the directory you want to change to. And since the directory "bill" is non-existent, it simply says so.

Use double quotes around the directory name if it has spaces in it.

Code:
cd "bill gates"

tyler_durden
# 5  
Old 05-17-2009
Quote:
Originally Posted by jae99
Sorry I don't think I explained my issue very well.

http://farm3.static.flickr.com/2331/...76c6c85e_o.jpg

It would be far easier to read if you cut and pasted the text.
Quote:
In the above pic I'm in the home directory and it lists two files, a .txt and another file directory named bill gates. Why does it say no such file when I try to enter it but it displays it the home directory.

Read the error message:
Code:
bash: cd: bill: No such file or directory

You want:

Code:
cd "bill gates"

# 6  
Old 05-17-2009
Thank you. That worked.
# 7  
Old 05-17-2009
I have a quick follow up question. Inside the bill gates folder I have three files

.bash_profile
.bashrc
.inputrc

When I do the ls command its says total 0. Is this because the files are hidden from cygwin?

Thanks again for the help.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

cygwin

Do clear command do not work in cygwin.. (4 Replies)
Discussion started by: parthmittal2007
4 Replies

2. Shell Programming and Scripting

opening new instance of cygwin from withing cygwin

I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies

3. UNIX for Dummies Questions & Answers

Anyone else use Cygwin?

I started to gather some stats from our windows servers through the use of cygwin and sshd :) is anyone else doing this sort of thing? interested in some other indicators I should be checking for... thanks, manny the following is only an example of the type of data I am able to... (4 Replies)
Discussion started by: mr_manny
4 Replies

4. UNIX for Dummies Questions & Answers

cygwin

hi.... i want to set an alias to "ls -lart" permanently. i am using cygwin and in that .bashrc and .bash_profile files are readonly. so please tell me how i can do that? thanks (1 Reply)
Discussion started by: Usha Shastri
1 Replies

5. Programming

cygwin

hello ... i am new with cygwin ... and i want you to help me. ... First of all, i want to determine the steady state stream function in a 2-D duct using a square mesh by using the finite-difference methodology and i want to simulate it....and i read a lot of information at... (1 Reply)
Discussion started by: mostafamagdy
1 Replies

6. UNIX for Dummies Questions & Answers

cygwin - sh-3.2$ help!

i am completely new to unix and am trying to learn with cygwin. my problem is simple.... when i use the 'man' command, eg 'man cat' id do not know how to get out of the manual!!!? if i type '!' and Return, rather than having just the $ prompt, it has 'sh-3.2$' as a command prompt.... (1 Reply)
Discussion started by: bobby999
1 Replies

7. Linux

cygwin

I'm trying to run the make command in cygwin. The directory is d:\resiprocate-1.2.3\resip\dum\test. But the command outputs: cant open perl script "c:\Program": No such file or directory why??...check the attached JPEG file....plz help (10 Replies)
Discussion started by: m_well
10 Replies

8. UNIX for Dummies Questions & Answers

Cygwin X

I have managed a successful install of Cygwin (after a few tries), and like any sensible person am ignoring the console in favour of the xconsole. I have this set up how I want - tcsh, all hot-keys (including ^z for suspend) and et cetera, but find it awfully slow. Are there any good... (7 Replies)
Discussion started by: fulgura
7 Replies

9. UNIX for Dummies Questions & Answers

A beginner for cygwin simple question

the current pwd is: c:\cygwin\home\hui which command can go to c:\documents and setting\hui\my documents\hui\reply.txt (1 Reply)
Discussion started by: zhshqzyc
1 Replies

10. UNIX for Dummies Questions & Answers

Cygwin

Hi , I have cygwin software on my machine. can i practice shell script on that software or not? thanks sam71 (0 Replies)
Discussion started by: sam71
0 Replies
Login or Register to Ask a Question