This method is useful in learning and work. The method is as follows:
1. First share the windows system folder
2. in linux, use the following command to mount shared folders.
Mount-t cifs // 192.168.1.102/studyshare/mnt-o username = chocolee
Cifs is a file system.
192.168.1.102 is the IP address of the WIN host.
Studyshare is the name of the shared folder.
Mnt is the mount point
Username = user of the chocolee win system, WHO has permissions on this shared folder!
Note:
[Root @ CentOS6 ~] # Mount-t cifs // 192.168.1.102/studyshare/mnt-o username = chocolee
Password:
[Root @ CentOS6 ~] #
After you press the command, you will be asked to enter the chocolee password. If no error is reported, it will basically prove that the mounting is successful.
[Root @ CentOS6 ~] # Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/sda3 12G 2.4G 8.3G 23%/
Tmpfs 181 M 0 181 M 0%/dev/shm
/Dev/sda1 194 M 28 M 156 M 16%/boot
// 192.168.1.102/studyshare
98G, 31G, 68G, 32%/mnt
3. Test
Create a test file on linux:
[Root @ CentOS6 ~] # Cd/mnt/
[Root @ CentOS6 mnt] # touch test. sh # create a test file
[Root @ CentOS6 mnt] # ll
Total 0
-Rwxr-xr-x 1 root 0 Mar 18 00:51 test. sh
View on win system:
OK, success ~~~ I hope it will help you in your study!
This article is from the Chocolee blog, please be sure to keep this source http://chocolee.blog.51cto.com/8158455/1378369