linux終端ls配色(淺色背景)推薦?

時間 2021-06-14 12:50:50

1樓:

# # 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 # no color code at all

# #FILE 00 # regular file: use no color at all

# RESET 0 # reset to "normal" color

# MULTIHARDLINK 00 # regular file with more than one link

# FIFO 40;33 # pipe

# SOCK 01;35 # socket

# DOOR 01;35 # door

# BLK 40;33;01 # block device driver

# CHR 40;33;01 # character device driver

# ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file ...

# MISSING 00 # ... and the files they point to

# SETUID 37;41 # file that is setuid (u+s)

# SETGID 30;43 # file that is setgid (g+s)

# CAPABILITY 30;41 # file with capability

# STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)

# OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky

# STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable

# # This is for files with execute permission:

# EXEC 01;32

LS_COLORS=''

LS_COLORS=$LS_COLORS:'no=36'Normal text = Default foreground

LS_COLORS=$LS_COLORS:'fi=35'Regular file = Default foreground

LS_COLORS=$LS_COLORS:'di=34;4'DirectoryBold, Blue

#stiky

LS_COLORS=$LS_COLORS:'tw=34;4'

LS_COLORS=$LS_COLORS:'ow=34;4'

# 行末的注釋是錯的,別看

目錄d應該是這類檔案

1 # STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)

2 # OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky

3 # STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable

4 # # This is for files with execute permission:

5 # EXEC 01;32

chmod 755 就跟一般目錄一樣了

你正在使用的 Linux 終端配色方案是怎樣的?

愛摸魚的壞船長 colorsblack 000000 red FF3B30 green 4CD964 yellow FFCC00 blue 0095FF magenta FF2D55 cyan 5AC8FA white FFFFFF lightBlack 686868 lightRed FF3B30...

linux下的終端與控制台還有偽終端,啞終端分別是什麼意思?求科普?

任皓 tty teletypewriter 電傳機,這邊按乙個按鍵,主機端接受到乙個資料,主機端傳出乙個資料,電傳機列印乙個字元。這個是一切終端 terminal 的祖先,輸入字元和列印字元是一體的,主機裡面執行的叫程式。我輸入乙個字元,主機上接受到乙個字元。那我想換行就麻煩了,因為這就是控制字元了...

Linux 終端加 sudo 與否有什麼區別?

醉臥沙場 因為sudo是乙個帶有s位屬主是root的程式,執行它會使程序的euid變成0,也就是程序會以root身份來執行,而不是以你當前登入的那個使用者來執行。如下圖 在不使用sudo的情況下程序的id是當前使用者,如果使用sudo執行,程序的id變為root使用者。也就是說當前程序以root身份...