-1

我是 Unix/Linux 系统的新手。现在我尝试从 linux/unix 平台的本地服务器复制当前日期文件。但我不能做到最好,因为我不知道如何开始以及如何解决这个问题。但我发现了一些网站,但我不明白这一点?你能帮我完成这个过程吗...

我的概念是“从本地服务器到我的 PC 平台 unix/linux 的当前日期文件复制”我该如何开始呢?

请任何人都可以帮助这个......谢谢提前......我需要任何选项程序来解决这个问题“

4

2 回答 2

1

只需连接到您的远程服务器

$ sudo ssh [user_name]@[host_name] -p[port_no]
$ password:

然后,您可以实际检查在 linux 中使用 -mtime 命令创建、修改访问的文件,例如

$ sudo find /source_directory -mtime n

-mtime 是修改时间。

将 n 替换为合适的值,它的工作方式类似于 n*24 小时前。

您还可以像 mtime 一样使用 ctime、atime 等命令来更改、访问文件。

可能是,您可以使用命令管道,例如

$ sudo find /source_directory -mtime 1 | scp [user_name]@[hostname]:/path/to/remote/file [user_name]@[hostname]:/path/to/local/file

或者只是找到该文件,然后使用 scp 命令复制它。

有关更多详细信息,您可以通过delete-move-copy-files-of-specific-date & scp help

于 2013-10-29T07:28:18.893 回答
0

You want to copy a file from one host to another, right?

http://en.wikipedia.org/wiki/Secure_copy

You really Need to work on your question asking skills though, it is really hard to understand what you mean.

于 2013-10-29T07:22:36.147 回答