Posted on Jan 20, 2019
The blog shows the guide to setup Linux subsystem in Window 10.
$ ls
command, there is nothing here.$ cd /
then $ ls
we can see the root of subsystem. mnt is the C folder of Windowcd mnt
- $ ls
- $ cd C
now we are working on C folder of window/mnt/c/users/ngoct/Projects
we do $ sudo apt update
to avoid data corruption if we work on the folder in linux subsystem inside window folder.$ sudo apt upgrade
.Install
tamlam@DESKTOP:/mnt/c/Users/ngoct/Projects/coder$ code.
$ touch main.cpp
Setting
$ gcc main.cpp -lstdc++ -o main.o
then
$ ./main.o
in the Terminal on VSCode