Linux command
ascii-xfr 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Send
ascii-xfr -s [path/to/file]
Receive
ascii-xfr -r [path/to/file]
Send
ascii-xfr -s -l 100 [path/to/file]
Send
ascii-xfr -s -c 10 [path/to/file]
Send
ascii-xfr -s -e [path/to/file]
Receive
ascii-xfr -r -v [path/to/file]
说明
ascii-xfr is a file transfer utility that sends or receives files over serial connections using plain ASCII line-by-line transfer. It is part of the minicom package and is designed as a last-resort transfer method when the remote system does not support proper file transfer protocols like ZMODEM, XMODEM, or Kermit. During sending, end-of-line characters are transmitted as CRLF. During receiving, CR characters are stripped from incoming data. The tool reads from stdin when receiving and writes to stdout when sending, so it requires I/O redirection to the serial device, typically provided by minicom or a similar terminal emulator.
参数
- -s
- Send a file
- -r
- Receive a file
- -e
- Send the End-Of-File character (Control-Z) when uploading has finished
- -d
- Use Control-D instead of Control-Z as the EOF character
- -n
- Do not translate CR/LF; skip automatic CRLF conversion
- -v
- Verbose mode; display transfer statistics on stderr
- -l _milliseconds_
- Line delay; wait this many milliseconds after each line when transmitting
- -c _milliseconds_
- Character delay; wait this many milliseconds after each character when transmitting
FAQ
What is the ascii-xfr command used for?
ascii-xfr is a file transfer utility that sends or receives files over serial connections using plain ASCII line-by-line transfer. It is part of the minicom package and is designed as a last-resort transfer method when the remote system does not support proper file transfer protocols like ZMODEM, XMODEM, or Kermit. During sending, end-of-line characters are transmitted as CRLF. During receiving, CR characters are stripped from incoming data. The tool reads from stdin when receiving and writes to stdout when sending, so it requires I/O redirection to the serial device, typically provided by minicom or a similar terminal emulator.
How do I run a basic ascii-xfr example?
Run `ascii-xfr -s [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s do in ascii-xfr?
Send a file