LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (http://www.linuxquestions.org/questions/general-10/)
-   -   some command in cygwin is not working (http://www.linuxquestions.org/questions/general-10/some-command-in-cygwin-is-not-working-801654/)

ajatshatru 04-12-2010 10:37 PM

some command in cygwin is not working
 
i recently install cygwin in my windows xp laptop. it is successfully installed. some commands is working like cd history etc but some command is not working like cat ll ls etc pls tell me what can i do in it.

deadeyes 04-13-2010 11:31 AM

Are these commands not working or are these not installed on your system?
Do you get any error message?

If it is not installed, restarted the setup.exe for cygwin and select the base system. This should include all basic tools.

ajatshatru 04-14-2010 07:16 AM

thank you for repling
 
thank you dead eyes for repling

ajatshatru 04-14-2010 07:16 AM

i have solved this problem but still have some problem.
 
i have Cygwin Bash shell its command prompt is shown as bash-3.2#
when i run cat command it shows error
bash: cat: command not found
but when i run it as
Bash-3.2# /bin/cat (filename)
then it works
so pls help me what is the problem why i could't run cat command directly?

Sayan Acharjee 04-14-2010 07:20 AM

Quote:

Originally Posted by ajatshatru (Post 3935186)
i have Cygwin Bash shell its command prompt is shown as bash-3.2#
when i run cat command it shows error
bash: cat: command not found
but when i run it as
Bash-3.2# /bin/cat (filename)
then it works
so pls help me what is the problem why i could't run cat command directly?

Check /root/.bash_profile, see if the following line is there:
PATH=$PATH:$HOME/bin

ajatshatru 04-14-2010 07:32 AM

dear mr. sayan
 
cygwin is for windows. there is no any folder named root.

Sayan Acharjee 04-14-2010 07:34 AM

Oops!! did not notice that, sorry. :D

ntubski 04-14-2010 11:50 AM

How are you starting cygwin? I seem to remember that cygwin gets installed with a .bat file that sets up the PATH and other environment variables.

deadeyes 04-15-2010 03:58 AM

Quote:

when i run cat command it shows error
bash: cat: command not found
but when i run it as
Bash-3.2# /bin/cat (filename)
then it works
Your PATH variable is incorrect.

ajatshatru 04-16-2010 12:56 AM

how can i set path variable

as i know it is in environment variable
ii set PATH as .;C:\cygwin\bin
is it correct?

Kenny_Strawn 04-16-2010 06:53 AM

No, it is not correct. Here is my path variable:

Code:

/home/kenny-strawn/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
It is composed of directories separated by colons. And in your case, C:\Cygwin is read as '/' by the Cygwin shell.


All times are GMT -5. The time now is 04:54 PM.