Comment

Comment by Goladus

I use cygwin. I run cygwinsshd on localhost:22 and use Putty for my client.

A lot of windows-specific gui commands won't work through the ssh layer, but will if you run the cygwin bash shell directly. (Maybe there's some way to get them to work over SSH but I have never had reason to try and figure it out).

    $ which nmap.exe
    /cygdrive/c/Program Files/Nmap/nmap.exe
    
    $ nmap.exe -PN -p 80,443 news.ycombinator.com | grep tcp
    80/tcp  open  http
    443/tcp open  https
    
    $ which ipconfig
    /cygdrive/c/Windows/system32/ipconfig
    
    $ where ipconfig
    C:\Windows\System32\ipconfig.exe
    
    $ where which
    C:\cygwin\bin\which.exe
    
    $ which where
    /cygdrive/c/Windows/system32/where
    
    $ ipconfig /all | grep Physical
       Physical Address. . . . . . . . . : [redacted]
       Physical Address. . . . . . . . . : [redacted]
       Physical Address. . . . . . . . . : [redacted]
       Physical Address. . . . . . . . . : [redacted]
       Physical Address. . . . . . . . . : [redacted]
       Physical Address. . . . . . . . . : [redacted]
       Physical Address. . . . . . . . . : [redacted]
       Physical Address. . . . . . . . . : [redacted]
       Physical Address. . . . . . . . . : [redacted]
    
    $ reg query 'HKEY_LOCAL_MACHINE\Software\GOG.com\' /s | head
    
    HKEY_LOCAL_MACHINE\Software\GOG.com
        DefaultPackPath    REG_SZ    F:\
        DesktopIcon    REG_SZ    OFF
    
    HKEY_LOCAL_MACHINE\Software\GOG.com\Games
    
    HKEY_LOCAL_MACHINE\Software\GOG.com\Games\1207666383
        PATH    REG_SZ    F:\Star Wars - X-Wing (1993)
        GUID    REG_SZ    {F014338D-42E5-4DFC-BE77-F8E52BD998D5}
parent Goladus 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton