PING3(1)

🌸 ping3 β€” the manual page, but make it make sense 🌸

okay so you wanna ping stuff with Python 3, and you want it to be real ICMP, not some fake TCP-handshake situation. bestie, this is the page for you. It's PING3(1), from the General Commands Manual, and we're gonna go through it together. grab a snack. πŸ’–


✨ NAME ✨

ping3 β€” ICMP ping using raw sockets, implemented in Python 3. yes she's doing raw sockets. yes she's doing it in Python. no we are not okay about it. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

ping3 [OPTION] [DEST_ADDR ...]

🌈 DESCRIPTION 🌈

So the whole vibe is: it's an ICMP ping implementation that uses raw sockets, written in Python 3. That's it. That's the whole thing. iconic, honestly.

This manual page is specifically for the ping3 executable. If you're looking for the Python module documentation, that lives in /usr/share/doc/python3-ping3/README.md.gz. (yes, gzipped. yes you'll need zcat or less. iykyk.)

⚠️ Okay so this part matters, don't skip it: usually, only processes running as root can create raw sockets. That's just how the kernel feels about it. If you want to use ping3 without root privileges, go read /usr/share/doc/python3-ping3/TROUBLESHOOTING.md. It's literally right there. the way that file is sitting there waiting to save you… 🫢

πŸŽ€ DEST_ADDR πŸŽ€

  • DEST_ADDR β€” the destination address, bestie. It can be an IP address or a domain name. Ex. 192.168.1.1 or example.com. she's flexible. she's versatile. main character energy. ✨

πŸ’… THE FLAGS πŸ’…

okay here's the whole roster, no skips, no skimming:

  • -c COUNT, --count COUNT β€” how many pings you're sending. The default is 4. that's it. that's the number.
  • -t TIMEOUT, --timeout TIMEOUT β€” how long to wait for a response, in seconds. The default is 4. (notice how both defaults are 4. symmetry. slay.)
  • -i INTERNAL, --interval INTERVAL β€” how long to wait between each packet, in seconds. The default is 0. zero. no waiting. she's impatient and we respect it. πŸ”₯
  • -I INTERFACE, --interface INTERFACE β€” LINUX ONLY 🌈 β€” the gateway network interface to ping from. The default is None. if you're not on Linux this one is just gonna look at you funny.
  • -S SRC_ADDR, --src SRC_ADDR β€” the IP address to ping from. This one's for when you've got multiple network interfaces and you need to pick a lane. The default is None.
  • -T TTL, --ttl TTL β€” the Time-To-Live of the outgoing packet. The default is 64. ⭐
  • -s SIZE, --size SIZE β€” the ICMP packet payload size, in bytes. The default is 56. fifty-six lil bytes of pure payload. πŸ“
  • -D, --debug β€” turn on DEBUG mode. for when you need to see everything. πŸ‘€
  • -E, --exceptions β€” turn on EXCEPTIONS mode. she's gonna raise things. be ready. 😭
  • -h, --help β€” show the help message and exit. the classic. the goat. the first flag everybody meets. 🫢
  • -v, --version β€” show the program's version number and exit. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

This manual page was written by Carles Pina i Estany <carles@pina.cat> for the Debian system (but may be used by others β€” she's generous like that).

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 any later version published by the Free Software Foundation. fr fr, it's in the license, go read it. πŸ“œ


πŸ’œ SEE ALSO πŸ’œ

  • ping(8) β€” the OG. the ancestor. the blueprint.
  • Full documentation in /usr/share/doc/python3-ping3/README.md.gz β€” everything you could ever want, compressed. 🧚

and that's the whole page, bestie!! no cap, you now know every single flag, every default, every path, and every warning on this thing. go forth and ping. go forth and slay. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

this has been PING3(1) β€” General Commands Manual β€” byeeee πŸ’œ

πŸ“¦ where this page comes from