Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to successfully execute some commands in Cygwin

Tags:

windows

cygwin

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!

like image 874
V.Vidyasagar Avatar asked Feb 26 '14 12:02

V.Vidyasagar


People also ask

How to make Cygwin work in the normal command prompt?

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

How do I troubleshoot Cygwin startup scripts?

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 -.

How to test if Cygwin DLL is still running?

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.

Why does_Win32 not exist in Cygwin?

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


1 Answers

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.

like image 82
SzG Avatar answered Nov 15 '22 12:11

SzG