[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Cygwin help
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Cygwin help

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Neves   USA  (78 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] 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
[Go to top] top

Posted by Neves   USA  (78 posts)  [Biography] 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?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] 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
[Go to top] top

Posted by Neves   USA  (78 posts)  [Biography] 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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] 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.


5,351 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]