티스토리 뷰

Tool

shared-folder-in-windows-subsystem-for-linux

BaeMinCheon 2019. 2. 16. 15:47

shared-folder-in-windows-subsystem-for-linux

  • this post covers how to share a folder(including files) in WSL
  • environment
    • Windows 10 / Home
    • WSL / Ubuntu 18.04 LTS
    • Visual Studio Code

pre-task

  • install WSL in your Windows 10
    • open the Microsoft Store
    • search for Ubuntu
    • click Ubuntu 18.04 LTS
    • get and install it
  • prepare the environment
    • initialize your WSL


  • make a folder in some directory on Windows
    • ex) D:\Code\LinuxShare

  • make a link in some directory on WSL
    • format) ln -s /mnt/[partition]/[folder...] [link-name]
    • ex) ln -s /mnt/d/Code/LinuxShare share-with-windows

make-file

  • make a text file on Windows side
    • ex) D:\Code\LinuxShare\test.txt

  • check out the text file on WSL side
    • ex) ~/share-with-windows/test.txt


  • edit the text file and save it on WSL side
    • ex) hello WSL ! → hello Windows !

  • check out the text file on Windows side

typing-and-compiling


  • make a c file and edit it on Windows side
    • ex) D:\Code\LinuxShare\test.c

  • compile the c file and execute it
    • ex) ~/share-with-windows/test.c
  • you can now type texts on Windows and compile that on WSL

  • also output file, a.out will be seen on Windows side


'Tool' 카테고리의 다른 글

google-remote-desktop  (0) 2019.03.30
get-profile-picture-on-slack  (0) 2019.01.06
ATOM으로 필기를 해보자 #03  (0) 2018.07.08
ATOM으로 필기를 해보자 #02  (0) 2018.06.30
ATOM으로 필기를 해보자 #01  (0) 2018.05.01
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함