Forrest logo
back to the ipset tool

ipset:tldr:19664

ipset: Save an IP set.
$ ipset save ${set_name} > ${path-to-ip_set}
try on your machine

This command is used to save the contents of an IP set to a specific file.

Here is a breakdown of the command:

  • ipset save: This is the command to save the IP set.
  • ${set_name}: This is a placeholder for the name of the IP set you want to save. You need to replace it with the actual name of the IP set you want to save.
  • >: This is a redirection operator used to redirect the output of the command to a file.
  • ${path-to-ip_set}: This is a placeholder for the file path where you want to save the IP set. You need to replace it with the actual file path where you want to save the IP set.
This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ipset tool