当前位置:首页 » 操作系统 » linux显示颜色

linux显示颜色

发布时间: 2022-12-09 03:00:35

linux 系统界面颜色怎么修改

启动Linux系统后,在桌面上右键单击,选择【Open in Terminal】[中文:在终端中打开],启动终端,

启动后,终端现在的外观是“白底黑字”,不满意,

依次单击【Edit】[中文:编辑]>【Profile Preferences】[中文:配置首选项],

单击【Color】[中文:颜色]选项卡,

取消勾选【Use colors from system theme】[中文:使用系统主题的颜色],然后在下面的【Built-in schemes】[中文:内置主题]中选择你喜欢的主题即可,例如笔者选择就是“Green on black”,

如果所有的内置主题,你都不满意,你还可以在下面自定义文本颜色和背景颜色,

如果你对终端的字体不满意,也可以修改,具体修改方法参见:
http://jingyan..com/article/d5c4b52bdd071ada560dc505.html

❷ linux中ls-l命令显示出来的三种颜色代表什么文件

蓝色代表的是目录,
绿色代表的是可执行文件,
红色代表的是压缩文件,
浅蓝色代表链接文件,
灰色代表其他文件

❸ 如何让secureCRT显示Linux的颜色

SecureCRT设置彩色和显示中文x0dx0a设置Options-SessionOptions -Emulation,然后把Terminal类型改成xterm,并点中ANSI Color复选框。x0dx0a字体设置:Options-SessionOptions-Appearance-font然后改成你想要的字体就可以了。x0dx0a注意:1:字符集选择utf8,这样可以避免显示汉字乱码x0dx0a2:选择字体的时候,需要选择ture type的字体(如新宋体),不然会出现汉字乱码x0dx0a3:scrollback buffer 调大(5000),这样你就可以看到以前显示内容,这样方便很多x0dx0a4:terminal要选择xtem,这样你ssh到服务器上才能显示颜色,并把ANSI Color打上勾x0dx0a5:我选择的颜色方案Windows或Traditional。x0dx0a用SecureCRT(Linux)来上传和下载数据x0dx0a设置一下上传和下载的默认目录就行x0dx0aoptions–session options–file transfer 下可以设置上传和下载的目录x0dx0a剩下的你只要在用SecureCRT登陆linux终端的时候:x0dx0a发送文件到windows客户端:sz file1 file2x0dx0azmodem接收可以自行启动.x0dx0a从客户端上传文件到linux服务端:x0dx0a只要服务端执行 : rz(rz -y)x0dx0a然后在 SecureCRT 里选文件发送,协议 zmodemx0dx0a简单吧,如果你以前一直使用ssh,而又没有对外开放ftp服务,你就直接使用这种方式来传输你的文件x0dx0aSecureCRT的帮助中的:ZModemis a full-plex file transfer protocol that supports fast datax0dx0atransfer rates and effective error detection. ZModem is very userx0dx0afriendly, allowing either the sending or receiving party to initiate ax0dx0afile transfer. ZModem supports multiple file (batch) transfers, andx0dx0aallows the use of wildcards when specifying filenames. ZModem alsox0dx0asupports resuming most prior ZModem file transfer attempts.x0dx0arz,sz是便是Linux/Unix同Windows进行ZModem文件传输的命令行工具x0dx0aPS:Linux上rz/sz这两个小工具安装lrzsz-x.x.xx.rpm即可,Unix可用源码自行 编译,Solaris spac的可以到sunfreeware下载执行码

❹ Linux命令行下如何改变显示的颜色

现介绍一种修改显示颜色的方法:
1、将/etc/DIR_COLORS文件cp到~/下,并改名为.dir_colors。
2、编辑.dir_colors文件,找到“DIR01;34#directory”,将34改为36。
你可以找到文件的两行注释:
#Textcolorcodes:
#30=black31=red32=green33=yellow34=blue35=magenta36=cyan37=white
按照颜色对应的数字,你还可以把目录显示颜色改成其他的。
同样其他的显示效果(包括背景)也可以参照说明进行修改。
这样你就可以定制自己的linux下命令行方式下的个性化显示效果了。
命令行方式中,默认的目录显示颜色为蓝色,在黑色背景下难以看清。现介绍一种修改显示颜色的方法:
1、将/etc/DIR_COLORS文件cp到~/下,并改名为.dir_colors。
2、编辑.dir_colors文件,找到“DIR01;34#directory”,将34改为36。
你可以找到文件的两行注释:
#Textcolorcodes:
#30=black31=red32=green33=yellow34=blue35=magenta36=cyan37=white
按照颜色对应的数字,你还可以把目录显示颜色改成其他的。
同样其他的显示效果(包括背景)也可以参照说明进行修改。
这样你就可以定制自己的linux下命令行方式下的个性化显示效果了。

❺ linux下ls -color显示的是什么颜色

这个就说来话长了。ls作为linux的原始命令,是没有颜色之说的,不过现在多数环境下的ls都是包装过的,用ls时,都会有颜色区分。至于你说的-color,是错误的写法,应该是--color,color有三个取值{never,
auto,
always},也可以省略,如:ls
--color=always。linux中参数有用'-'和'--'的,前者一般用的一个字符,后者接全称,所以是--color,而不是-color.

❻ linux系统下如何显示关键字颜色

linux下设置ls命令显示文件、文件夹颜色:

1. LS_COLORS

用 dircolors -p 可以 看到缺省的颜色设置,包括各种颜色和“粗体”,下划线,闪烁等定义。

环境变量LS_COLORS时用来设置GNU ls的--color选项中的颜色的。

# 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=magenta 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 # global default, although everything should be something.
FILE 00 # normal file
DIR 01;34 # directory

故,要设置ls的颜色,则在SHELL的配置文件(以下是tcsh的配置文件:.tcshrc,对于bash略有不同)中添加下面一行:

setenv LS_COLORS 'no=00:fi=00:di=01;33:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;35:*.cmd=01;35:*.exe=01;35:*.com=01;35:*.btm=01;35:*.bat=01;35:*.sh=01;35:*.csh=01;35:*.tar=01;31:*.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:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:'

即可,可以参照上面的英文自行配置。

另:/etc/DIR_COLORS 文件为系统默认颜色参数配置文件
如果想修改定义自己的颜色参数配置文件,请执行如下操作:
1) cp /etc/DIR_COLORS $HOME/.dir_colors
2) 修改中的颜色定义 $HOME/.dir_colors

2. CLICOLOR

# CLICOLOR是用来设置是否进行颜色的显示。CLI是Command Line Interface的缩写。
setenv CLICOLOR 1

# LSCOLORS是用来设置当CLICOLOR被启用后,各种文件类型的颜色
setenv LSCOLORS gxfxaxdxcxegedabagacad

LSCOLORS的值中每两个字母为一组,分别设置某个文件类型的文字颜色和背景颜色。LSCOLORS中一共11组颜色设置,按照先后顺序,分别对以下的文件类型进行设置:

directory
symbolic link
socket
pipe
executable
block special
character special
executable with setuid bit set
executable with setgid bit set
directory writable to others, with sticky bit
directory writable to others, without sticky bit
LSCOLORS中,字母代表的颜色如下:
a 黑色
b 红色
c 绿色
d 棕色
e 蓝色
f 洋红色
g 青色
h 浅灰色
A 黑色粗体
B 红色粗体
C 绿色粗体
D 棕色粗体
E 蓝色粗体
F 洋红色粗体
G 青色粗体
H 浅灰色粗体
x 系统默认颜色
所以,如果我们想把目录显示成红色,就可以把LSCOLORS设置为bxfxaxdxcxegedabagacad就可以了
////////////////////////////////////////////
LSCOLORS 的含义:

LSCOLORS The value of this variable describes what color to use
for which attribute when colors are enabled with
CLICOLOR. This string is a concatenation of pairs of the
format fb, where f is the foreground color and b is the
background color.

The color designators are as follows:

a black
b red
c green
d brown
e blue
f magenta
g cyan
h light grey
A bold black, usually shows up as dark grey
B bold red
C bold green
D bold brown, usually shows up as yellow
E bold blue
F bold magenta
G bold cyan
H bold light grey; looks like bright white
x default foreground or background

Note that the above are standard ANSI colors. The actual
display may differ depending on the color capabilities of
the terminal in use.

The order of the attributes are as follows:

1. directory
2. symbolic link
3. socket
4. pipe
5. executable
6. block special
7. character special
8. executable with setuid bit set
9. executable with setgid bit set
10. directory writable to others, with sticky bit
11. directory writable to others, without sticky
bit

The default is “exfxcxdxbxegedabagacad”, i.e. blue fore-
ground and default background for regular directories,
black foreground and red background for setuid executa-
bles, etc.

❼ 如何配置Linux命令行的字体和背景颜色

我们使用Linux的时候,经常需要使用命令行。Linux命令行的背景默认是白色的,字体默认是黑色,14像素的。那么我们如何根据自己的喜好配置Linux命令行的字体和背景颜色呢?下面我给大家分享一下。

工具/材料

Linux Terminal

配置字体

  • 01

    首先进入Linux系统以后点击左上角的Applications,然后选择Terminal选项,如下图所示

  • 02

    接下来在打开的命令行中点击顶部的Edit菜单,然后选择Profile Preferences选项,如下图所示

  • 03

    进入Profile Preferences设置界面以后,定位到General页,去掉使用系统字体的复选框,然后点击Font后面的按钮,如下图所示

  • 04

    在弹出的选择命令行字体界面中我们选择自己喜欢的字体,然后设置字体大小即可,如下图所示

配置背景

  • 01

    背景的配置需要首先定位到Colors页卡,然后去掉系统背景的复选框,如下图所示

  • 02

    接下来点击Background Color后面的按钮进行背景色的配置,如下图所示

  • 03

    在弹出的选择命令行背景颜色的界面中我们选择一个自己喜好的颜色,点击Select按钮即可,如下图所示

  • 04

    最后回到命令行界面,我们就可以看到背景颜色已经发生了改变,如下图所示

热点内容
编译不成功怎么办 发布:2025-05-16 10:35:54 浏览:610
如何修改密码找回 发布:2025-05-16 10:35:53 浏览:568
怎么才能编译本书 发布:2025-05-16 10:27:47 浏览:757
ssd服务器电脑 发布:2025-05-16 10:26:25 浏览:827
水果忍者源码 发布:2025-05-16 10:26:22 浏览:472
python中ord函数 发布:2025-05-16 10:14:25 浏览:340
电脑启动后无法连接服务器 发布:2025-05-16 10:06:39 浏览:984
jar包编译过程 发布:2025-05-16 10:03:37 浏览:679
选举源码 发布:2025-05-16 09:58:59 浏览:749
超级访问陈小春应采儿 发布:2025-05-16 09:43:29 浏览:479