linux礦機系統BTM
❶ 如何設置Linux系統中Terminal字體顏色
方法一:
1、在~/.bash_profile文件中添加LS_COLORS
export 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:'
2、source ~/.bash_profile即可
方法二:
1、拷貝/etc/DIR_COLORS文件為當前主目錄的 .dir_colors
cp /etc/DIR_COLORS ~/.dir_colors
2、修改~/.dir_colors中DIR對應的顏色
vim ~/.dir_colors
第59行:DIR 01;34(01:粗體,34:藍色)
修改為:DIR 01;33(01:粗體,33:黃色)
解釋
1、文件類型
1)直接用,有以下幾種:
no NORMAL, NORM 全局默認
fiFILE 普通文件
di DIR 目錄
lnSYMLINK, LINK, LNK 鏈接
piFIFO, PIPE 管道
doDOOR Door
bdBLOCK, BLK 塊設備
cdCHAR, CHR 字元設備
orORPHAN 目標不存在到符號鏈接
soSOCK 套接字Socket
suSETUID 屬主setuid有效的文件
sgSETGID 屬組setuid有效到文件
twSTICKY_OTHER_WRITABLE Directory that is sticky and other-writable ( t,o w)
owOTHER_WRITABLE Directory that is other-writable (o w) and not sticky
stSTICKY Directory with the sticky bit set ( t) and not other-writable
exEXEC Executable file (i.e. has 『x』 set in permissions)
miMISSING Non-existent file pointed to by a symbolic link (visible when you type ls -l)
lc LEFTCODE, LEFT Opening terminal code
rc RIGHTCODE, RIGHT Closing terminal code
ecENDCODE, END Non-filename text
2)擴展名通過「.」加上擴展名
*.extension Every file using this extension e.g. *.jpg
2、效果的具體代碼如下
* 效果列表:
00 默認
01 加粗
04 下劃線
05 閃爍
07 反顯
08 隱藏
* 顏色列表:
31~37分別表示前景色為紅、綠、橙、藍、紫、青、灰
90~97分別表示前景色為深灰、淡紅、淡綠、黃色、淡藍、淡紫、青綠、白色
40~47分別表示背景色為黑、紅、綠、橙、藍、紫、青、灰
100~106分別表示背景色為深灰、淡紅、淡綠、黃色、淡藍、淡紫、青綠
❷ 我的Linux系統剛恢復了一下 ,開機oracle就不能開啟監聽了 這是為什麼
檢查下許可權ls -lrt /u01/app/oracle/proct/10.2.0/db_1/network/log
❸ 怎麼增加linux 的環境變數
1、直接用export命令:
#export PATH=$PATH:/opt/au1200_rm/build_tools/bin
查看是否已經設好,可用命令export查看:
[root@localhost bin]# export
declare -x BASH_ENV="/root/.bashrc"
declare -x G_BROKEN_FILENAMES="1"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="localhost.localdomain"
declare -x INPUTRC="/etc/inputrc"
declare -x LANG="zh_CN.GB18030"
declare -x LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LOGNAME="root"
declare -x LS_COLORS="no=00:fi=00:di=01;34: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;32:*NaNd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.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:"
declare -x MAIL="/var/spool/mail/root"
declare -x OLDPWD="/opt/au1200_rm/build_tools"
declare -x PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/opt/au1200_rm/build_tools/bin"
declare -x PWD="/opt/au1200_rm/build_tools/bin"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_ASKPASS="/usr/libexec/openssh/gnome-ssh-askpass"
declare -x SSH_AUTH_SOCK="/tmp/ssh-XX3LKWhz/agent.4242"
declare -x SSH_CLIENT="10.3.37.152 2236 22"
declare -x SSH_CONNECTION="10.3.37.152 2236 10.3.37.186 22"
declare -x SSH_TTY="/dev/pts/2"
declare -x TERM="linux"
declare -x USER="root"
declare -x USERNAME="root"
可以看到,環境變數已經設好,PATH裡面已經有了我要加的編譯器的路徑。
❹ 怎麼設置 linux環境變數配置
直接用export命令:
#export PATH=$PATH:/opt/au1200_rm/build_tools/bin
查看是否已經設好,可用命令export查看:
[root@localhost bin]# export
declare -x BASH_ENV="/root/.bashrc"
declare -x G_BROKEN_FILENAMES="1"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="localhost.localdomain"
declare -x INPUTRC="/etc/inputrc"
declare -x LANG="zh_CN.GB18030"
declare -x LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LOGNAME="root"
declare -x LS_COLORS="no=00:fi=00:di=01;34: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;32:*NaNd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.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:"
declare -x MAIL="/var/spool/mail/root"
declare -x OLDPWD="/opt/au1200_rm/build_tools"
declare -x PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/opt/au1200_rm/build_tools/bin"
declare -x PWD="/opt/au1200_rm/build_tools/bin"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_ASKPASS="/usr/libexec/openssh/gnome-ssh-askpass"
declare -x SSH_AUTH_SOCK="/tmp/ssh-XX3LKWhz/agent.4242"
declare -x SSH_CLIENT="10.3.37.152 2236 22"
declare -x SSH_CONNECTION="10.3.37.152 2236 10.3.37.186 22"
declare -x SSH_TTY="/dev/pts/2"
declare -x TERM="linux"
declare -x USER="root"
declare -x USERNAME="root"
可以看到,環境變數已經設好,PATH裡面已經有了我要加的編譯器的路徑。
❺ 在 win7 64位系統的啟動項里有個btmtrayagent,這是什麼啟動項,有什麼用
那是藍牙驅動的模塊
❻ 誰知道在linux下的常用後綴名啊
在Linux系統中,可執行文件沒有統一的後綴,系統從文件的屬性來區分可執行文件和不可執行文件。而gcc則通過後綴來區別輸入文件的類別,下面我們來介紹gcc所遵循的部分約定規則。
.c為後綴的文件,C語言源代碼文件;
.a為後綴的文件,是由目標文件構成的檔案庫文件;
.C,.cc或.cxx 為後綴的文件,是C++源代碼文件;
.h為後綴的文件,是程序所包含的頭文件;
.i 為後綴的文件,是已經預處理過的C源代碼文件;
.ii為後綴的文件,是已經預處理過的C++源代碼文件;
.m為後綴的文件,是Objective-C源代碼文件;
.o為後綴的文件,是編譯後的目標文件;
.s為後綴的文件,是匯編語言源代碼文件;
.S為後綴的文件,是經過預編譯的匯編語言源代碼文件。
❼ 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.
❽ 數字貨幣btm怎麼挖
怎麼挖都是不對的,因為這本來就是一種數字貨幣式的新型泡沫,傳-銷。