Several methods of communication with Linux file systems

First of all, we know several file based services: FTP and SFTP. These two services are file transmission services, which focus on network transmission rather than real-time mutual visits. Usually, we need to operate the same directory remotely and locally at the same time. For example, edit the code with various powerful ides under windows, and compile and run the code under Linux. If the code is written under windows and then copied to Linux for compilation, it is very troublesome to modify it directly under Linux and synchronize it back to windows. Of course, some people will say that all the work is done under Linux. The command line of VI and Linux is powerful enough and there is no reason to use Windows system. The focus of this paper is not to discuss the proficiency of command line and work efficiency

how to access remote files like accessing the local file system? What if the remote system is different from the local system

we know that between Windows systems, the remote system can be accessed directly by sharing directories. In fact, this is a remote file system mechanism provided by windows, a kind of NAS protocol – CIFS protocol. If it is a Linux system, there is another NAS protocol – NFS protocol to realize remote access. So can these two NAS protocols interoperate? The answer is No. The Linux server and the Linux server can share with each other through the CIFS protocol. However, the above two systems can not share with each other

on the contrary, is there an NFS client or server on windows? Yes, but it’s not often used. I won’t introduce it in detail here

this paper mainly focuses on how to realize cross file system and cross operating system sharing between the two systems by using CIFS protocol on Linux. According to the above description, there are two ways to realize sharing. Linux serves as the server and client of CIFS respectively. The following are the five most valuable steps for Linux users to share software: . Its acquisition method is very easy, and its configuration and use are also very simple. Let’s take Fedora system as an example to see if Samba has been installed locally. If / etc / init If the D / SMB file exists, samba software has been installed. Otherwise, use the following command to install it:

Yum install Samba

after the installation is completed, modify the configuration file and open: / etc / Samba / SMB Conf, add the following configuration at the end of the file:

[root]
comment root
path /
create mask 64
writeable yes
browseable yes
valid users root