Warning: Undefined property: stdClass::$slug in /www/wwwroot/coyis.com/it/wp-admin/includes/plugin-install.php on line 468
ls -d命令是什么意思? - Song It

ls -d命令是什么意思?

这个指令的意义在于 如果有个workspace目录,我ls -l workspace自能看到这个目录下面的其他子目录的属性。如果是ls -dl workspace 则是显示的这个目录本身。

ls -l 没有加 d 的情况
ls -l 【目录】

[bash autolinks=”false” classname=”myclass” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”2″ toolbar=”true” language=”title=”]

[root@iZ23qxllllwZ coyis]# ls -l it
total 7524
-rw-r–r– 1 www www 418 Sep 3 11:33 index.php
-rw-r–r– 1 www www 19930 Jan 22 21:45 license.txt
-rw-r–r– 1 www www 6789 Jan 22 21:45 readme.html
drwxr-xr-x 2 www www 4096 Jan 22 21:16 wordpress
-rw-r–r– 1 www www 7518362 Dec 7 20:56 wordpress-4.3.1-zh_CN.zip
-rw-r–r– 1 www www 5035 Jan 22 21:45 wp-activate.php
drwxr-xr-x 9 www www 4096 Sep 16 22:38 wp-admin
。。。。。。此处省略N字
[root@iZ23qxllllwZ coyis]#
[/bash]

ls -l 添加加 d 的情况

ls -ld 【目录】

[bash autolinks=”false” classname=”myclass” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”2″ toolbar=”true” language=”title=”]

[root@iZ23qxllllwZ coyis]# ls -ld it
drwxr-xr-x 6 www www 4096 Jan 22 21:49 it
[root@iZ23qxllllwZ coyis]#

[/bash]

未经允许不得转载:Song It » ls -d命令是什么意思?

相关文章

评论 (0)