OS/Linux
특정폴더 마운트 fstab
신군.
2018. 9. 30. 10:18
반응형
특정폴더 마운트
1. sudo mount -obind ~/github/python-lab/ htdocs/
2. sudo mount -o bind ~/github/python-lab/ htdocs/
둘다 동일하게 동작함
fstab 등록
A(source)폴더를 B(target)폴더로 마운트
# /etc/fstab: static file system information.
<file system>:source <mount point>:targer
/home/xbb123/github/python-lab /opt/lampstack-7.1.22-0/apache2/htdocs none bind 0 0
반응형