加入收藏 | 设为首页 | 会员中心 | 我要投稿 济南站长网 (https://www.0531zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Unix > 正文

在Solaris上安装带颜色分辨的ls

发布时间:2016-08-13 17:54:33 所属栏目:Unix 来源:站长网
导读:solaris下默认的ls后显示的目录或者文件等等是不带颜色的,如果要使其像linux下,那么需要如下步骤 一、去www.sunfreeware.com下载coreutils-4.5.4-sol9-sparc-

# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white

NORMAL 00 # global default, although everything should be something.

FILE 00 # normal file

DIR 01;34 # directory

LINK 01;36 # symbolic link

FIFO 40;33 # pipe

SOCK 01;35 # socket

BLK 40;33;01 # block device driver

CHR 40;33;01 # character device driver

ORPHAN 01;05;37;41 # orphaned syminks

MISSING 01;05;37;41 # ... and the files they point to

# 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 @##@#)

.cmd 01;32 # executables (bright green)

.exe 01;32

.com 01;32

.btm 01;32

.bat 01;32

.sh 01;32

.csh 01;32

.tar 01;31 # archives or compressed (bright red)

.tgz 01;31

.arj 01;31

.taz 01;31

.lzh 01;31

.zip 01;31

.z 01;31

.Z 01;31

.gz 01;31

.bz2 01;31

.bz 01;31

.tz 01;31

.rpm 01;31

.cpio 01;31

.jpg 01;35 # image formats

.gif 01;35

.bmp 01;35

.xbm 01;35

.xpm 01;35

.png 01;35

.tif 01;35

(编辑:济南站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读