mirror of https://github.com/cirruslabs/tart.git
Update faq.md: Avoid useless use of grep | awk (#1142)
In "Connecting to a service running on host", refactor to a single Awk script in favor of grep | head | awk
This commit is contained in:
parent
839c6e7562
commit
590e064e35
|
|
@ -34,7 +34,7 @@ Then from within a virtual machine you can access the service using the router's
|
|||
or by running the following command in the Terminal:
|
||||
|
||||
```shell
|
||||
netstat -nr | grep default | head -n 1 | awk '{print $2}'
|
||||
netstat -nr | awk '/default/{print $2; exit}'
|
||||
```
|
||||
|
||||
Note: that accessing host is only possible with the default NAT network. If you are running your virtual machines with
|
||||
|
|
|
|||
Loading…
Reference in New Issue