Lookup errno defintions

perl -MPOSIX -e 'print strerror($ARGV[0])."\n";' ERRNO
Calls the POSIX strerror() function to look up the meaning of integer ERRNOs set by some functions.

By: sethjust
2011-09-21 18:16:19

These Might Interest You

  • Performs a reverse DNS lookup, variants include: nslookup or: host Show Sample Output

    dig -x
    postrational · 2009-09-28 15:13:34 0
  • From the man page. lft ? display the route packets take to a network host/socket using one of several layer-4 protocols and methods; optionally show heuristic network information in transitu -A Enable lookup and display of of AS (autonomous system) numbers (e.g., [1]). This option queries one of several whois servers (see options 'C' and 'r') in order to ascertain the origin ASN of the IP address in question. By default, LFT uses the pWhoIs service whose ASN data tends to be more accurate and more timely than using the RADB as it is derived from the Internet's global routing table. -N Enable lookup and display of network or AS names (e.g., [GNTY-NETBLK-4]). This option queries Prefix WhoIs, RIPE NCC, or the RADB (as requested). In the case of Prefix WhoIs or RADB, the network name is displayed. In the case of RIPE NCC, the AS name is displayed. Show Sample Output

    lft -NAS google.com
    tulio · 2011-04-04 03:07:00 0

  • 0
    dig +short -x
    encoded · 2014-08-07 20:42:50 0

  • 2
    curl -s http://www.macvendorlookup.com/getoui.php?mac=$1 | sed -e 's/<[^>]\+>//g'; echo
    bandie91 · 2010-04-29 13:17:30 0

What Others Think

Or just man errno
kaedenn · 351 weeks and 4 days ago
see all errors perl -MPOSIX -e 'map { print $_."\t".strerror($_)."\n"} (1..132)'
alperyilmaz · 349 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: