I installed Cygwin64 in my 64-bit Windows 7 machine. The following commands failed executing, however, by displaying the error messages below. Could you help providing a resolution please?
$ ll
-bash: ll: command not found
$ clear
-bash: clear: command not found
However, the command ls -l worked...
$ ls -l
total 0
Also i tried by un-commenting the following line in .bashrc file in my home dir -
# alias ll='ls -l'
But it didn't help either!
To make Cygwin work in your normal command prompt, we need to add Cygwin to Windows Environment Variables as follow:- Step 1: In the search bar type “ Advanced System Settings ” and click on the matching field Step 2: Click on the Environment Variable button on the bottom right side
If none of the above helps, the best troubleshooting method is to run your startup scripts in debug mode. Right-click your Cygwin Terminal icon, go to Properties, and edit the command. It should be something like C:\cygwin\bin\mintty. exe-i /Cygwin-Terminal. ico -.
Then, for first testing, start up a Cygwin program from the Windows command prompt and see what happens. If you get a lengthy error messages like "user shared memory version mismatch detected", it's very likely a Cygwin process still running using the old DLL. Kill it in Windows' Task Manager or taskkill and try again.
This is because Cygwin is supposed to be a POSIX emulation environment in the first place and defining _WIN32 confuses some programs which think that they have to make special concessions for a Windows environment which Cygwin handles automatically. Check out the predefined symbols in detail by running, for example
After you uncomment the alias, you should start a new Cygwin shell for it to take effect. The .bashrc
file is actually a script that is sourced when bash starts.
clear
is not a Cygwin (Unix) command. Just use Ctrl-L instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With