我们曾经使用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/