Cybersecurity Updates & Tools
Home Tags Tarian

Tag: Tarian

APPLICATIONS

HOT NEWS

timeout Command in Linux: Kill Long-Running Commands Safely

0
The timeout command in Linux runs a command with a time limit and terminates it when the limit is reached. It is part of GNU coreutils, available on virtually every Linux distribution. It is most useful for commands with no built-in timeout option, such as ping, curl, tcpdump, or a custom script that might hang indefinitely. How the timeout Command Works in Linux The syntax is: bashtimeout DURATION COMMAND ... Duration is a number followed by an optional unit: s (seconds, default when omitted), m (minutes), h (hours), or d (days). Floating-point values are supported: bashtimeout 5 ping 8.8.8.8 # 5 secondstimeout 5m...