filesink

The plug-in filesink is used to save the received data as a file.

The following code block provides an example.
gst-launch-1.0 filesrc location=/tmp/test ! filesink location=/tmp/test2

The plug-in is part of the standard GStreamer plug-in tools, see GStreamer Official Documentation on Plug-in for more information on how to use the plug-in.