当我使用 时ls -l,它不会在列表中显示组名称。只有用户名。
aj@host:/media/storage$ ll
total 724
drwxrwxrwx 10 root 4096 Sep 17 18:23 .
drwxr-xr-x 3 root 4096 Jun 16 14:18 ..
drwxrwxr-x 5 aj 4096 Aug 8 01:22 blessed-data
drwxrwxr-x 4 git 4096 Jul 21 15:27 git-repos
drwx------ 2 root 16384 Jun 16 14:33 lost+found
drwxrwsr-x 2 analyst 4096 Sep 17 18:23 projects
Run Code Online (Sandbox Code Playgroud)
为什么不ls -l显示组名,而只显示用户名?
我正在运行 Ubuntu 14.04 LTS(可信赖)。
Dav*_*ill 11
您正在使用以下别名:
alias ll='ls -alG'
Run Code Online (Sandbox Code Playgroud)
G从别名中删除或使用ls -al.
选择:
如果您不想更改别名,而只想一次性列出包含组的列表,则可以使用/bin/ls -al它来绕过ls您定义的任何别名。
Run Code Online (Sandbox Code Playgroud)-G, --no-group inhibit display of group information
来源LS
笔记:
-G对于ls在OS X为“启用彩色输出”| 归档时间: |
|
| 查看次数: |
9396 次 |
| 最近记录: |