All*_*mas 12 linux file-management
如何在命令行上执行此操作?
例如复制/dir/another/file到/tmp/所以我有/tmp/dir/another/file
rsync可以对此提供很好的帮助:
rsync -Ravz my/first/dir/file.txt another_dir
Run Code Online (Sandbox Code Playgroud)
结果会给出
another_dir/my/first/dir/file.txt
Run Code Online (Sandbox Code Playgroud)