Several methods of running Linux commands in Windows system

  Want to use Linux commands, but don't want to leave Windows? The following are several ways to run Linux bash commands in Windows.

  1. Use Git Bash to run Bash commands on Windows
  Git is a version control system developed by Linux creator Linus Torvalds. Git for Windows is a set of tools that allows you to use Git on the command line and graphical interface. One of the tools included in Git for Windows is Git Bash.
  Git Bash provides an emulation layer for the Git command line. In addition to Git commands, Git Bash also supports many Bash programs, such as ssh, scp, cat, find, etc.
Insert picture description here
  In other words, you can use Git Bash to run many common Linux/Bash commands.
  You can download and install the Git for Windows tool for free from its website, and install Git Bash in Windows.

   2. Using Cygwin to use Linux commands
  in Windows If you want to run Linux commands in Windows, Cygwin is a recommended tool. Cygwin was created in 1995 to provide a POSIX compatible environment that runs natively on Windows. Cygwin is a free and open source software maintained by Red Hat employees and many other volunteers. You can download Cygwin from the official website: https://www.cygwin.com/ .

   3.
  Another way to use Linux in a virtual machine is to use virtualization software and install Linux in it. In this way, you can install a Linux distribution (with a graphical interface) in Windows and run it like a regular Windows application.
  This method requires your system to have a large memory, at least 4GB, but it is better if you have more than 8GB of memory. The advantage here is that you can actually use desktop Linux.
  There are two popular tools for creating virtual machines on Windows. They are Oracle VirtualBox and VMware Workstation Player. You can use either of the two.

  4. Several other Windows command-line tools
  use other Windows command-line tools, you can also achieve the purpose of running Linux commands under the windows system, such as: powercmd, powershell, Consolez, babun, etc. For specific usage, please refer to https://www.cnblogs.com/onelikeone/p/10716424.html . Because I have only used Git Bash, I no longer describe the experience of various tools.

  Blog reference article:
  https://linux.cn/article-10935-1.html?pr
  https://www.cnblogs.com/onelikeone/p/10716424.html

Guess you like

Origin blog.csdn.net/piaoranyuji/article/details/107564823
Recommended