您的位置:首页 > 运维架构 > Linux

我使用过的Linux命令之ll - 列出文件/目录的详细信息

2014-03-14 16:55 597 查看


我使用过的Linux命令之ll - 列出文件/目录的详细信息

http://codingstandards.iteye.com/blog/1129173

本文链接:http://codingstandards.iteye.com/blog/1129173 (转载请注明出处)



用途说明

ll命令(两个小写L)可以列出文件/目录的详细信息,从本质上讲,ll只是ls -l的别名。但它用起来还是很方便的。还有l.命令也是ls的别名,用来显示隐藏文件和目录,在Linux下隐藏文件就是以点开头的文件。

alias | grep ls 写道

alias l.='ls -d .* --color=tty'

alias ll='ls -l --color=tty'

alias ls='ls --color=tty'


type -a ll ls l. 写道

ll is aliased to `ls -l --color=tty'

ls is aliased to `ls --color=tty'

ls is /bin/ls

l. is aliased to `ls -d .* --color=tty'


常用参数


使用示例


示例一 ll的例子

[root@jfht tmp]# ls

ct08 ct08.min.tar.gz ls0.txt ls1.txt ls2.txt

[root@jfht tmp]# ll

总计 48

drwxr-xr-x 4 root root 4096 2010-11-20 ct08

-rw-r--r-- 1 root root 10620 2010-11-20 ct08.min.tar.gz

-rw-r--r-- 1 root root 213 2010-10-18 ls0.txt

-rw-r--r-- 1 root root 213 2010-10-18 ls1.txt

-rw-r--r-- 1 root root 213 2010-10-18 ls2.txt

[root@jfht tmp]#



示例二 l.的例子,显示隐藏文件或目录

[root@jfht tmp]# ls

ct08 ct08.min.tar.gz ls0.txt ls1.txt ls2.txt

[root@jfht tmp]# l.

. ..

[root@jfht tmp]#



问题思考


相关资料

【1】鸟哥的私房菜 檔案與目錄的檢視: ls
http://linux.vbird.org/linux_basic/0220filemanager.php#ls
【2】点点--记忆。。。 linux中 ll 和ls 区别
http://blog.sina.com.cn/s/blog_54eeb5d90100k2z3.html




返回 我使用过的Linux命令系列总目录
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐