How to associate files in Windows with files in Ubuntu

Source: Internet
Author: User

We know that programmers who often develop code under Windows will feel uncomfortable writing code under Linux (if they are very familiar with VI and GDB, let alone others ), however, some programs must compile and generate executable files in Linux, so some writers will talk about it. I can program vs in windows, and then the code is automatically updated to the project under Ubuntu, in this way, Windows programmers can undoubtedly improve their work efficiency. Next, we will introduce how to associate the source files under Windows to Ubuntu. When either side changes, the other side also changes accordingly.

 

1. Open the vmwarevm (I use VMware. This function should be available if virtual box is used)

 

2. There is a powered on green triangle button in the left column. Ubuntu is displayed under this button. Right-click Ubuntu and choose settings. A setting panel is displayed.

 

3. Set the two tabs "hardware" and "option" on the top of the Panel. Click the "option" tab and select "Shared Folders". Then, the corresponding information appears on the right, select the middle among the three radio buttons on the right-> always enabled

 

4. There is an add button below, and then click, select the directory under Windows that you want to associate, and finish. In this step, we have joined the files under the window to Ubuntu. (A copy of a Windows file is generated under Ubuntu)

 

5. Some may ask where the copy is stored in Ubuntu. After all, I will continue to explain where the related items are stored in Ubuntu.

 

6. Open Ubuntu and find a folder named MNT in the file system. Open this folder and you will find that there is a file directory identical to that under windows.

 

7. Many people have come to understand what is going on here. But some people may say that I don't want to put the associated file into the system file, and I want to put it in my own directory, which is also very easy to do. It can be done easily with commands under Linux. Terminal. Use the ln command. The usage is as follows:

Ln-S/mnt/HGFS // home/your own directory

 

Now you can go to your own directory and check that there is a copy of the files under windows.

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.