Linux uuto command
The Linux uuto command transfers files to a remote UUCP host.
uuto is a command-line tool in Unix and Linux systems used to transfer files over a UUCP (Unix-to-Unix Copy) network.
UUCP is an early network protocol used to transfer files and execute commands between different Unix systems.
uuto The command is part of the UUCP toolset; it lets users send files to a remote system and perform some simple operations there.
Syntax
uuto [选项] 源文件 目标系统!目标用户
Parameters:
- Source file: the file or directory to transfer.
- Target system: the name of the remote system.
- Target user: the user name on the remote system.
Common options:
uuto The command supports some common options; here are a few:
-m: email the user after the file transfer completes.-p: compress the files before transferring.-r: recursively transfer directories and their contents.
For related parameters, please refer to the uucp command.
Example
Transferring a single file
Suppose you have a file example.txt, you want to send it to the remote system remote_system to the user on that system remote_user, you can use the following command:
uuto example.txt remote_system!remote_user
Transferring a directory
If you want to transfer a directory my_directory and all its contents, you can use -r Option:
uuto -r my_directory remote_system!remote_user
Transferring after compressing files
If you want to compress files before transferring, you can use -p Option:
uuto -p example.txt remote_system!remote_user
Sending an email notification after transfer completes
If you want to receive an email notification after the file transfer completes, you can use -m Option:
uuto -m example.txt remote_system!remote_user
Notes
- UUCP network configuration: When using
uutoBefore using the command, make sure your system is properly configured for the UUCP network. This usually includes configuring the system name, remote system name, and connection method under the/etc/uucp/directory. - Permission issues: make sure you have permission to access the remote system and the remote user has permission to receive files.
- File path: when transferring files, make sure the file paths are correct to avoid transfer failures caused by wrong paths.
Linux Command Reference