"Late-night Rush, WIN10 Linux subsystem bash"

Source: Internet
Author: User

"Programmer under Windows, you really need to learn Linux"

Manual: Linux Command Manual (Troy version 2.0)

Link: Https://pan.baidu.com/s/1skrVSvV Password: tmf2

A bash manual is included:

Shell Programming Manual. CHM

Baidu Network disk: Http://pan.baidu.com/s/1dFI1UOL

-----------------------------cut----------------------------------------------.

Aside

Not to mention the power and merits of bash. We go directly to the Climax section.

WIN10 14316 Internal preview version.

Later versions of this version of WIN10 support the hosting of Ubuntu Linux in a Windows system, running the current Windows system as a subsystem for this Linux.

The equivalent of running two systems ....

Use native Linux bash tools to manage Windows files (not for interacting with the win program). Run bash under the command line to run support for the SH script.

Reference: Http://www.linuxidc.com/Linux/2016-04/130016.htm?mType=Group

Download and install the Linux system from the store.

Basic steps:

After the reboot is complete, enter the command-line program, the exciting moment is coming, the command line bash, will prompt you whether to continue, choose Yes, the system will install Ubuntu file system waiting to complete, the system will switch to your familiar Linux bash mode, try your familiar with the LS and other commands.

Note: The installation process is slightly slower ... The wall is too high to prevent you from knowing. Just be patient and wait ........

You can then go to the command line to bash the operation.

Here is my demonstration:

Remember: Enable bash mode to mount Windows as a subsystem of Linux on a Linux system.

All Windows files are mounted to the Linux/mnt/below the drive letter. If the C drive corresponds to a/mnt/c

Demo SH script:

1 #! /bin/bash2 cd/mnt/D3echo'ind'4 mkdir aaaaaaaa 5 Echo ' Success!!!!!!!!!! '


Execute command: bash/mnt/d/sh/a.sh

Report:

Install the Ubuntu subsystem installation file path:

%localappdata%\lxss
%localappdata%\lxss\rootfs

Enter the above command in the start-to-run to enter the corresponding installation directory!

"Late-night Rush, WIN10 Linux subsystem bash"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.