绝想首页

Linux基础命令教程(豪华版)(05)

张喜科@柳州 [闲逸] 2013-02-27 22:18:21 星期三 晴天 查看:106 回复:0 发消息给作者
                                               显示隐藏的文件
                                             发布时间 :2008-03-23 11:24:48
系统中一些文件,和Windows中的系统文件一样,这些文件一般是不显示出来的,那么我们可以使用“-a”参数来显示隐藏的文件。如下所示:
[root@Linux ~]# ls -a
. .chewing .gconfd install.log .redhat
.. .cshrc .gnome install.log.syslog .scim
anaconda-ks.cfg Desktop .gnome2 .lesshst .tcshrc
.bash_history .dmrc .gnome2_private .metacity .thumbnails
.bash_logout .eggcups .gstreamer-0.10 .mozilla .Trash
.bash_profile .esd_auth .gtkrc-1.2-gnome2 .nautilus
.bashrc .gconf .ICEauthority .recently-used.xbel

看看这样显示的文件就比较多了。可以发现,隐藏文件是以“.”开头的文件。这些文件一般都有特殊的作用,如果显示出来,有可能被用户不小心删除。

我们可以结合上面的两个参数来显示目录下的文件,如下所示:
[root@Linux ~]# ls -al
总计 212
drwxr-x--- 18 root root 4096 03-19 05:30 .
drwxr-xr-x 24 root root 4096 03-19 12:21 ..
-rw------- 1 root root 865 03-15 04:12 anaconda-ks.cfg
-rw------- 1 root root 2372 03-19 05:52 .bash_history
-rw-r--r-- 1 root root 24 2006-07-13 .bash_logout
-rw-r--r-- 1 root root 191 2006-07-13 .bash_profile
-rw-r--r-- 1 root root 176 2006-07-13 .bashrc
drwx------ 2 root root 4096 03-14 20:32 .chewing
-rw-r--r-- 1 root root 100 2006-07-13 .cshrc
drwxr-xr-x 2 root root 4096 03-14 20:34 Desktop
-rw------- 1 root root 26 03-14 20:31 .dmrc
drwxr-x--- 2 root root 4096 03-14 20:32 .eggcups
-rw------- 1 root root 16 03-19 05:30 .esd_auth
drwx------ 4 root root 4096 03-19 05:06 .gconf
drwx------ 2 root root 4096 03-19 05:30 .gconfd
drwxr-xr-x 3 root root 4096 03-14 20:32 .gnome
drwx------ 6 root root 4096 03-19 05:30 .gnome2
drwx------ 2 root root 4096 03-14 20:32 .gnome2_private
drwxr-xr-x 2 root root 4096 03-14 20:32 .gstreamer-0.10
-rw-r--r-- 1 root root 81 03-14 20:32 .gtkrc-1.2-gnome2
-rw------- 1 root root 358 03-19 05:30 .ICEauthority
-rw-r--r-- 1 root root 27964 03-15 04:12 install.log
-rw-r--r-- 1 root root 5069 03-15 04:11 install.log.syslog
-rw------- 1 root root 35 03-19 05:26 .lesshst
drwx------ 3 root root 4096 03-14 20:32 .metacity
drwx------ 3 root root 4096 03-14 20:36 .mozilla
drwxr-xr-x 3 root root 4096 03-19 05:30 .nautilus
-rw-r--r-- 1 root root 1528 03-19 05:30 .recently-used.xbel
drwxr-xr-x 3 root root 4096 03-14 20:32 .redhat
drwx------ 4 root root 4096 03-14 21:06 .scim
-rw-r--r-- 1 root root 129 2006-07-13 .tcshrc
drwx------ 3 root root 4096 03-14 20:33 .thumbnails
drwx------ 2 root root 4096 03-14 20:32 .Trash

这样显示是不是觉得更好呢?

顶一下(33 写日记 1163728 224491
分享排行

 

 

留住已经逝去的峥嵘岁月 记住曾经绽现的万种风情 在记忆即将淡漠的时候 来把这些重新回味

Copyright (C) 2008-2014 www.juexiang.com, All Rights Reserved.

京ICP备2023001011号-3   京公网安备11010802011908号

客服QQ 1017160561 违法和不良信息举报电话 13148464312 邮箱 1017160561@qq.com