Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the ways to run Linux commands in Windows

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces how to run the Linux command in Windows. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.

1. Use Linux Bash Shell on Windows 10

Did you know that you can run Linux distributions in Windows 10? Windows's Linux subsystem (WSL) allows you to run Linux in Windows. The upcoming version of WSL will use the real Linux kernel inside Windows.

This WSL, also known as Bash on Windows, runs as a regular Windows application and provides a Linux distribution in command-line mode. Don't be afraid of command-line mode, because your goal is to run Linux commands. That's all you need.

Ubuntu Linux inside Windows

You can find some popular Linux distributions such as Ubuntu, Kali Linux, openSUSE, etc., in the Windows App Store. You just need to download and install it like any other Windows application. After installation, you can run all the Linux commands you need.

Linux distributions in Windows 10 Store

Please refer to the tutorial: installing Linux bash shell on Windows.

2. Run the Bash command on Windows using Git Bash

You might know what Git is. It is a version control system developed by Linus Torvalds, the creator of Linux.

Git for Windows is a set of tools that allow you to use Git from 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 the Git command, Git Bash supports many Bash programs, such as ssh, scp, cat, find, and so on.

Git Bash

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 to install Git Bash in Windows.

Download Git for Windows

3. Use Cygwin to use the Linux command in Windows

If you want to run the Linux command in Windows, Cygwin is a recommended tool. Cygwin was founded in 1995 to provide a POSIX-compatible environment that runs natively in Windows. Cygwin is free and open source software maintained by Red Hat employees and many other volunteers.

For two decades, Windows users have used Cygwin to run and practice Linux/Bash commands. More than a decade ago, I even used Cygwin to learn Linux commands.

Cygwin

You can download Cygwin from the official website below. I also suggest you refer to this Cygwin memo to get started.

Download Cygwin

4. Use Linux in a virtual machine

Another way is to use virtualization software and install Linux in it. In this way, you can install the Linux distribution (with a graphical interface) in Windows and run it like a regular Windows application.

This approach requires your system to have a lot of memory, at least 4GB, but it's better if you have more memory than 8GB. The advantage here is that you can actually use desktop Linux. If you like this interface, you may decide to switch to Linux later.

Ubuntu Running in Virtual Machine Inside Windows

There are two popular tools to create virtual machines on Windows, Oracle VirtualBox and VMware Workstation Player. You can use either of the two. Personally, I prefer VirtualBox.

This is the end of the way to run Linux commands in Windows. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report