I didn't know how to make a virtual machine with vagrant ssh, so I will summarize it.
The content is for beginners using how to get to the top directory.
$ cd /
rooter:/User name$ pwd
/
rooter:/ neko$ ls
Applications Volumes etc sbin
Library bin home tmp
System cores opt usr
Users dev private var
rooter:/ neko$ cd Users
rooter:users neko$ ls
Shared neko
//Choose a username
rooter:users neko$ cd neko
rooter:neko neko$ ls
Applications Music dump.sql
Desktop MyVagrant local.local.pid
Documents Pictures mysql.sock
Downloads Public sudo
Homestead Vagrantfile touch
Library VirtualBox VMs Past laravel relations
Movies code
rooter:neko neko$ cd myvagrant
rooter:myvagrant neko$ ls
MyCentOS
rooter:myvagrant neko$ cd mycentos
//Start virtualbox.
rooter:mycentos neko$ vagrant up
$ vagrant ssh
Last login: Sat Jan 11 12:34:17 2020 from 10.0.2.2
[vagrant@localhost ~]$
Recommended Posts