![]() ![]() WSL 2 is available in Windows 10, Version 1903, Build 18362 or higher. It also uses an actual Linux kernel inside a managed VM. WSL 2 increases file system performance and adds full system call compatibility. This command can also install additional distributions at any given time.Īfter the console window successfully installs the distribution, it will prompt you to enter a new UNIX username and password.Īfter providing that info, the installation process is complete! □ Ubuntu successfully installed Changing the Default Version Then, it's just a matter of typing wsl -install -d to install the required distribution. If you prefer working with another Linux distribution (such as Debian or Kali), you can get the full list of options by typing wsl -list -online. Per distribution? Yes, you can install multiple Linux distributions! Read on. This may take a while, but it will only happen once. ![]() WSL successfully installedĪfter restarting your Windows machine, a new console window will open to complete the installation. This simple command will install everything you need: it will enable the required optional components, download the latest Linux kernel, set WSL 2 as your default version, and install a Linux distribution (which, by default, is Ubuntu). Now, type the following command: wsl -install Running Windows Powershell as Administrator Once you confirm your machine is eligible, you will need to run Windows Powershell or Command Prompt as an administrator (by right-clicking or selecting the desired option on the right). It's very likely that you are already running a compatible version, but you can quickly confirm this by pressing ⊞ + R and typing "winver". In order to install it, you will need to be running Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11. Here's everything we will cover in this article: Then, we will also configure Git for version control. The best part? You can install WSL on most Windows machines and the entire process shouldn't take more than five minutes. Programmers that enjoy working on Windows can now run a GNU/Linux environment in all its glory (including common CLI tools and frameworks like Ruby or Python) without the performance hit of installing full-blown virtual machines or the hassle of running a dual-boot setup. You can get a full list of commands and their descriptions by running gh help.The Windows Subsystem for Linux brought the best of both worlds to developers. This is not an exhaustive list of all available commands, but these are some of the most commonly used ones. Gh workflow run : Manually trigger a workflow in the current repository with optional ref. Gh workflow view : View details of a workflow in the current repository. Gh workflow list: List the workflows in the current repository. Gh issue view : View an issue in the browser. Gh issue list : List issues in the current repository with optional filters. Gh issue create: Create a new issue in the current repository. Gh pr merge : Merge a pull request with optional merge method. ![]() Gh pr view : View a pull request in the browser. Gh pr checkout : Check out the branch for the given pull request number. Gh pr create: Create a new pull request in the current repository. Gh repo delete : Delete a GitHub repository with optional confirmation. Gh repo fork : Fork a GitHub repository to your account with optional cloning or custom remote name. Gh repo view : View a GitHub repository in the browser. Gh repo clone : Clone a GitHub repository locally with optional Git clone arguments. Gh repo create : Create a new GitHub repository with the given name and visibility. Gh config set prompt : Customize the shell prompt for GitHub CLI. Gh config set editor : Set your preferred text editor for Git commands. Gh auth login: Authenticate to GitHub with your credentials. Sudo apt-get install -reinstall ca-certificates -y & Sudo apt upgrade -y & sudo apt update -y & sudo apt autoremove -y & ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |