linux下文件和目录的颜色所代表含义是什么?

linux下文件和目录的颜色所代表含义是什么?

蓝色表示目录;
绿色表示可执行文件;
红色表示压缩文件;
浅蓝色表示链接文件;
灰色表示其它文件;
红色闪烁表示链接的文件有问题了;
黄色是设备文件,包括block, char, fifo。
用dircolors -p看到缺省的颜色设置,包括各种颜色和“粗体”,下划线,闪烁等定义

[root@localhost ~]# dircolors -p

#&">nbsp;Configuration file for dircolors, a utility to help you set the  # LS_COLORS environment variable used by GNU ls with the --color option.  # Copyright (C) 1996, 1999-2010 Free 
Software Foundation, Inc.  # Cop
ying and distribution of this file, with or without modification,  # are permitted provided the copyright notice and this notice are preserved.  # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the  # slackware version of dircolors) are recognized but ignored.  # Below, there should be one TERM entry for each termtype that is colorizable  TERM Eterm  TERM ansi  TERM color-
xterm  TERM con132x25  TERM con132x30  TERM con132x43  TERM con132x60  TERM con80x25  TERM con80x28  TERM con80x30  TERM con80x43  TERM con80x50  TERM con80x60  TERM cons25  TERM console  TERM cygwin  TERM dtterm  TERM eterm-color  TERM 
gnome  TERM gnome-256color  TERM jfbterm  TERM konsole  TERM kterm  TERM linux  TERM linux-c  TERM mach-color  TERM mlterm  TERM putty  TERM rxvt  TERM rxvt-cygwin  TERM rxvt-cygwin-native  TERM rxvt-unicode  TERM screen  TERM screen-256color  TERM screen-256color-bce  TERM screen-bce  TERM screen-w  TERM screen.linux  TERM vt100  TERM xterm  TERM xterm-16color  TERM xterm-256color  TERM xterm-88color  TERM xterm-color  TERM xterm-debian  # Below are the color init strings for the basic file types. A color init  # string consists of one or 
more of the following numeric codes:  # Attribute codes:  # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed # Text color codes:  # 30=black 31=red 32=green 33=yellow 34=blue 35=m
agenta 36=cyan 37=white # Background color codes:  # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white #NORMAL 00 # no color code at all  #FILE 00 # regular file: use no color at all  RESET 0 # 
reset to "normal" color  DIR 01;34 # directory  LINK 01;36 # symbolic link. (If you set this to 'target' instead of a   # numerical value, the color is as for the file pointed to.)  MULTIHARDLINK 00 # regular file with more than one link  FIFO 40;33 # pipe  SOCK 01;35 # socket  DOOR 01;35 # door  BLK 40;33;01 # block 
device driver  CHR 40;33;01 # character device driver  ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file  SETUID 37;41 # file that is setuid (u+s)  SETGID 30;43 # file that is setgid (g+s)  CAPABILITY 30;41 # file with capability  STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)  OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky  STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable  # This is for files with execute permission:  EXEC 01;32  # List any file extensions like '.gz' or '.tar' that you would like ls  # to colorize below. Put the extension, a space, and the color init string.  # (and any comments you want to add after a '#')  # If you use DOS-style suffixes, you may want to uncomment the following:  #.cmd 01;32 # executables (bright green)  #.exe 01;32  #.com 01;32  #.btm 01;32  #.bat 01;32  # Or if you want to colorize scripts even if they do not have the  # executable bit actually set.  #.sh 01;32  #.csh 01;32   # archives or compressed (bright red)  .tar 01;31  .tgz 01;31  .arj 01;31  .taz 01;31  .lzh 01;31  .lzma 01;31  .tlz 01;31  .txz 01;31  .zip 01;31  .z 01;31  .Z 01;31  .dz 01;31  .gz 01;31  .lz 01;31  .xz 01;31  .bz2 01;31  .bz 01;31  .tbz 01;31  .tbz2 01;31  .tz 01;31  .deb 01;31  .rpm 01;31  .jar 01;31  .rar 01;31  .ace 01;31  .zoo 01;31  .cpio 01;31  .7z 01;31  .rz 01;31  # image formats  .jpg 01;35  .jpeg 01;35  .gif 01;35  .bmp 01;35  .pbm 01;35  .pgm 01;35  .ppm 01;35  .tga 01;35  .xbm 01;35  .xpm 01;35  .tif 01;35  .tiff 01;35  .png 01;35  .svg 01;35  .svgz 01;35  .mng 01;35  .pcx 01;35  .mov 01;35  .mpg 01;35  .mpeg 01;35  .m2v 01;35  .mkv 01;35  .ogm 01;35  .mp4 01;35  .m4v 01;35  .mp4v 01;35  .vob 01;35  .qt 01;35  .nuv 01;35  .wmv 01;35  .asf 01;35  .rm 01;35  .rmvb 01;35  .flc 01;35  .avi 01;35  .fli 01;35  .flv 01;35  .gl 01;35  .dl 01;35  .xcf 01;35  .xwd 01;35  .yuv 01;35  .cgm 01;35  .emf 01;35  # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions  .axv 01;35  .anx 01;35  .ogv 01;35  .ogx 01;35  # audio formats  .aac 00;36  .au 00;36  .flac 00;36  .mid 00;36  .midi 00;36  .mka 00;36  .mp3 00;36  .mpc 00;36  .ogg 00;36  .ra 00;36  .wav 00;36  # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions  .axa 00;36  .oga 00;36  .spx 00;36  .xspf 00;36

时间: 2024-08-04 02:34:27

linux下文件和目录的颜色所代表含义是什么?的相关文章

Linux中文件权限目录权限的意义及权限对文件目录的意义_linux shell

linux中目录与文件权限的意义 一.文件权限的意义 r:可以读这个文件的具体内容: w:可以编辑这个文件的内容,包括增加删除文件的具体内容: x:文件就具有了可执行的权限-------注意:这里和window不一样,在win中,文件的可执行权限是通过扩展名表现出来的,如exe.bat等,但是在linux中文件的可执行权限是通过这个x决定的,与文件名没有什么关系. 二.目录权限的意义 r:可以查看此目录下的完整文件列表信息. w:可以对此目录下的所有的文件及目录进行相关的更改,也就是可以更改这个

ssh免密-linux下文件夹复制hadoop问题

问题描述 linux下文件夹复制hadoop问题 两台阿里云服务器centos6.5,做hadoop完全分布式搭建,在搭建过程中采用的非root账户zhm,已经实现通过zhm账户免密登录另外一台阿里云,但是我在配置好hadoop相关配置文件后,将配置好的hadoop文件夹整体复制到另外一台阿里云时,通过zhm账户复制失败(如图),求助这是为什么呢,然后我用root用户,通过输入密码才把文件夹复制过去,zhm用户已经赋权和root一样的,按照我的理解应该是可以复制的啊,希望大神帮解答一下,无线感激

文件读写-Java项目部署在Linux下文件写入的问题

问题描述 Java项目部署在Linux下文件写入的问题 一个java项目在windows下文件读写都没有问题,但是部署在Linux下的时候写入文件时有问题. 是要编辑一个文件,先打开了这个文件把里面的内容读出来,然后编辑,完了之后保存,如果打开编辑的时间超过了20秒,保存的时候就保存不上,也没有什么错误信息,如果不超过20秒,就可以保存成功.不是session的问题,session设置了30分钟.求各路大神前来指教啊 解决方案 你好,不知道你描述的问题还是我理解能力有所差异. 具我理解你的问题,

SQL Server on Linux的文件和目录结构

问题引入 "鸟儿啊,我记得你写过一篇<SQLServer On Linux Package List on CentOS>的文章,从这篇文章,我们很清楚的知道了SQL Server on Linux包含有哪些必要的包.那么,我们怎么知道SQL Server on Linux到底包含哪些重要的文件和目录结构呢?他们的作用是什么?". "的确,当我们在排错或者需要改变MSSQL Server on Linux配置的时候,我们需要对SQL Server的各个工作目录和文

Linux下文件夹共享的问题?

问题描述 Linux下文件夹共享的问题? 想在Linux下面创建共享文件夹,请问大神们怎么弄,希望步骤简单清晰,目的明确,Linux系统是 CentOS和Ubuntu 解决方案 Linux操作系统下共享文件夹设置方法介绍

python获取Linux下文件版本信息、公司名和产品名的方法_python

本文实例讲述了python获取Linux下文件版本信息.公司名和产品名的方法,分享给大家供大家参考.具体如下: 区别于前文所述.本例是在linux下得到文件版本信息,主要是通过pefile模块解析文件 中的字符串得到的.代码如下: def _get_company_and_product(self, file_path): """ Read all properties of the given file return them as a dictionary. @retur

linux下查找某个目录下包含某个字符串的文件

有时候要找以前写的一段程序,但是日久健忘,只记得程序片段里包含某个文字. 那么如何在linux下寻找包含某段文字的文件呢? 强大的find命令可以帮你完成不可能的任务. 比如我只记得我的程序里包含唯一的字符串"111cn.net",于是: 查找目录下的所有文件中是否含有某个字符串 find .|xargs grep -ri "111cn.net" 查找目录下的所有文件中是否含有某个字符串,并且只打印出文件名 find .|xargs grep -ri "1

Linux下PhpMyAdmin程序目录的安全管理

安全|程序     Linux下开发Web程序,现在很流行的开发方法为:用PHP开发Web程序,用Apache做Web Server,Mysql充当后台管理数据库.这种组合使得开发Web程序简单.安全.效率高.由于程序是在Linux下运行,虽免去了版权费用,对数据库的管理却少了Windows下的图形界面管理工具,因此使用起来有点困难.现在有了一套由php开发爱好者写的管理Linux下数据库的程序, phpMyAdmin可极好的解决使用的易用性问题.                       

Linux下文件与权限的设定

所谓的文件权限,是指对文件的访问权限,包括对文件的读.写.删除.执行等,在linux下,每个用户都具有不同的权限,普通用户只能在自己的主目录下进行写操作,而在主目录之外,普通用户只能进行查找.读取操作,如何处理好文件权限和用户之间的关系,是本节讲述的重点. 一 查看文件的权限属性 使用ls命令就可以查看文件的以及目录的权限信息,不带任何参数的ls命令只显示文件名称,通过"ls –al"可以显示文件或者目录的权限信息,看下面的输出: [root@localhost oracle]# ls