mount --bind //此命令可以把目录挂载到其他目录,有镜像功能,会占用两份同样大小的空间,当你umount的时候,所作的镜像会立马消失.
$ls
ftp tools
$cd ftp
$mkdir /home/ftp/tools
$cd tools
$pwd
/home/ftp/tools
$mount --bind /home/tools /home/ftp/tools
mount --bind //此命令可以把目录挂载到其他目录,有镜像功能,会占用两份同样大小的空间,当你umount的时候,所作的镜像会立马消失.
$ls
ftp tools
$cd ftp
$mkdir /home/ftp/tools
$cd tools
$pwd
/home/ftp/tools
$mount --bind /home/tools /home/ftp/tools
Linux 磁盘管理命令fdisk:磁盘分区 mount:挂载文件系统
在Linux中一切皆文件,这些文件按照一定的规则存放在不同的目录当中。为了能够快速找到文件及以后的操作的规范性,我们必须记清楚Linux的目录结构。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M