(base) MacBookPro yokoyamanaonori ~/centos7 $ vagrant relord Usage: vagrant [options] <command> [<args>] -v, --version Print the version and exit. -h, --help Print this help. Common commands: box manages boxes: installation, removal, etc. cloud manages everything related to Vagrant Cloud destroy stops and deletes all traces of the vagrant machine global-status outputs status Vagrant environments for this user halt stops the vagrant machine help shows the help for a subcommand init initializes a new Vagrant environment by creating a Vagrantfile login package packages a running vagrant environment into a box plugin manages plugins: install, uninstall, update, etc. port displays information about guest port mappings powershell connects to machine via powershell remoting provision provisions the vagrant machine push deploys code in this environment to a configured destination rdp connects to machine via RDP reload restarts vagrant machine, loads new Vagrantfile configuration resume resume a suspended vagrant machine snapshot manages snapshots: saving, restoring, etc. ssh connects to machine via SSH ssh-config outputs OpenSSH valid configuration to connect to the machine status outputs status of the vagrant machine suspend suspends the machine up starts and provisions the vagrant environment upload upload to machine via communicator validate validates the Vagrantfile vbguest plugin: vagrant-vbguest: install VirtualBox Guest Additions to the machine version prints current and latest Vagrant version winrm executes commands on a machine via WinRM winrm-config outputs WinRM configuration to connect to the machine For help on any individual command run `vagrant COMMAND -h` Additional subcommands are available, but are either more advanced or not commonly used. To see all subcommands, run the command `vagrant list-commands`. (base) MacBookPro yokoyamanaonori ~/centos7 $ vagrant ssh Last login: Wed Aug 21 03:06:09 2019 from 10.0.2.2 [vagrant@localhost ~]$ touch /vagrant/data/test touch: `/vagrant/data/test' に touch できません: そのようなファイルやディレクトリはありません [vagrant@localhost ~]$
vagrant上のcentosとの共有フォルダをつくりたいのですがうまくできません。
MACのターミナルでで$touch /vagrant/data/testと打つとそのようなファイルやディレクトリはないと言われます。
なぜ$touch /vagrant/data/testと打ちMac側の共有フォルダ(「~/centos7/data」)をFinderで確認できないのかわかりません。書く方が違うのでしょうか?
有識者の方にご教授いただければ幸いです。よろしくお願い申し上げます。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/08/21 04:41
2019/08/21 04:54
2019/08/21 05:10