-1
I typed this command as mentioned in my book. I don't see any output. Instead, I get an error:
ls -l|more
-bash: more: command not found
How can I fix this problem? The same thing happens for the lp
command.
-1
I typed this command as mentioned in my book. I don't see any output. Instead, I get an error:
ls -l|more
-bash: more: command not found
How can I fix this problem? The same thing happens for the lp
command.
3
more
is available on Cygwin via the util-linux
package. However, most people today use less
instead, which is more powerful.
There is no lp
in Cygwin, though you can get lpr
via the cygutils
package.
You can search http://cygwin.com/packages/ to find out which package (if any) contains a specific program.
However, in general, you shouldn't expect Cygwin to support all the commands you'd find in a typical Linux distribution. If you want to experiment with Linux on a Windows machine, I'd suggest actually running Linux in a virtual machine (e.g., using something like VirtualBox).
Cygwin does have
– slhck – 2013-07-26T20:12:12.093more
, inutil-linux
.I stand corrected, thanks. It's not installed by default, though. – jjlin – 2013-07-26T20:15:33.463
@slhck - how do i install it ? Can I run bash commands on ubuntu 12.x ? – bashboy – 2013-07-26T20:39:58.997
bashgirl: just use the cygwin setup. – ott-- – 2013-07-26T20:44:02.250
@ott-- yes. i typed lp and more into the search bar of setup and got some strange looking results. In lp, there were so many results, I don't know which one to use. Btw, bash girl ? Haha...looks like unix is not the only thing going on in your mind right now :) – bashboy – 2013-07-26T20:50:35.690
Updated the answer. BTW, none of these programs you're referring to are "bash commands". They're separate programs that you can run via
bash
. Ubuntu would be a fine choice for experimenting. – jjlin – 2013-07-26T21:36:57.240