Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Compiling the server
➜ Cygwin help
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Neves
USA (78 posts) Bio
|
Date
| Wed 30 Apr 2008 04:46 AM (UTC) 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 (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 30 Apr 2008 07:16 AM (UTC) |
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 (78 posts) Bio
|
Date
| Reply #2 on Thu 01 May 2008 04:17 AM (UTC) |
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
|
Date
| Reply #3 on Thu 01 May 2008 04:50 AM (UTC) 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 (23,140 posts) Bio
Forum Administrator |
Date
| Reply #4 on Thu 01 May 2008 06:17 AM (UTC) 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 (78 posts) Bio
|
Date
| Reply #5 on Thu 01 May 2008 07:50 PM (UTC) 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
|
Date
| Reply #6 on Thu 01 May 2008 08:21 PM (UTC) |
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.
19,693 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top