Zhang Jiuan’ Notes

LS_COLORS的妙用

声明,本文摘自:http://linux-sxs.org/housekeeping/lscolors.html
COLORS-Lscolors
From: Bartman
Here is an easy way to set different colours for different kinds of files when using the ls command.
Add the following lines to the bottom of your ~/.bashrc file -
alias ls=’ls –color’
LS_COLORS=’di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90′
export LS_COLORS
The first line makes ls use the –color parameter by default, which tells ls to display files in different colours based [...]

,

返回顶部