← 返回命令列表

Linux command

exch 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Swap

exch [path/to/file1] [path/to/file2]

说明

exch swaps the filepaths and filenames of two files. After the operation, file1 will have the contents that were at file2's path and vice versa. Useful for quickly swapping configuration files or backups.

FAQ

What is the exch command used for?

exch swaps the filepaths and filenames of two files. After the operation, file1 will have the contents that were at file2's path and vice versa. Useful for quickly swapping configuration files or backups.

How do I run a basic exch example?

Run `exch [path/to/file1] [path/to/file2]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.