【问题标题】:ls -l truncates user name and group name to 8 charactersls -l 将用户名和组名截断为 8 个字符
【发布时间】:2016-10-14 21:16:57
【问题描述】:

我有一个用户 test5678x 和 test5678。即拥有文件夹中的文件。 使用 ls -l 所有者名称和组被截断,因此它们看起来相同。

-rw-r--r--    1 test5678 test5678         0 Jun 14 08:36 test5678file
-r--r--r--    1 test5678 test5678         0 Jun 14 08:25 test5678xfile

有没有办法解决这个问题?

【问题讨论】:

  • 我知道stat -c %U /path/to/file,但想列出所有文件的所有者。

标签: linux file ls owner


【解决方案1】:

您可以使用ls-w 选项来调整屏幕的宽度:

ls -w 500

【讨论】:

猜你喜欢
  • 2017-04-15
  • 2013-02-06
  • 1970-01-01
  • 1970-01-01
  • 2019-12-01
  • 1970-01-01
  • 2013-01-03
  • 1970-01-01
  • 2011-12-11
相关资源
最近更新 更多