Home > Article > Operation and Maintenance > How to share folders in linux
How to set up a Linux shared folder: 1. Install samba through the "sudo apt-get install samba" command; 2. Create a folder named urd360 through the "mkdir urd360" command; 3. Click Right-click the folder, select Properties, and set the sharing properties.
The operating environment of this tutorial: Ubuntu16.04 system, Dell G3 computer.
How to share folders in Linux?
Linux system settings shared folder
Based on Ubuntu16.04 , use the online installation method of the samba library to set up the shared folder (of course, you can also download the offline installation package samba and install it using the offline installation method) to achieve file sharing with the Windows system.
The command is as follows:
1.sudo apt-get install samba 2.whereis samba //查看samba是否安装成功,安装成功会显示库路径,失败则不显示路径。
The command is as follows:
mkdir urd360 //该命令在/home/bekl下创建了一个名为 urd360的文件夹
After creating the folder,Click on the folder, right-click and select properties, set three properties:
Share this folder;
Allow others Create or delete files in this folder;
Allows guest access, no user account required.
After setting the above three properties, the folder urd360 can truly have the file sharing function.
Type the IP address of the Linux machine in the Windows system. If the shared folder is successfully set up on the Linux machine, create a file between the two systems. , all can be synchronized, the actual effect is as follows:
## Recommended study: "Linux Video Tutorial"
The above is the detailed content of How to share folders in linux. For more information, please follow other related articles on the PHP Chinese website!