Wednesday, November 29, 2017

to check which user you are logged into

whois

follow this guide to view other users

https://www.linuxquestions.org/linux/answers/Networking/How_to_list_all_your_USERs

How to view open ports on that machine

pi@raspberrypi:~ $ sudo netstat -tulpn | grep nx
tcp        0      0 127.0.0.1:7001          0.0.0.0:*               LISTEN      1021/nxnode.bin    
tcp        0      0 0.0.0.0:4000            0.0.0.0:*               LISTEN      1001/nxd          
tcp        0      0 127.0.0.1:12001         0.0.0.0:*               LISTEN      1021/nxnode.bin    
tcp        0      0 127.0.0.1:25001         0.0.0.0:*               LISTEN      1070/nxclient.bin  
tcp        0      0 127.0.0.1:21774         0.0.0.0:*               LISTEN      445/nxserver.bin  
tcp6       0      0 ::1:7001                :::*                    LISTEN      1021/nxnode.bin    
tcp6       0      0 :::4000                 :::*                    LISTEN      1001/nxd          
udp     7872      0 192.168.0.123:5353      0.0.0.0:*                           445/nxserver.bin  
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           445/nxserver.bin