Hacker News new | past | comments | ask | show | jobs | submit login

I’d use “getent”:

    $ getent services ssh
    ssh                   22/tcp
    $



Tried to find the Darwin equivalent, without success. (Besides looking at the file, but where's the fun in that?)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: