Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Neves
USA (75 posts) bio
|
| Date |
Wed 30 Apr 2008 04:46 AM (UTC) [ quote
] Amended on Wed 30 Apr 2008 04:51 AM (UTC) by Zeno
|
| Message |
Not sure which forum to put this in, but I've been away for a bit and forgot everything, I thought ls was used to list a directory in Cygwin, but it isn't working, I reinstalled Cygwin in case it wasn't installed right, any ideas?
-Edge of Acedia
[EDIT by Zeno] This is the wrong section. | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #1 on Wed 30 Apr 2008 07:16 AM (UTC) [ quote
] |
| Message |
| Yes, "ls" lists a directory. Make sure you have it in lower-case. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Neves
USA (75 posts) bio
|
| Date |
Reply #2 on Thu 01 May 2008 04:17 AM (UTC) [ quote
] |
| Message |
| Nope, not working, is it possible that the command isn't downloaded? How would I check? | top |
|
| Posted by |
David Haley
USA (3,881 posts) bio
Moderator |
| Date |
Reply #3 on Thu 01 May 2008 04:50 AM (UTC) [ quote
] Amended on Thu 01 May 2008 04:51 AM (UTC) by David Haley
|
| Message |
What is it doing, exactly? i.e. when you type "ls" what is happening?
The command should always be there; I think it's part of the "base" or "coreutils" package which is installed by default and without which Cygwin basically won't work. You would have had to go in and explicitly remove it for it to go away. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #4 on Thu 01 May 2008 06:17 AM (UTC) [ quote
] Amended on Thu 01 May 2008 06:19 AM (UTC) by Nick Gammon
|
| Message |
Can you copy and paste exactly what you do, and what you see?
Use the system menu (top left-hand corner) to select Edit -> Mark, then drag the mouse over the text and hit <enter> to copy it to the clipboard. Then paste the results here. This is what I see when I try it:
$ ls
lua-5.1.2 smaug17fuss.tgz test.c
lua-5.1.2.tar.gz smaug17fuss_lua_v4.tgz test.exe
$
The "ls" part is my typing. That isn't "1s", you know. That is an L for List, not "1" as in the number one. That is, LS in lower case.
The command ls is short for list. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Neves
USA (75 posts) bio
|
| Date |
Reply #5 on Thu 01 May 2008 07:50 PM (UTC) [ quote
] Amended on Thu 01 May 2008 07:51 PM (UTC) by Neves
|
| Message |
bash: id: command not found
bash: /bin/test: No such file or directory
Mordy@D7X4L191 ~
$ ls
bash: ls: command not found
Mordy@D7X4L191 ~
$
I haven't used Cygwin in like two years, so it is possible some files were moved or lost in the interim, but I don't think so.
-Edge of Acedia | top |
|
| Posted by |
David Haley
USA (3,881 posts) bio
Moderator |
| Date |
Reply #6 on Thu 01 May 2008 08:21 PM (UTC) [ quote
] |
| Message |
Try:
echo $PATH
and:
/bin/ls
and let us know what those do.
Also, you might want to run the Cygwin setup program again to give it a chance to upgrade (and perhaps reinstall) packages. It is possible (likely, at this point) that your Cygwin installation got messed up somehow. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
2,370 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )