linux顯示顏色
❶ 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
最後回到命令行界面,我們就可以看到背景顏色已經發生了改變,如下圖所示