[Linux command] From moving to macintosh (top directory) with cd command to connecting vagrant ssh

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.

Move to top directory


$ cd /

rooter:/User name$ pwd
/

Move to the corresponding directory to connect to ssh


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

Connection completed

$ vagrant ssh
Last login: Sat Jan 11 12:34:17 2020 from 10.0.2.2
[vagrant@localhost ~]$

Recommended Posts

[Linux command] From moving to macintosh (top directory) with cd command to connecting vagrant ssh
How to return to the previous directory with the Bash cd command
Back up from QNAP to Linux with rsync
Linux [directory command]
Yum command to access MySQL with Python 3 on Linux
ODBC access to SQL Server from Linux with Python
[Linux] After connecting to DB with teraterm and typing Sqlplus command, until logging in to DB (oracle)
[Linux] Copy data from Linux to Windows with a shell script
Check the operating status of the server with the Linux top command
Connect to centos6 on virtualbox with ssh connection from Mac
Automatically enable virtualenv when cd to a directory with zsh