$ sudo netstat -an
If you want to search something (for example "80") from the ports information:
$ sudo netstat -an | grep 80
To check the server's error log:
$ sudo less /var/log/httpd/error_log
To check the server's IP address:
$ sudo ifconfig
To create symbolic link (Create a symbolic link "python3.5" that refers to /bin/python):
$ sudo ln -s /bin/python3.5 /bin/python
To create symbolic link from vagrant's shared folder to apache's html:
$ sudo rm -rf /var/www/html
$ sudo ln -fs /vagrant /var/www/html
$ sudo ln -fs /vagrant /var/www/html
To delete a symbolic link:
$ sudo unlink /bin/python3