One comment though, you are moving the bashrc
and bash_profile
instead of copying it. So consider fixing it in your instructions.
You could have also run a for loop and ping all the IPs in your subnet. Something like this will work:
for i in {1..254}; do ping -c 1 -W 1 192.168.1.$i &> /dev/null && echo 192.168.1.$i; done
Presuming that your subnet is 192.168.1.0/24. This command will loop through all the IPs in this network and only print the one that are alive.
I didn’t know that Steam have added an exception for /nix
which is pretty cool. Thanks for sharing
I am pretty sure your PC doesn’t block ICMP requests and you can get the MAC address of the IP address using the
arp
command and then check the first three octets against the MAC vendors database.This is all possible in Bash but the script will be slightly more complicated and will involve three different tools, ping, arp, curl.
But I am sure you know how to check your PC IP address anyway.