Home>Article>Operation and Maintenance> How to share folders in linux

How to share folders in linux

藏色散人
藏色散人 Original
2023-01-04 11:14:39 8783browse

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.

How to share folders in linux

The operating environment of this tutorial: Ubuntu16.04 system, Dell G3 computer.

How to share folders in Linux?

Linux system settings shared folder

1. Setting principle

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.

2. Setup steps

1. Install samba

The command is as follows:

1.sudo apt-get install samba 2.whereis samba //查看samba是否安装成功,安装成功会显示库路径,失败则不显示路径。

2. Create and set up a shared folder

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.

How to share folders in linux

After setting the above three properties, the folder urd360 can truly have the file sharing function.


3. Test

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:
How to share folders in linux

How to share folders in linux

How to share folders in linux

## 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn