Is it possible to use linux commands in windows command promt..?
Community Answers
1
3-4-11
Eldho George says:
Yes a number of ways are available for this.
You can use Cygwin for this..
Cygwin is an excellent tool that can be install in your windows machine and you can run linux commands from either windows console or Cygwin API.
Cygwin is a little heavy tool because it need to configuring and building most of the available GNU software for UNIX calls.
CoreUtils is an excellent replacement for Cygwin.
CoreUtils is a collection of basic file, shell and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every OS.
When I talk about File utilities, they include chgrp, chmod, cp, dd, du, ln, ls, mkdir, mv, rm, touch, vdir among others. A sample of the text utilities include cat, cksum, cut, join, md5sum, shasum, sort, split etc.
The shell root commands include echo, chroot, hostname, nice, pathchk, tty, who, whoami and yes su.
Once installed, you will need to add the path to the utilities to your PATH environment variable. Follow the steps below to achieve this
1. Click on Start –> Run and enter sysdm.cpl to bring up the system properties Dialog
2. Click on the Advanced tab –> Environment variables button
3. In the System Variables pane, scroll down to Path and then click on edit.
4. Under Edit System Variable, in the variable value, at the end of the line , type the following including the semicolon which separates the individual elements in the path variable. ;C:\Program Files\GnuWin32\bin
Thats all…. Now you can use windows command prompt as a linux console…………..
Yes a number of ways are available for this.
You can use Cygwin for this..
Cygwin is an excellent tool that can be install in your windows machine and you can run linux commands from either windows console or Cygwin API.
Cygwin is a little heavy tool because it need to configuring and building most of the available GNU software for UNIX calls.
CoreUtils is an excellent replacement for Cygwin.
CoreUtils is a collection of basic file, shell and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every OS.
When I talk about File utilities, they include chgrp, chmod, cp, dd, du, ln, ls, mkdir, mv, rm, touch, vdir among others. A sample of the text utilities include cat, cksum, cut, join, md5sum, shasum, sort, split etc.
The shell root commands include echo, chroot, hostname, nice, pathchk, tty, who, whoami and yes su.
Once installed, you will need to add the path to the utilities to your PATH environment variable. Follow the steps below to achieve this
1. Click on Start –> Run and enter sysdm.cpl to bring up the system properties Dialog
2. Click on the Advanced tab –> Environment variables button
3. In the System Variables pane, scroll down to Path and then click on edit.
4. Under Edit System Variable, in the variable value, at the end of the line , type the following including the semicolon which separates the individual elements in the path variable. ;C:\Program Files\GnuWin32\bin
Thats all…. Now you can use windows command prompt as a linux console…………..
Was this answer helpful?
LikeDislike