{"id":294959,"date":"2019-11-21T09:00:25","date_gmt":"2019-11-21T09:00:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=294959"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=294959","title":{"rendered":"\u041a\u0440\u0443\u0442\u044b\u0435 \u043b\u0430\u0439\u0444\u0445\u0430\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 WSL (\u041f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0430 Windows \u0434\u043b\u044f Linux )"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/microsoft\/blog\/476026\/\">\u042f \u0433\u043b\u0443\u0431\u043e\u043a\u043e \u043f\u043e\u0433\u0440\u0443\u0436\u0435\u043d \u0432 WSL (Windows Subsystem \u0434\u043b\u044f Linux), \u0438 \u0442\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430\u00a0<a href=\"https:\/\/www.hanselman.com\/blog\/RubyOnRailsOnWindowsIsNotJustPossibleItsFabulousUsingWSL2AndVSCode.aspx\">WSL2<\/a>\u00a0\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u00a0<a href=\"https:\/\/insider.windows.com\/\">Windows Insiders<\/a>, \u044d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0447\u0442\u043e\u0431\u044b \u043f\u043e-\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c\u0443 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043e\u043f\u0446\u0438\u0438. \u041e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0444\u0438\u0447\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u043d\u0430\u0448\u0435\u043b \u0432 WSL, \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u00ab\u0447\u0438\u0441\u0442\u043e\u00bb \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0436\u0434\u0443 \u043c\u0438\u0440\u0430\u043c\u0438. \u042d\u0442\u043e \u043d\u0435 \u0442\u043e\u0442 \u043e\u043f\u044b\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043b\u0435\u0433\u043a\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438, \u0438 \u043e\u043d \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u0435\u0441\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 Linux \u0438 Windows.<\/p>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0432\u0435\u0449\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c, \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u044f \u0430\u0440\u0430\u0445\u0438\u0441\u043e\u0432\u043e\u0435 \u043c\u0430\u0441\u043b\u043e \u0438 \u0448\u043e\u043a\u043e\u043b\u0430\u0434!<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tz\/-o\/2-\/tz-o2-dh6mwb-vxgxwxeu_0ezha.png\"><a name=\"habracut\"><\/a><\/p>\n<h2>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 Windows Explorer \u0438\u0437 Linux \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0432\u0430\u0448\u0435\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430<\/h2>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0435\u0441\u044c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 WSL \/ bash \u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0432\u043e\u0438\u043c \u0444\u0430\u0439\u043b\u0430\u043c, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u00abexplorer.exe .\u00bb, \u0433\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043e\u043a\u043d\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0430 Windows, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u0430\u0448\u0438 \u0444\u0430\u0439\u043b\u044b Linux \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432\u0430\u043c \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0435\u0440 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 plan9.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/092\/06c\/661\/09206c661b78c50d8a27730c51784d98.png\"><\/p>\n<h2>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b Linux (\u043d\u0435 CGYWIN) \u0438\u0437 Windows<\/h2>\n<p>  \u042f \u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b \u043e\u0431 \u044d\u0442\u043e\u043c \u0440\u0430\u043d\u044c\u0448\u0435, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u0442\u044c \u0430\u043b\u0438\u0430\u0441\u044b \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 PowerShell, <a href=\"https:\/\/www.hanselman.com\/blog\/AWonderfullyUnholyAllianceRealLinuxCommandsForPowerShellWithWSLFunctionWrappers.aspx\">\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b Linux<\/a>\u00a0\u0438\u0437\u043d\u0443\u0442\u0440\u0438 Windows.<\/p>\n<p>  \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 Linux \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0438\u0437 DOS\/Windows\/\u0447\u0435\u0433\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0432 \u0435\u0435 \u043f\u043e\u0441\u043b\u0435 WSL.exe, \u0432\u043e\u0442 \u0442\u0430\u043a.<\/p>\n<pre><code class=\"plaintext\">C:\\temp&gt; wsl ls -la | findstr \"foo\" -rwxrwxrwx 1 root root     14 Sep 27 14:26 foo.bat  C:\\temp&gt; dir | wsl grep foo 09\/27\/2016  02:26 PM                14 foo.bat  C:\\temp&gt; wsl ls -la &gt; out.txt  C:\\temp&gt; wsl ls -la \/proc\/cpuinfo -r--r--r-- 1 root root 0 Sep 28 11:28 \/proc\/cpuinfo  C:\\temp&gt; wsl ls -la \"\/mnt\/c\/Program Files\" ...contents of C:\\Program Files...<\/code><\/pre>\n<p>  \u0418\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b Windows \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\/\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u0437 WSL\/Linux, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0443\u0442\u044c \u043a Windows \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 $PATH \u0434\u043e Windows. \u0412\u0441\u0435, \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u044d\u0442\u043e \u044f\u0432\u043d\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0441 .exe \u0432 \u043a\u043e\u043d\u0446\u0435. \u0412\u043e\u0442 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u00abExplorer.exe.\u00bb. \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c notepad.exe \u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0430\u0439\u043b.<\/p>\n<h2>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 Visual Studio Code \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0430\u0448\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c Linux \u043d\u0430\u0442\u0438\u0432\u043d\u043e \u043d\u0430 Windows<\/h2>\n<p>  \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u00abcode.\u00bb, \u043d\u0430\u0445\u043e\u0434\u044f\u0441\u044c \u0432 \u043f\u0430\u043f\u043a\u0435 \u0432 WSL, \u0438 \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u00a0<a href=\"https:\/\/code.visualstudio.com\/blogs\/2019\/09\/03\/wsl2?WT.mc_id=-blog-scottha\">\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f VS Remote.<\/a>. \u042d\u0442\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442 Visual Studio Code \u043f\u043e\u043f\u043e\u043b\u0430\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u00abheadless\u00bb VS Code Server \u0432 Linux \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c VS Code \u0432 \u043c\u0438\u0440\u0435 Windows.<\/p>\n<p>  \u0412\u0430\u043c \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u00a0<a href=\"https:\/\/code.visualstudio.com\/download?WT.mc_id=-blog-scottha\">Visual Studio Code<\/a>\u00a0\u0438 <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-vscode-remote.remote-wsl&amp;WT.mc_id=-blog-scottha\">\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 Remote \u2014 WSL<\/a>. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435\u00a0<a href=\"https:\/\/www.microsoft.com\/p\/windows-terminal-preview\/9n0dx20hk701?WT.mc_id=-blog-scottha\">\u0431\u0435\u0442\u0430-\u0432\u0435\u0440\u0441\u0438\u044e Windows Terminal<\/a>\u00a0\u0434\u043b\u044f \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u043e\u043c \u0432 Windows.<\/p>\n<p>  \u0412\u043e\u0442 \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u043f\u043e\u0434\u0431\u043e\u0440\u043a\u0430 \u0441\u0442\u0430\u0442\u0435\u0439 \u0438\u0437 \u0431\u043b\u043e\u0433\u0430 Windows Command Line.<\/p>\n<ul>\n<li>\u0427\u0430\u0441\u0442\u044c 1\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/commandline\/take-your-linux-development-experience-in-windows-to-the-next-level-with-wsl-and-visual-studio-code-remote\/?WT.mc_id=-blog-scottha\">\u041f\u043e\u0434\u043d\u0438\u043c\u0438\u0442\u0435 \u043e\u043f\u044b\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 Linux \u043f\u043e\u0434 Windows \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e WSL \u0438 Visual Studio Code Remote.<\/a><\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 2\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/commandline\/an-in-depth-tutorial-on-linux-development-on-windows-with-wsl-and-visual-studio-code\/?WT.mc_id=-blog-scottha\">\u0423\u0433\u043b\u0443\u0431\u043b\u0435\u043d\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 Linux \u0434\u043b\u044f Windows \u0441 WSL \u0438 Visual Studio Code<\/a><\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 3\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/commandline\/tips-and-tricks-for-linux-development-with-wsl-and-visual-studio-code\/?WT.mc_id=-blog-scottha\">\u0421\u043e\u0432\u0435\u0442\u044b \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 Linux \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c WSL \u0438 Visual Studio Code<\/a><\/li>\n<\/ul>\n<p>  \u0412\u043e\u0442 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 WSL 2<\/p>\n<ul>\n<li>\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0435\u043c\u043a\u0438\u043c\u0438 \u0438 \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 \u043e\u043f\u044b\u0442.<\/li>\n<li>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 WSL \u0431\u044b\u043b \u043e\u0447\u0435\u043d\u044c \u00ab\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c\u00bb, \u043d\u043e \u0438\u043c\u0435\u043b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0438\u0437\u043a\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 VM.<\/li>\n<li>WSL 2 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0441 \u043e\u0431\u043b\u0435\u0433\u0447\u0435\u043d\u043d\u044b\u043c\u0438 VM, \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e.<\/li>\n<\/ul>\n<p>  <\/p>\n<h2>\u0417\u0430\u043f\u0443\u0441\u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 Linux \u0432 \u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b<\/h2>\n<p>  \u0417\u0434\u0435\u0441\u044c \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u00abwsl &#8212;list &#8212;all\u00bb, \u0438 \u0432 \u043c\u043e\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0442\u0440\u0438 Linux.<\/p>\n<pre><code class=\"plaintext\">C:\\Users\\scott&gt;wsl --list --all Windows Subsystem for Linux Distributions: Ubuntu-18.04 (Default) Ubuntu-16.04 Pengwin<\/code><\/pre>\n<p>  \u042f \u043c\u043e\u0433\u0443 \u043b\u0435\u0433\u043a\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u0445, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u0438, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0432 \u043c\u043e\u0435\u043c Windows Terminal.<\/p>\n<h2>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 X Windows Server \u043f\u043e\u0434 Windows \u0441 Pengwin<\/h2>\n<p>  <a href=\"https:\/\/www.pengwin.dev\/\">Pengwin<\/a>\u00a0&#8212; \u044d\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 Linux-\u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 WSL, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0432\u00a0<a href=\"https:\/\/afflnk.microsoft.com\/c\/1291904\/433017\/7593?u=https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fp%2Fwlinux%2F9nv1gv1pxz6p&amp;WT.mc_id=-blog-scottha\">Windows Store<\/a>. \u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u0435 Pengwin \u0441 <a href=\"https:\/\/www.bing.com\/rebates\/welcome?url=https%3a%2f%2fwww.microsoft.com%2fen-us%2fp%2fx410%2f9nlp712zmn9q&amp;murl=http%3a%2f%2fclick.linksynergy.com%2fdeeplink%3fid%3dmsYS1Nvjv4c%26afsrc%3d1%26mid%3d24542%26murl%3dhttps%253a%252f%252fwww.microsoft.com%252fen-us%252fp%252fx410%252f9nlp712zmn9q%26u1%3d&amp;id=Microsoft&amp;ra=8%&amp;hash=1b8c84b51e92d8f9b2be366b93a65d2e093ee6ef2f98f699b82b26d8d905970b\">X Server, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 X410<\/a>,\u00a0\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u043b\u0430\u0441\u0441\u043d\u0443\u044e \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443.<\/p>\n<h2>\u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 WSL \u043c\u0435\u0436\u0434\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 Windows.<\/h2>\n<p>  <a href=\"https:\/\/twitter.com\/anaisbetts\/status\/1194386477855019008\">Ana Betts \u043e\u0442\u043c\u0435\u0447\u0430\u0435\u0442 \u044d\u0442\u0443 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0442\u0435\u0445\u043d\u0438\u043a\u0443<\/a>, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0441\u0432\u043e\u0439 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 WSL2 \u0441 \u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u043d\u0430 <i>n<\/i> \u043c\u0430\u0448\u0438\u043d.<\/p>\n<pre><code class=\"plaintext\">wsl --export MyDistro .\/distro.tar  # \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0435\u0433\u043e \u0433\u0434\u0435-\u043d\u0438\u0431\u0443\u0434\u044c, Dropbox, Onedrive, \u0433\u0434\u0435-\u0442\u043e \u0435\u0449\u0435  mkdir ~\/AppData\/Local\/MyDistro wsl --import MyDistro ~\/AppData\/Local\/MyDistro .\/distro.tar --version 2 <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 Linux, \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043d\u0430 \u0432\u0441\u0435\u0445 \u0432\u0430\u0448\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445.<\/p>\n<h2>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 Windows Git \u0432\u043d\u0443\u0442\u0440\u0438 WSL<\/h2>\n<p>  \u0412\u0441\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0444\u0438\u0447\u0438 \u043f\u0435\u0440\u0435\u0442\u043a\u0430\u044e\u0442 \u0432 \u043a\u0443\u043b\u044c\u043c\u0438\u043d\u0430\u0446\u0438\u044e\u00a0<a href=\"https:\/\/blog.anaisbetts.org\/using-github-credentials-in-wsl2\/\">\u0432 \u044d\u0442\u043e\u043c \u043a\u0440\u0443\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u043e\u0442 Ana Betts<\/a>, \u0433\u0434\u0435 \u043e\u043d\u0430 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442\u00a0<a href=\"https:\/\/blog.anaisbetts.org\/using-github-credentials-in-wsl2\/\">Windows Git Credential Provider \u0432 WSL<\/a>, \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044f \/usr\/bin\/git-credential-manager \u0432 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440 git creds Windows. \u0413\u0435\u043d\u0438\u0430\u043b\u044c\u043d\u043e. \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0447\u0438\u0441\u0442\u043e\u0439 \u0438 \u0442\u0435\u0441\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u041f\u0440\u043e\u0431\u0443\u0439\u0442\u0435, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0439\u0442\u0435 WSL,\u00a0<a href=\"https:\/\/www.hanselman.com\/blog\/HowToMakeAPrettyPromptInWindowsTerminalWithPowerlineNerdFontsCascadiaCodeWSLAndOhmyposh.aspx\">Windows Terminal<\/a>, \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435\u00a0<a href=\"https:\/\/www.hanselman.com\/blog\/SettingUpAShinyDevelopmentEnvironmentWithinLinuxOnWindows10.aspx\">\u0431\u043b\u0435\u0441\u0442\u044f\u0449\u0443\u044e \u0441\u0440\u0435\u0434\u0443 Linux \u043d\u0430 Windows.<\/a>.<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/microsoft\/blog\/476026\/\"> https:\/\/habr.com\/ru\/company\/microsoft\/blog\/476026\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/microsoft\/blog\/476026\/\">\u042f \u0433\u043b\u0443\u0431\u043e\u043a\u043e \u043f\u043e\u0433\u0440\u0443\u0436\u0435\u043d \u0432 WSL (Windows Subsystem \u0434\u043b\u044f Linux), \u0438 \u0442\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430\u00a0<a href=\"https:\/\/www.hanselman.com\/blog\/RubyOnRailsOnWindowsIsNotJustPossibleItsFabulousUsingWSL2AndVSCode.aspx\">WSL2<\/a>\u00a0\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u00a0<a href=\"https:\/\/insider.windows.com\/\">Windows Insiders<\/a>, \u044d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0447\u0442\u043e\u0431\u044b \u043f\u043e-\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c\u0443 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043e\u043f\u0446\u0438\u0438. \u041e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0444\u0438\u0447\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u043d\u0430\u0448\u0435\u043b \u0432 WSL, \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u00ab\u0447\u0438\u0441\u0442\u043e\u00bb \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0436\u0434\u0443 \u043c\u0438\u0440\u0430\u043c\u0438. \u042d\u0442\u043e \u043d\u0435 \u0442\u043e\u0442 \u043e\u043f\u044b\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043b\u0435\u0433\u043a\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438, \u0438 \u043e\u043d \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u0435\u0441\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 Linux \u0438 Windows.<\/p>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0432\u0435\u0449\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c, \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u044f \u0430\u0440\u0430\u0445\u0438\u0441\u043e\u0432\u043e\u0435 \u043c\u0430\u0441\u043b\u043e \u0438 \u0448\u043e\u043a\u043e\u043b\u0430\u0434!<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tz\/-o\/2-\/tz-o2-dh6mwb-vxgxwxeu_0ezha.png\"><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-294959","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=294959"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294959\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=294959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=294959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=294959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}