keepalive
networkLinux
The keepalive command is one of the most frequently used commands in Linux/Unix-like operating systems. keepalive TCP keepalive configuration utility for network connections
Quick Reference
Command Name:
keepalive
Category:
network
Platform:
Linux
Basic Usage:
keepalive [options] [arguments]
Common Use Cases
Syntax
keepalive [options]
Options
Option | Description |
---|---|
status |
Show current TCP keepalive settings |
on |
Enable TCP keepalive |
off |
Disable TCP keepalive |
--time=SECONDS |
Set time (in seconds) before sending keepalive probes |
--interval=SECONDS |
Set interval (in seconds) between keepalive probes |
--probes=COUNT |
Set number of probes to send before considering connection dead |
--interface=INTERFACE |
Apply settings to a specific network interface |
--show-all |
Show detailed keepalive statistics |
--help |
Display help message |
--version |
Display version information |
Examples
How to Use These Examples
The examples below show common ways to use the keepalive
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
keepalive status