nc host 8080 < file.txt

Category: Networking

nc host 8080 < file.txt

Send a file to a remote netcat listener

Sends the contents of a file to a remote netcat listener — a basic way to transfer data.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.