# Examples: Transfer Using cfsend or cfrecv Command

To perform a file transfer on the command line, you can use the cfsend or cfrecv command with specific parameters and options.

Note: Use equal signs (=) or colons (:) to separate the transfer parameters from their values.
The examples below assume that a profile has been configured for the defined node.

- To send a file to a remote system, use the cfsend command. For example:

  `cfsend node:NYServer lf:/home/usr/file rf:dataset.name`

- To receive a file from a remote system, use the cfrecv command. For example:

  `cfrecv node:NYServer lf:/home/usr/file rf:”c:\temp\test.txt”`

- To send a file using SSL to a remote system, you must set the ssl parameter to y and define the sport parameter in the cfsend command. For example:

  `cfsend n:NYTunnelNode lf:/home/usr/file rf:dataset.name ssl:Y`

- To run a command in the background, add an ampersand (&) at the end of the command. For example:

  `cfrecv n:ParisNode lf:/home/usr/file rf:”c:\temp\test.txt” &`

- To log off before a command is completed, add a prefix `nohup` at the beginning of the command. For example:

  `nohup cfrecv n:ParisNode lf:/home/usr/file rf:”c:\temp\test.txt” > /tmp/file 2>&1`

- To send screen output of a command to a specific file, add the file path at the end of the command. For example:

  `cfsend n:LondonNode lf:/home/usr/file rf:dataset.name`

Copyright © 2022. TIBCO Software Inc. All Rights Reserved.