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:
fsc-eriker 2025-09-29 14:43:48 +03:00 committed by GitHub
parent 839c6e7562
commit 590e064e35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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