Can Windows use a Linux shell instead of cmd?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Switch On Looping
--
Chapters
00:00 Can Windows Use A Linux Shell Instead Of Cmd?
00:21 Accepted Answer Score 23
00:59 Answer 2 Score 18
01:16 Answer 3 Score 5
01:42 Answer 4 Score 3
02:28 Answer 5 Score 2
02:41 Thank you
--
Full question
https://superuser.com/questions/278185/c...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #linux
#avk47
ACCEPTED ANSWER
Score 23
As well as Cygwin which @ChrisF has mentioned, you can also install a collection of tools ported from Unix that run in a normal Windows environment. Two such examples:
This enables you to be in a Command Prompt and use commands such as grep
, ls
, awk
and so on. Once you've put the extracted folder in your environment path, the experience of using them is pretty seamless and blends in well:
ANSWER 2
Score 18
Take a look at Cygwin. It's
a collection of tools which provide a Linux look and feel environment for Windows.
(taken from their home page).
ANSWER 3
Score 5
Running Cygwin will install a number of familiar linux shells like bash and tcsh, and allow you to run the shells in Windows, but also run Linux applications directly from the Windows command line.
Make sure that all the /bin/
directories installed in Cygwin are in your Windows PATH variable, and you can have the hybrid Windows/Linux experience from Windows. Even ls
.
ANSWER 4
Score 3
MSYS is a set of GNU tools for Windows, the installer can be found here. (install only MSYS, not MinGW)
Then you'll have to add MSYS tools to your PATH variable: run systempropertiesadvanced
from the Run window (Win+R), click Environment variables and find Path variable in the lower box, add a semicolon and MSYS's path (default is C:\MinGW\msys\1.0\bin
).
It's also nice to have bash on Windows, so you should consider adding C:\MinGW\msys\1.0
too (bash will be launched by command msys
, not bash
!). Changes will be fully applied after relogging.
Additional tools like vim can be easily googled and added in a similar manner.
ANSWER 5
Score 2
Another opportunity is to use the WSL - Windows Subsystem for Linux. A native bash is provided.