【Linux】mount命令介绍及其使用

来源:互联网 发布:php 互换数组里面的值 编辑:程序博客网 时间:2024/05/01 14:09

一、 mount命令简介


命令格式: mount [-t vfstype] [-o options] device dir1. -t vfstype 指定文件系统的类型,通常不必指定2. -o options 主要用来描述设备或档案的挂接方式3. device 要挂接(mount)的设备4. dir设备在系统上的挂接点(mount point)


二、window共享文件挂载到linux的方法


  • 在window上,任意一个磁盘上,建立一个共享文件夹share
  • 在linux上,建立挂载点
[root@f8s test]# mkdir winpoint
  • 执行以下命令,进行挂载
   [root@f8s test]# mount  -o username=lie,password=123456 //192.168.1.101/share /home/lizj/test/winpoint/    说明: username和password是ip地址为192.168.1.101的计算机的用户名和密码    
  • 验证:在文件夹winpoint上建立文件test.txt,在window上,查看文件夹share,是否生成了对应的文件

0 0