In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use the Linux Bash command in Windows10". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use the Linux Bash command in Windows10".
Now Windows 10 allows you to run a Bash shell with a special style (on Ubuntu) in the window. With Bash, you can browse the file system, install and run Linux command-line applications such as vi text editors, or try to load window programs with some unofficial adjustments.
The specific methods are as follows:
1. Users who do not install Bash can first select "developer Mode" in setting → updates and secure → for developers, and then download the "developer Mode package", as shown in the following figure.
But sometimes the package will not be downloaded successfully, as prompted by the following figure
2. There is no need to worry at this time. If the previous step does not go well, you can make up for it in the following steps. Enter the control panel → programs and functions → to enable or disable the Windows function, check "Windows Subsystem for Linux (Beta)", click "OK" and install it, as shown in the following figure.
3. Restart after installation, then open the command prompt and execute the following command to enable it (you can directly enter the Bash command in administrator mode to enable it):
4. If the installation of the first step is not smooth, you may need to download the required components from the store. Whether it is smooth or not depends on the network condition. The editor encounters the following "ghosts" in the test:
5. As can be seen from the above picture, the user is required to create a Unix account during the download and installation process, so to set the account password, the password text is not visible in the process of entering the password, and you need to enter it twice. You need to have a number in mind, and you can use it after the setting is successful.
6. The function command can be queried with bash-help. If you use it, add "bash" before it, for example:
Bash-debugbash-init-filebash-version
7. If you want to run the Linux command, you can use the following format (note the space between c and quotation marks, as shown above):
For example:
Bash-c "echo Hello from xitongzhijia" bash-c "ls / mnt/c" bash-c "lsb_release-a" thank you for reading, the above is the content of "how to use Linux Bash commands in Windows10". After the study of this article, I believe you have a deeper understanding of how to use Linux Bash commands in Windows10, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.