First experience using linux subsystem under windows

1. Due to limited space, dual systems are not installed, and the Linux subsystem is tried out.

windows environment: windows1803.

Linux installation method, under version 1803, you can directly go to the application store to download Linux.

0. The installation directory of the linux subsystem

C:\Users\你的用户名\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs

Installed linux system information:

1. Kernel:

uname -a

Linux DESKTOP-VNJFA7T 4.4.0-17134-Microsoft #471-Microsoft Fri Dec 07 20:04:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux

2. Version information:

cat /proc/version

Linux version 4.4.0-17134-Microsoft ([email protected]) (gcc version 5.4.0 (GCC) ) #471-Microsoft Fri Dec 07 20:04:00 PST 2018

3. Current operating system release version information

cat /etc/issue

Ubuntu 18.04.1 LTS \n \l

4. cpu information

cat /proc/cpuinfo

5. Check whether the current CPU is 32bit or 64bit

getconf LONG_BIT

 

2. Access other disks in the system

The windows disk is mounted to the /mnt directory, and you can usually access other disks, such as the d drive.

cd /mnt/d

3. Unzip the files

Unzip the tar.gz file

tar -zxvf XXXX.tar.gz

Unzip to the specified folder

tar -zxvf XXXX.tar.gz  -C /usr/java

Unzip the .gz file

 gzip -b XXXX.gz

Unzip the tgz file

解压到当前文件夹:
输入:tar zxvf  文件名.tgz -C ./     比如我的是:tar zxvf simple-examples.tgz -C ./

解压到指定文件夹下:
输入:tar  zxvf  文件名.tgz  -C /指定路径

 

Guess you like

Origin blog.csdn.net/bailixuance/article/details/85450910