跟澳门银河一样的网站:如何让你的Solaris中LS命令变为彩色
solaris下默认的ls后显示的目录或者文件等等是不带颜色的,假如要使其像linux下,那么必要如下步骤
一、去[url]www.sunfreeware.com[/url]下载coreutils-4.5.4-sol9-sparc-local.gz
二、以下分十步完成
1. 彩色输出是GUN版本ls敕令的一个特性,以是你必须先获得这个版本,你可以在这里下载sunfreeware.com.
2. 应用下面的敕令安装该包:
root@host /var/tmp> pkgadd -d coreutils-4.5.4-sol9-sparc-local
会提示你以下的包将会被用到:
1 SMCcoreu coreutils (sparc) 4.5.4
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 回车即可
--output ommitted--
3. 这个历程将安装和GUN ls以及其它有用的法度榜样到 /usr/local/bin. 反省这个目录.
4. 这些敕令的文档信息可以在 /usr/local/doc 和 /usr/local/man目录中找到,涉猎这些文跟澳门银河一样的网站档来懂得新的敕令,例如,彩色显示:
user@host ~> man -M /usr/local/man dircolors
稍后, 确认 MANPATH variable 包孕 /usr/local/man.
5. 可以给全部系统添加彩色显示设置, 假如那样的话,你必要在 /etc目录下建立一个DIR_COLORS文件。 大年夜约是这样的:
user@host ~> cat /etc/DIR_COLORS
# Configuration file for the color ls utility
# This file goes in the /etc directory, and must be world readable.
# You can copy this file to .dir_colors in your $HOME directory to override
# the system defaults.
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
# off.
COLOR tty
# Extra command line options for ls go here.
# Basically these ones are:
# -F = show '/' for dirs, '*' for executables, etc.
# -T 0 = don't trust tab spacing when formatting ls output.
OPTIONS -F -T 0
# Below, there should be one TERM跟澳门银河一样的网站 entry for each termtype that is colorizable
TERM linux
TERM console
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80跟澳门银河一样的网站x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM cons25
TERM xterm
TERM rxvt
TERM xterm-color
TERM color-xterm
TERM vt100
TERM跟澳门银河一样的网站 dtterm
TERM color_xterm
# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
EIGHTBIT 1
# 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:
# A跟澳门银河一样的网站ttribute 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=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
免责声明:以上内容源自网络,版权归原作者所有,如有侵犯您的原创版权请告知,我们将尽快删除相关内容。