bash 在 linux 中什么是 sftp 中的 ls 标志
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22022519/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
in linux what are ls flags in sftp
提问by Gary
in linux, we have lots of flags to list files in command ls. we can't do the same inside sftp commannd. For example, in linux, I can list a file's full time by runnling command:
ls --full-time filename
when I sftp to a server, I can't run command: ls --full-time.
在 linux 中,我们有很多标志可以在命令 ls 中列出文件。我们不能在 sftp 命令中做同样的事情。例如,在linux中,我可以通过runnling命令列出文件的全时:
ls --full-time filename
当我sftp到服务器时,我不能运行命令:ls --full-time。
The ls help in sftp doesn't list all available flags. So can you please tell me what are ls flags in sftp?
sftp 中的 ls 帮助没有列出所有可用的标志。那么你能告诉我 sftp 中的 ls 标志是什么吗?
Thank you!
谢谢!
回答by Samveen
The ls
command in sftp
is an internal sftp
command which is in no way related to the ls
command of the remote system's core utilites.
该ls
命令sftp
是一个内部sftp
命令,其不以任何方式涉及ls
远程系统的核心UTILITES的命令。
sftp
(which has a similar interface as ftp
) provides it's internal commands to allow listing of files(among other commands), which does not invoke the ls
of the core utilities. So do not expect the same behavior.
sftp
(具有与 类似的界面ftp
)提供其内部命令以允许列出文件(以及其他命令),它不会调用ls
核心实用程序的 。所以不要期望相同的行为。
For more details on sftp
's internal commands please refer to sftp manpageor this page
有关sftp
内部命令的更多详细信息,请参阅sftp 联机帮助页或此页面