本机分辨率19520*1280,centos5.5安装的时候是800*600(仅占整个屏幕的一小部分)调整centos5.5分辨率:中文:菜单在系统--首选项--屏幕分辨率
英文:system--preference--display
后选择对应的分辨率重启。
1.2终端设置
菜单编辑---编辑配置文件或右击编辑当前配置文件设置颜色:设置底色(黑)和字体颜色(白)设置字体:设置字体类型和大小
1.3通过修改配置文件修改终端字体颜色
注明:资料来源网络,在centos下操作有效
/etc/DIR_COLORS就是控制文件字体颜色的配置文件,他是系统默认颜色的配置文件,当我们需要更改显示颜色时,需要以用户为对象来更改,就是说每一个用户拥有一个颜色控制的配置文件,具体操作如下Cp–p/etc/DIR_COLORS再更改.dir_colors文件:
#Configurationfileforthecolorlsutility
#Thisfilegoesinthe/etcdirectory,andmustbeworldreadable.#Youcancopythisfileto.dir_colorsinyour$HOMEdirectorytooverride#thesystemdefaults.
#COLORneedsoneofthesearguments:'tty'colorizesoutputtottys,butnot#pipes.'all'addscolorcharacterstoalloutput.'none'shutscolorization#off.COLORtty
#Extracommandlineoptionsforlsgohere.#Basicallytheseonesare:
#-F=show'/'fordirs,'*'forexecutables,etc.
#-T0=don'ttrusttabspacingwhenformattinglsoutput.OPTIONS-F-T0
#Below,thereshouldbeoneTERMentryforeachtermtypethatiscolorizableTERMlinuxTERMconsoleTERMcon132x25
~/.dir_colors
TERMcon132x30TERMcon132x43TERMcon132x60TERMcon80x25TERMcon80x28TERMcon80x30TERMcon80x43TERMcon80x50TERMcon80x60TERMcons25TERMxtermTERMrxvtTERMxterm-colorTERMcolor-xtermTERMvt100TERMdttermTERMcolor_xtermTERMansiTERMscreenTERMscreen.linuxTERMkonTERMktermTERMgnomeTERMkonsole
#EIGHTBIT,followedby'1'foron,'0'foroff.(8-bitoutput)EIGHTBIT1
#Belowarethecolorinitstringsforthebasicfiletypes.Acolorinit#stringconsistsofoneormoreofthefollowingnumericcodes:#Attributecodes:
#00=none01=bold(粗体)04=underscore(下划线)05=blink(闪烁)07=reverse(就是你的字体颜色是什么,那么你的背景色和字体色是一样的,即涂色的意思)08=concealed(隐藏)#Textcolorcodes:
#30=black31=red32=green33=yellow34=blue35=magenta(紫色)36=cyan(蓝绿色)37=white
#Backgroundcolorcodes:
#40=black41=red42=green43=yellow44=blue45=magenta46=cyan47=whiteNORMAL00FILE00
#globaldefault,althougheverythingshouldbesomething.#normalfile
#directory
DIR01:34---只能在此基础上修改,不能再加一项,例如01:34:43,这样是不行的,显示会出错,而这样的错误需要重启系统才能更正,LINK01:36FIFO40:33SOCK01:35BLK40:33:01CHR40:33;01
#symboliclink#pipe#socket
#blockdevicedriver#characterdevicedriver
ORPHAN01:05:37:41#orphanedsyminksMISSING01:05:37:41#...andthefilestheypointto#Thisisforfileswithexecutepermission:EXEC01;32
#Listanyfileextensionslike'.gz'or'.tar'thatyouwouldlikels
#tocolorizebelow.Puttheextension,aspace,andthecolorinitstring.#(andanycommentsyouwanttoaddaftera'#').cmd01;32#executables(brightgreen).exe01;32.com01;32.btm01;32.bat01;32.sh01;32.csh01;32
.tar01;31#archivesorcompressed(brightred).tgz01;31.arj01;31.taz01;31.lzh01;31.zip01;31.z.Z.gz.bz.tz
01;3101;3101;3101;3101;31
.bz201;31
.rpm01;31.cpio01;31
.jpg01;35#imageformats.gif01;35.bmp01;35.xbm01;35.xpm01;35.png01;35.tif01;35
根据颜色的代码,将各类文件标示以不同的代码,注销(没必要重启)用户再登录即可,如果需要其他用户也运用这些颜色,将该文件copy到宿主目录下即可。
因篇幅问题不能全部显示,请点此查看更多更全内容