In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you the right-click menu to open the WSL function, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Install the Linux subsystem (WSL) on the win10 system, but it is very inconvenient to use. The disk connection with windows requires the use of cd / mnt. In the Ubuntu system, there is such a function: after right click, Open in Terminal appears directly, and you can open the current directory in Bash instead of using cd for half a day, which is very convenient.
(photo source: Zhihu) We can also implement this feature in WSL. Next, we will describe how to do this in detail:
Step1: find the location where Ubuntu is installed
Open Xiao Na, search for ubuntu, right-click ubuntu in the command column > Open the location of the file. Find its location, C:\ Program Files\ WindowsApps\ CanonicalGroupLimited.UbuntuonWindows_ (a random character)\ ubuntu.exe (a random character needs to be modified according to your computer,\ ubuntu.exe needs to be added manually)
Step2: setting up Registry Editor
First, press windows and R at the same time, type regedit and run, and navigate to HKEY_CLASSES_ROOT\ Directory\ Background\ shell. Right-click the new item in this directory, and the string value in this item defines the text and icon displayed in the right-click menu. Turn on the default icon and enter numeric data, which is the text content that we right-click to display, such as Bash Here, etc.
Then right-click in the item to create a string value, rename it to Icon, double-click to open it, and paste the location of our ubuntu into the numeric data to define the icon to be displayed.
Then we will add the command executed on click and create the item command in the item we just created
Open the command item you just created, and the default value is the command to be executed. Write to the position you just added to the Icon (with double quotation marks on both sides), followed by the parameter run. Something like this:
"C:\ Program Files\ WindowsApps\ CanonicalGroupLimited.UbuntuonWindows_
(a random character)\ ubuntu.exe "run
Then we can successfully right-click to open WSL anywhere, and use the linux command in the Windows system at will. For specific usage, please see [Shengxin Notes] PPT Courseware | installation and basic usage of Linux system
The above content is the right-click menu to open the WSL function, have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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
Material and Resource Transactions With Error Code CST_INVALID_WIP because of missing record in WIP_
© 2024 shulou.com SLNews company. All rights reserved.