范例一:
½
家目
录
下的所有
文件
列出
来
(
含
属
性与
隐
藏文件
)
[root@study ~]#
ls
-
al ~
total 56
dr
-
xr
-
x
---
. 5 root root 4096 Jun 4 19:49
.
dr
-
xr
-
xr
-
x. 17 root root 4096 May 4 17:56
..
-
rw
-------
. 1 root root 1816 May 4 17:57 anaconda
-
ks.cfg
-
rw
-------
. 1 root
root 6798 Jun 4 19:53 .bash_history
-
rw
-
r
--
r
--
. 1 root root 18 Dec 29 2013 .bash_logout
-
rw
-
r
--
r
--
. 1 root root 176 Dec 29 2013 .bash_profile
-
rw
-
rw
-
rw
-
. 1 root root 176 Dec 29 2013 .bashrc
-
rw
-
r
--
r
--
. 1 root root 176 Jun 3 00:04 .bashrc_test
drwx
------
. 4 root root 29 May 6 00:14
.cache
drwxr
-
xr
-
x. 3 root root 17 May 6 00:14
.config
#
这个时
候你
会
看到以
.
为开头
的几
个
文件
,以及目
录
文件
(.) (..) .config
等等,
#
不
过
,目
录
文件文件名都是以深
蓝
色
显
示,有
点
不容易看清楚就是了。
范例二:承上
题
,不
显
示
颜
色,但在文件名末
显
示出
该
文件名代表的
类
型
(type)
[root@study ~]#
ls
-
alF
--
color=never ~
total 56
dr
-
xr
-
x
---
. 5 root root 4096 Jun 4 19:49 ./
dr
-
xr
-
xr
-
x. 17 root root 4096 May 4 17:56 ../
-
rw
-------
. 1 root root 1816 May 4 17:57 anaconda
-
ks.cfg
-
rw
-------
. 1 root root 6798 Jun 4 19:53 .bash_history
-
rw
-
r
--
r
--
. 1 root r
oot 18 Dec 29 2013 .bash_logout
-
rw
-
r
--
r
--
. 1 root root 176 Dec 29 2013 .bash_profile
-
rw
-
rw
-
rw
-
. 1 root root 176 Dec 29 2013 .bashrc
-
rw
-
r
--
r
--
. 1 root root 176 Jun 3 00:04 .bashrc_test
drwx
------
. 4 root root 29 May 6 00:14 .cache/
drwxr
-
xr
-
x. 3 root root 17 May 6 00:14 .config/
#
注意看到
显
示
½
果的第一行,嘿嘿~知道
为
何我
们会
下
达类
似
./command
#
之
类
的指令了吧?因
为
./
代表的是『目前目
录
下』的意思啊!至于什么是
FIFO/Socket
?
#
请参
考前一章
½
的½
绍
啊!另外,那
个
.bashrc
时间½写
2013
,能否知道
详细时间
?
范例三:完整的呈
现
文件
的修改
时间
(modification time)
[root@study ~]#
ls
-
al
--
full
-
time ~
total 56
dr
-
xr
-
x
---
. 5 root root 4096 2015
-
06
-
04 19:49:54.520684829 +0800 .
dr
-
xr
-
xr
-
x. 17 root root 4096 2015
-
05
-
04 17:56:38.888000000 +0800 ..
-
rw
-------
. 1 root root 1816 2015
-
05
-
04 17:57:02.326000000 +0800 anaconda
-
ks.cfg
-
rw
-------
.
1 root root 6798 2015
-
06
-
04 19:53:41.451684829 +0800 .bash_history
-
rw
-
r
--
r
--
. 1 root root 18 2013
-
12
-
29 10:26:31.000000000 +0800 .bash_logout
-
rw
-
r
--
r
--
. 1 root root 176 2013
-
12
-
29 10:26:31.000000000 +0800 .bash_profile
-
rw
-
rw
-
rw
-
. 1 root root 176
2013
-
12
-
29 10:26:31.000000000 +0800 .bashrc
-
rw
-
r
--
r
--
. 1 root root 176 2015
-
06
-
03 00:04:16.916684829 +0800 .bashrc_test