用途说明
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'
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'
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]#