linux - ftp 在 Linux 上显示文件及其所有者

标签 linux ftp-client suse

我们曾经使用FTP客户端从HP-UX系统中获取列出所有者名称的目录内容,最近系统迁移到了Suse-Linux。现在,当我们 FTP 到这台机器时,目录列表不会显示文件的所有者名称。

如何在 Linux 中启用包含所有者名称的列表目录?

最佳答案

ftp(以及大多数 shell)中,您有 ls 命令。这将打印文件列表。

**Example session** (cutted out some messages):

$ ftp ftp.ed.ac.uk
Connected to luther.is.ed.ac.uk.
220-

 Login using the username 'anonymous' and use your email address as password.

ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
lrwxrwxrwx   1 root     root            8 Feb 26  2014 INSTRUCTIONS-FOR-USING-THIS-SERVICE -> .message
drwx-wx-wx   3 root     root         4096 Feb 17 14:57 edupload
drwx-wx-wx   3 root     root       131072 Feb 17 20:20 incoming
drwxr-xr-x  45 root     root         4096 Feb 19  2014 pub
226 Transfer complete
ftp> 

表格显示:

  • drwxdrwxdrwx:d 代表目录,然后 rwx 代表读-写-执行(按顺序)、所有者、组和所有具有登录访问权限的人员;
  • 所有者的名称(root);
  • 所有者组的名称(root);
  • 文件大小;
  • 修改日期;和
  • 文件名。

关于linux - ftp 在 Linux 上显示文件及其所有者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28570691/

相关文章:

c - Linux Pthread 参数

Java、FTP 和多个消费者

c# - 如何使用 100% CPU 修复单声道?

c# - 调用 FtpClient 一次以递归列出目录

java - FTP 连接超时 421 : parser error

linux - 通过系统属性选择 Teamcity Linux Agent

c - 传递给链接器的库顺序

linux - git clone 无法通过 HTTP 开始中继

c++ - 对符号 'sem_close@@GLIBC_2.2.5' 的 undefined reference

mysql - 错误无法在组件 :Sonar Exception? 上保存公制 pdf 数据的度量